From: Zhixu Liu via lttng-dev <lttng-dev@lists.lttng.org>
To: lttng-dev@lists.lttng.org
Subject: [PATCH urcu] src/urcu-bp.c: assert => urcu_posix_assert
Date: Mon, 9 Jun 2025 10:49:23 +0800 [thread overview]
Message-ID: <CALMA0xZF8=aZfdqjwhXhgWqUtnUs9onDSqz0oKxfqCWFOnOigA@mail.gmail.com> (raw)
[-- 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
next reply other threads:[~2025-06-09 12:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-09 2:49 Zhixu Liu via lttng-dev [this message]
2025-06-09 15:41 ` Mathieu Desnoyers via lttng-dev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CALMA0xZF8=aZfdqjwhXhgWqUtnUs9onDSqz0oKxfqCWFOnOigA@mail.gmail.com' \
--to=lttng-dev@lists.lttng.org \
--cc=zhixu.liu@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox