mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-26 00:53:34 +03:00
[thread_event] Add support for user events in thread events when stats are enabled
This commit is contained in:
parent
e6864c6075
commit
015b017973
15 changed files with 470 additions and 81 deletions
|
|
@ -1901,9 +1901,9 @@ void tcache_assert_initialized(tcache_t *tcache) {
|
|||
assert(!cache_bin_still_zero_initialized(&tcache->bins[0]));
|
||||
}
|
||||
|
||||
static bool
|
||||
static te_enabled_t
|
||||
tcache_gc_enabled(void) {
|
||||
return (opt_tcache_gc_incr_bytes > 0);
|
||||
return (opt_tcache_gc_incr_bytes > 0) ? te_enabled_yes : te_enabled_no;
|
||||
}
|
||||
|
||||
/* Handles alloc and dalloc the same way */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue