mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-01 03:29:11 +03:00
Tests: Shouldn't be able to change global slowness.
This can help ensure that we don't leave slowness changes behind in case of resource exhaustion.
This commit is contained in:
parent
59e371f463
commit
0379235f47
3 changed files with 19 additions and 1 deletions
|
|
@ -141,7 +141,7 @@ tsd_local_slow(tsd_t *tsd) {
|
|||
|| tsd_reentrancy_level_get(tsd) > 0;
|
||||
}
|
||||
|
||||
static bool
|
||||
bool
|
||||
tsd_global_slow() {
|
||||
return atomic_load_u32(&tsd_global_slow_count, ATOMIC_RELAXED) > 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue