diff options
author | Petter Urkedal <paurkedal@gmail.com> | 2012-04-29 13:30:39 +0200 |
---|---|---|
committer | Petter Urkedal <paurkedal@gmail.com> | 2012-04-29 13:30:39 +0200 |
commit | 38965f279eae831dc395d0626f0f679eda715858 (patch) | |
tree | 3d5267b9bc06e4edaed145bbc9f62f7a7d99d361 /dbg_mlc.c | |
parent | 596946199b9fea41770d8775e23c9de6e02f1ee7 (diff) | |
download | bdwgc-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.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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)); } |