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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=185483
@ -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…
Reference in New Issue
Block a user