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:
David Goldblatt
2018-05-11 16:43:43 -07:00
committed by David Goldblatt
parent 59e371f463
commit 0379235f47
3 changed files with 19 additions and 1 deletions

View File

@@ -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;
}