mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-06 10:26:18 +03:00
Use TSDN_NULL rather than NULL as appropriate.
This commit is contained in:
parent
dc7ff6306d
commit
a397045323
3 changed files with 9 additions and 9 deletions
|
|
@ -1251,9 +1251,9 @@ malloc_init_hard_needed(void)
|
|||
if (malloc_initializer != NO_INITIALIZER && !IS_INITIALIZER) {
|
||||
/* Busy-wait until the initializing thread completes. */
|
||||
do {
|
||||
malloc_mutex_unlock(NULL, &init_lock);
|
||||
malloc_mutex_unlock(TSDN_NULL, &init_lock);
|
||||
CPU_SPINWAIT;
|
||||
malloc_mutex_lock(NULL, &init_lock);
|
||||
malloc_mutex_lock(TSDN_NULL, &init_lock);
|
||||
} while (!malloc_initialized());
|
||||
return (false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue