mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 21:23:06 +00:00
Remove generic experimental hooks
This commit is contained in:
@@ -126,20 +126,6 @@ p_test_fini(bool skip_test) {
|
||||
test_status_string(test_status));
|
||||
}
|
||||
|
||||
static void
|
||||
check_global_slow(test_status_t *status) {
|
||||
#ifdef JEMALLOC_UNIT_TEST
|
||||
/*
|
||||
* This check needs to peek into tsd internals, which is why it's only
|
||||
* exposed in unit tests.
|
||||
*/
|
||||
if (tsd_global_slow()) {
|
||||
malloc_printf("Testing increased global slow count\n");
|
||||
*status = test_status_fail;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static test_status_t
|
||||
p_test_impl(bool do_malloc_init, bool do_reentrant, test_t *t, va_list ap) {
|
||||
selected_test_name = getenv("JEMALLOC_TEST_NAME");
|
||||
@@ -168,7 +154,6 @@ p_test_impl(bool do_malloc_init, bool do_reentrant, test_t *t, va_list ap) {
|
||||
if (test_status > ret) {
|
||||
ret = test_status;
|
||||
}
|
||||
check_global_slow(&ret);
|
||||
/* Reentrant run. */
|
||||
if (do_reentrant) {
|
||||
reentrancy = libc_reentrant;
|
||||
@@ -178,7 +163,6 @@ p_test_impl(bool do_malloc_init, bool do_reentrant, test_t *t, va_list ap) {
|
||||
if (test_status > ret) {
|
||||
ret = test_status;
|
||||
}
|
||||
check_global_slow(&ret);
|
||||
|
||||
reentrancy = arena_new_reentrant;
|
||||
test_hooks_libc_hook = NULL;
|
||||
@@ -187,7 +171,6 @@ p_test_impl(bool do_malloc_init, bool do_reentrant, test_t *t, va_list ap) {
|
||||
if (test_status > ret) {
|
||||
ret = test_status;
|
||||
}
|
||||
check_global_slow(&ret);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user