Use TSDN_NULL rather than NULL as appropriate.

This commit is contained in:
Jason Evans
2016-05-12 21:07:08 -07:00
parent c19b48fe73
commit bcd5424b1c
3 changed files with 9 additions and 9 deletions

View File

@@ -1252,9 +1252,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);
}