From 38965f279eae831dc395d0626f0f679eda715858 Mon Sep 17 00:00:00 2001 From: Petter Urkedal Date: Sun, 29 Apr 2012 13:30:39 +0200 Subject: [PATCH] Add two missing GC_start_debugging() calls. * dbg_mlc.c (GC_debug_generic_malloc_inner): Add GC_start_debugging() if not done. This fixes the missing registration of the debug header displacement. * dbg_mlc.c (GC_debug_generic_malloc_inner_ignore_off_page): Ditto. --- dbg_mlc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dbg_mlc.c b/dbg_mlc.c index 5f03d106..c2e2eaa3 100644 --- a/dbg_mlc.c +++ b/dbg_mlc.c @@ -533,6 +533,9 @@ GC_API void * GC_CALL GC_debug_malloc_atomic_ignore_off_page(size_t lb, (unsigned long) lb); return(0); } + if (!GC_debugging_started) { + GC_start_debugging(); + } ADD_CALL_CHAIN(result, GC_RETURN_ADDR); return (GC_store_debug_info_inner(result, (word)lb, "INTERNAL", 0)); } @@ -548,6 +551,9 @@ GC_API void * GC_CALL GC_debug_malloc_atomic_ignore_off_page(size_t lb, (unsigned long) lb); return(0); } + if (!GC_debugging_started) { + GC_start_debugging(); + } ADD_CALL_CHAIN(result, GC_RETURN_ADDR); return (GC_store_debug_info_inner(result, (word)lb, "INTERNAL", 0)); } -- 2.40.0