mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 22:51:50 +03:00
Check prof_active in addtion to opt_prof during batch_alloc().
This commit is contained in:
parent
37342a4d32
commit
6bdb4f5ab0
1 changed files with 1 additions and 0 deletions
|
|
@ -4000,6 +4000,7 @@ batch_alloc(void **ptrs, size_t num, size_t size, int flags) {
|
|||
size_t batch = num - filled;
|
||||
size_t surplus = SIZE_MAX; /* Dead store. */
|
||||
bool prof_sample_event = config_prof && opt_prof
|
||||
&& prof_active_get_unlocked()
|
||||
&& te_prof_sample_event_lookahead_surplus(tsd,
|
||||
batch * usize, &surplus);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue