mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-01 07:58:05 +03:00
Convert arena_decay_t's time to be atomically synchronized.
This commit is contained in:
parent
ff55f07eb6
commit
d61a5f76b2
4 changed files with 33 additions and 17 deletions
|
|
@ -1797,7 +1797,7 @@ arena_i_decay_time_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp,
|
|||
}
|
||||
|
||||
if (oldp != NULL && oldlenp != NULL) {
|
||||
size_t oldval = arena_decay_time_get(tsd_tsdn(tsd), arena);
|
||||
size_t oldval = arena_decay_time_get(arena);
|
||||
READ(oldval, ssize_t);
|
||||
}
|
||||
if (newp != NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue