Do not reset sample wait time when re-initing tdata

This commit is contained in:
Yinan Zhang
2020-03-23 14:58:33 -07:00
parent 855d20f6f3
commit 1e2524e15a
3 changed files with 4 additions and 8 deletions

View File

@@ -795,7 +795,7 @@ prof_thr_uid_alloc(tsdn_t *tsdn) {
prof_tdata_t *
prof_tdata_init(tsd_t *tsd) {
return prof_tdata_init_impl(tsd, prof_thr_uid_alloc(tsd_tsdn(tsd)), 0,
NULL, prof_thread_active_init_get(tsd_tsdn(tsd)), false);
NULL, prof_thread_active_init_get(tsd_tsdn(tsd)));
}
prof_tdata_t *
@@ -808,7 +808,7 @@ prof_tdata_reinit(tsd_t *tsd, prof_tdata_t *tdata) {
prof_tdata_detach(tsd, tdata);
return prof_tdata_init_impl(tsd, thr_uid, thr_discrim, thread_name,
active, true);
active);
}
void