Update upstream source from tag 'upstream/1.25.0'
Update to upstream version '1.25.0'
with Debian dir 6baa62f80e3c4c9faa7613b40eeb79a50336dd40
Mo Zhou
1 year, 10 months ago
143 | 143 |
static THREAD_LOCAL waiter *waiter_for_thread;
|
144 | 144 |
static void waiter_destroy (void *v) {
|
145 | 145 |
waiter *w = (waiter *) v;
|
|
146 |
/* Reset waiter_for_thread in case another thread-local variable reuses
|
|
147 |
the waiter in its destructor while the waiter is taken by the other
|
|
148 |
thread from free_waiters. This can happen as the destruction order
|
|
149 |
of thread-local variables can be arbitrary in some platform e.g.
|
|
150 |
POSIX. */
|
|
151 |
waiter_for_thread = NULL;
|
146 | 152 |
IGNORE_RACES_START ();
|
147 | 153 |
ASSERT ((w->flags & (WAITER_RESERVED|WAITER_IN_USE)) == WAITER_RESERVED);
|
148 | 154 |
w->flags &= ~WAITER_RESERVED;
|
75 | 75 |
detected_arch=x86_32X
|
76 | 76 |
#elif defined(__alpha__)
|
77 | 77 |
detected_arch=alphaX
|
|
78 |
#elif defined(__loongarch__)
|
|
79 |
detected_arch=loongarchX
|
78 | 80 |
#elif defined(__mips64__) || defined(__mips32__) || defined(__mips__)
|
79 | 81 |
detected_arch=mipsX
|
80 | 82 |
#elif defined(__ppc64__) || defined(__powerpc64__) || defined(__ppc__) || defined(__powerpc__)
|