mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 21:23:06 +00:00
Push error handling logic out of core dumping logic
This commit is contained in:
@@ -83,13 +83,10 @@ TEST_END
|
||||
|
||||
bool prof_dump_header_intercepted = false;
|
||||
prof_cnt_t cnt_all_copy = {0, 0, 0, 0};
|
||||
static bool
|
||||
prof_dump_header_intercept(tsdn_t *tsdn, bool propagate_err,
|
||||
const prof_cnt_t *cnt_all) {
|
||||
static void
|
||||
prof_dump_header_intercept(tsdn_t *tsdn, const prof_cnt_t *cnt_all) {
|
||||
prof_dump_header_intercepted = true;
|
||||
memcpy(&cnt_all_copy, cnt_all, sizeof(prof_cnt_t));
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
TEST_BEGIN(test_prof_reset_cleanup) {
|
||||
|
||||
Reference in New Issue
Block a user