mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 13:13:06 +00:00
Do not reset sample wait time when re-initing tdata
This commit is contained in:
@@ -1245,7 +1245,7 @@ prof_bt_keycomp(const void *k1, const void *k2) {
|
||||
|
||||
prof_tdata_t *
|
||||
prof_tdata_init_impl(tsd_t *tsd, uint64_t thr_uid, uint64_t thr_discrim,
|
||||
char *thread_name, bool active, bool reset_interval) {
|
||||
char *thread_name, bool active) {
|
||||
assert(tsd_reentrancy_level_get(tsd) == 0);
|
||||
|
||||
prof_tdata_t *tdata;
|
||||
@@ -1274,10 +1274,6 @@ prof_tdata_init_impl(tsd_t *tsd, uint64_t thr_uid, uint64_t thr_discrim,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (reset_interval) {
|
||||
prof_sample_threshold_update(tsd);
|
||||
}
|
||||
|
||||
tdata->enq = false;
|
||||
tdata->enq_idump = false;
|
||||
tdata->enq_gdump = false;
|
||||
|
||||
Reference in New Issue
Block a user