Adjust an assertion to handle the case where a lock is contested, but
spinning is avoided due to running on a single-CPU system. Reported by: stefanf
This commit is contained in:
parent
c1565b61d0
commit
17daa728ae
@ -1284,7 +1284,7 @@ malloc_spin_lock(pthread_mutex_t *lock)
|
||||
* inversion.
|
||||
*/
|
||||
_pthread_mutex_lock(lock);
|
||||
assert((ret << BLOCK_COST_2POW) != 0);
|
||||
assert((ret << BLOCK_COST_2POW) != 0 || ncpus == 1);
|
||||
return (ret << BLOCK_COST_2POW);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user