Add safety check on sdallocx slow / sampled path.

This commit is contained in:
Qi Wang
2020-01-30 14:35:54 -08:00
committed by Qi Wang
parent 88d9eca848
commit 974222c626
4 changed files with 19 additions and 5 deletions

View File

@@ -1,6 +1,7 @@
#ifndef JEMALLOC_INTERNAL_SAFETY_CHECK_H
#define JEMALLOC_INTERNAL_SAFETY_CHECK_H
void safety_check_fail_sized_dealloc(bool current_dealloc);
void safety_check_fail(const char *format, ...);
/* Can set to NULL for a default. */
void safety_check_set_abort(void (*abort_fn)(const char *));