Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [PATCH urcu] src/urcu-bp.c: assert => urcu_posix_assert
@ 2025-06-09  2:49 Zhixu Liu via lttng-dev
  2025-06-09 15:41 ` Mathieu Desnoyers via lttng-dev
  0 siblings, 1 reply; 2+ messages in thread
From: Zhixu Liu via lttng-dev @ 2025-06-09  2:49 UTC (permalink / raw)
  To: lttng-dev

[-- Attachment #1: Type: text/plain, Size: 58 bytes --]

otherwise build failed if has -DNDEBUG

thanks
-- 
Z. Liu

[-- Attachment #2: 0001-src-urcu-bp.c-assert-urcu_posix_assert.patch --]
[-- Type: application/octet-stream, Size: 808 bytes --]

From bbff88f8091752ee19dca672bec197e49cc2ef5d Mon Sep 17 00:00:00 2001
From: "Z. Liu" <zhixu.liu@gmail.com>
Date: Mon, 9 Jun 2025 10:39:54 +0800
Subject: [PATCH] src/urcu-bp.c: assert => urcu_posix_assert

otherwise build failed if has -DNDEBUG

Signed-off-by: Z. Liu <zhixu.liu@gmail.com>

diff --git a/src/urcu-bp.c b/src/urcu-bp.c
index 8e9afd8..e23ca95 100644
--- a/src/urcu-bp.c
+++ b/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;
-- 
2.45.2


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH urcu] src/urcu-bp.c: assert => urcu_posix_assert
  2025-06-09  2:49 [PATCH urcu] src/urcu-bp.c: assert => urcu_posix_assert Zhixu Liu via lttng-dev
@ 2025-06-09 15:41 ` Mathieu Desnoyers via lttng-dev
  0 siblings, 0 replies; 2+ messages in thread
From: Mathieu Desnoyers via lttng-dev @ 2025-06-09 15:41 UTC (permalink / raw)
  To: Zhixu Liu, lttng-dev

On 2025-06-08 22:49, Zhixu Liu via lttng-dev wrote:
> otherwise build failed if has -DNDEBUG

Merged into liburcu master, 0.15, 0.14, thanks!

Mathieu

-- 
Mathieu Desnoyers
EfficiOS Inc.
https://www.efficios.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-06-09 15:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-09  2:49 [PATCH urcu] src/urcu-bp.c: assert => urcu_posix_assert Zhixu Liu via lttng-dev
2025-06-09 15:41 ` Mathieu Desnoyers via lttng-dev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox