summaryrefslogtreecommitdiff
path: root/dbg_mlc.c
diff options
context:
space:
mode:
authorPetter Urkedal <paurkedal@gmail.com>2012-04-29 13:30:39 +0200
committerPetter Urkedal <paurkedal@gmail.com>2012-04-29 13:30:39 +0200
commit38965f279eae831dc395d0626f0f679eda715858 (patch)
tree3d5267b9bc06e4edaed145bbc9f62f7a7d99d361 /dbg_mlc.c
parent596946199b9fea41770d8775e23c9de6e02f1ee7 (diff)
downloadbdwgc-38965f279eae831dc395d0626f0f679eda715858.tar.gz
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.
Diffstat (limited to 'dbg_mlc.c')
-rw-r--r--dbg_mlc.c6
1 files changed, 6 insertions, 0 deletions
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));
}