mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 14:41:42 +03:00
Treat postponed prof sample event as new event
This commit is contained in:
parent
abd4674931
commit
381c97caa4
1 changed files with 9 additions and 1 deletions
10
src/prof.c
10
src/prof.c
|
|
@ -563,7 +563,15 @@ prof_sample_new_event_wait(tsd_t *tsd) {
|
|||
|
||||
uint64_t
|
||||
prof_sample_postponed_event_wait(tsd_t *tsd) {
|
||||
return TE_MIN_START_WAIT;
|
||||
/*
|
||||
* The postponed wait time for prof sample event is computed as if we
|
||||
* want a new wait time (i.e. as if the event were triggered). If we
|
||||
* instead postpone to the immediate next allocation, like how we're
|
||||
* handling the other events, then we can have sampling bias, if e.g.
|
||||
* the allocation immediately following a reentrancy always comes from
|
||||
* the same stack trace.
|
||||
*/
|
||||
return prof_sample_new_event_wait(tsd);
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue