mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-30 06:58:08 +03:00
Remove safety check abort mallctl
This commit is contained in:
parent
bbe86b591f
commit
9cecc7bfa7
12 changed files with 33 additions and 64 deletions
|
|
@ -17,7 +17,7 @@ fake_abort(const char *message) {
|
|||
|
||||
static void *
|
||||
test_invalid_size_pre(size_t sz) {
|
||||
safety_check_set_abort(&fake_abort);
|
||||
test_hooks_safety_check_abort = &fake_abort;
|
||||
|
||||
fake_abort_called = false;
|
||||
void *ptr = malloc(sz);
|
||||
|
|
@ -29,7 +29,7 @@ test_invalid_size_pre(size_t sz) {
|
|||
static void
|
||||
test_invalid_size_post(void) {
|
||||
expect_true(fake_abort_called, "Safety check didn't fire");
|
||||
safety_check_set_abort(NULL);
|
||||
test_hooks_safety_check_abort = NULL;
|
||||
}
|
||||
|
||||
TEST_BEGIN(test_invalid_size_sdallocx) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue