mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
(__pthread_lock): Force lock->__status to be read from memory on every spin.
This commit is contained in:
parent
4595829c99
commit
b99a3ee222
@ -88,6 +88,7 @@ again:
|
||||
return;
|
||||
}
|
||||
}
|
||||
__asm __volatile ("" : "=m" (lock->__status) : "0" (lock->__status));
|
||||
}
|
||||
|
||||
lock->__spinlock += (spin_count - lock->__spinlock) / 8;
|
||||
|
Loading…
Reference in New Issue
Block a user