mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-06-03 02:34:17 +03:00
Remove generic experimental hooks
This commit is contained in:
parent
3f9d8ca3d0
commit
ff2c2548a3
20 changed files with 25 additions and 1636 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue