git: 60b5e18c5362 - stable/14 - libthr: move dlerror_msg into zeroed part of struct thread
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 04 Jan 2025 03:57:46 UTC
The branch stable/14 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=60b5e18c5362541323dd214119a1b0664485ae06
commit 60b5e18c5362541323dd214119a1b0664485ae06
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-12-23 23:48:58 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2025-01-04 03:57:24 +0000
libthr: move dlerror_msg into zeroed part of struct thread
(cherry picked from commit 86f6ff9ff00e2ba4d4cd5b7a94d57b1c3f85ff98)
---
lib/libthr/thread/thr_private.h | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/lib/libthr/thread/thr_private.h b/lib/libthr/thread/thr_private.h
index 7b8a2d6569f9..b34c084ad04d 100644
--- a/lib/libthr/thread/thr_private.h
+++ b/lib/libthr/thread/thr_private.h
@@ -562,8 +562,12 @@ struct pthread {
/* Deferred threads from pthread_cond_signal. */
unsigned int *defer_waiters[MAX_DEFER_WAITERS];
-#define _pthread_endzero wake_addr
+ /* rtld thread-local dlerror message and seen control */
+ char dlerror_msg[512];
+ int dlerror_seen;
+
+#define _pthread_endzero wake_addr
struct wake_addr *wake_addr;
#define WAKE_ADDR(td) ((td)->wake_addr)
@@ -572,10 +576,6 @@ struct pthread {
/* pthread_set/get_name_np */
char *name;
-
- /* rtld thread-local dlerror message and seen control */
- char dlerror_msg[512];
- int dlerror_seen;
};
#define THR_SHOULD_GC(thrd) \