[lttng-dev] Compile fix for urcu-bp.c

Duncan Sands via lttng-dev <[email protected]> Fri, 29 Mar 2024 15:06:03 +0100
Newsgroups org.lttng.lists.lttng-dev
Message-ID <[email protected]>
--- src/urcu-bp.c
+++ src/urcu-bp.c
@@ -409,7 +409,7 @@ void expand_arena(struct registry_arena *arena)
  		new_chunk_size_bytes, 0);
  	if (new_chunk != MAP_FAILED) {
  		/* Should not have moved. */
-		assert(new_chunk == last_chunk);
+		urcu_posix_assert(new_chunk == last_chunk);
  		memset((char *) last_chunk + old_chunk_size_bytes, 0,
  			new_chunk_size_bytes - old_chunk_size_bytes);
  		last_chunk->capacity = new_capacity;
_______________________________________________
lttng-dev mailing list
[email protected]
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev