From: Petter Urkedal Date: Sun, 29 Apr 2012 11:30:39 +0000 (+0200) Subject: Add two missing GC_start_debugging() calls. X-Git-Tag: gc7_3alpha2~4^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=38965f279;p=gc 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. --- 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)); }