mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-26 02:27:21 +03:00
Implement deallocation events.
Make the event module to accept two event types, and pass around the event context. Use bytes-based events to trigger tcache GC on deallocation, and get rid of the tcache ticker.
This commit is contained in:
parent
536ea6858e
commit
97dd79db6c
9 changed files with 306 additions and 171 deletions
|
|
@ -119,7 +119,7 @@ tsd_force_recompute(tsdn_t *tsdn) {
|
|||
tsd_state_nominal_recompute, ATOMIC_RELAXED);
|
||||
/* See comments in thread_event_recompute_fast_threshold(). */
|
||||
atomic_fence(ATOMIC_SEQ_CST);
|
||||
thread_allocated_next_event_fast_set_non_nominal(remote_tsd);
|
||||
thread_next_event_fast_set_non_nominal(remote_tsd);
|
||||
}
|
||||
malloc_mutex_unlock(tsdn, &tsd_nominal_tsds_lock);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue