mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-27 05:12:12 +03:00
Pull tcache GC events into thread event handler
This commit is contained in:
parent
198f02e797
commit
97f93fa0f2
8 changed files with 34 additions and 12 deletions
|
|
@ -9,8 +9,11 @@ TEST_BEGIN(test_next_event_fast_roll_back) {
|
|||
THREAD_ALLOCATED_NEXT_EVENT_FAST_MAX);
|
||||
thread_allocated_next_event_fast_set(tsd,
|
||||
THREAD_ALLOCATED_NEXT_EVENT_FAST_MAX);
|
||||
prof_sample_event_wait_set(tsd,
|
||||
#define E(event, condition) \
|
||||
event##_event_wait_set(tsd, \
|
||||
THREAD_ALLOCATED_NEXT_EVENT_FAST_MAX);
|
||||
ITERATE_OVER_ALL_EVENTS
|
||||
#undef E
|
||||
void *p = malloc(16U);
|
||||
assert_ptr_not_null(p, "malloc() failed");
|
||||
free(p);
|
||||
|
|
@ -25,8 +28,11 @@ TEST_BEGIN(test_next_event_fast_resume) {
|
|||
thread_allocated_next_event_set(tsd,
|
||||
THREAD_ALLOCATED_NEXT_EVENT_FAST_MAX + 16U);
|
||||
thread_allocated_next_event_fast_set(tsd, 0);
|
||||
prof_sample_event_wait_set(tsd,
|
||||
#define E(event, condition) \
|
||||
event##_event_wait_set(tsd, \
|
||||
THREAD_ALLOCATED_NEXT_EVENT_FAST_MAX + 16U);
|
||||
ITERATE_OVER_ALL_EVENTS
|
||||
#undef E
|
||||
void *p = malloc(SC_LOOKUP_MAXCLASS);
|
||||
assert_ptr_not_null(p, "malloc() failed");
|
||||
free(p);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue