mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-19 11:26:26 +03:00
Remove locked flag set in malloc_mutex_trylock
As a hint flag of the lock, parameter locked should be set only when the lock is gained or freed.
This commit is contained in:
parent
434a68e221
commit
5f64ad60cd
1 changed files with 0 additions and 1 deletions
|
|
@ -175,7 +175,6 @@ malloc_mutex_trylock(tsdn_t *tsdn, malloc_mutex_t *mutex) {
|
|||
witness_assert_not_owner(tsdn_witness_tsdp_get(tsdn), &mutex->witness);
|
||||
if (isthreaded) {
|
||||
if (malloc_mutex_trylock_final(mutex)) {
|
||||
atomic_store_b(&mutex->locked, true, ATOMIC_RELAXED);
|
||||
return true;
|
||||
}
|
||||
mutex_owner_stats_update(tsdn, mutex);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue