summaryrefslogtreecommitdiff
path: root/dbg_mlc.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2017-09-19 10:08:38 +0300
committerIvan Maidanski <ivmai@mail.ru>2017-09-19 10:08:38 +0300
commit5f0621df48a9106e1faf9acf843cdacac9aef09a (patch)
treee3954bfab92bcbe194aac391af686798678d8664 /dbg_mlc.c
parent163c3456f2b60cba0436f180cc0c8b29faae5c34 (diff)
downloadbdwgc-5f0621df48a9106e1faf9acf843cdacac9aef09a.tar.gz
Add TODO item to suppress 'called on pointer without debugging info'
* dbg_mlc.c [REDIRECT_FREE && USE_PROC_FOR_LIBRARIES] (GC_debug_free): Add TODO item not to call GC_err_printf() when free() is called from libpthread or libdl.
Diffstat (limited to 'dbg_mlc.c')
-rw-r--r--dbg_mlc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dbg_mlc.c b/dbg_mlc.c
index 4edeeefd..c22435ae 100644
--- a/dbg_mlc.c
+++ b/dbg_mlc.c
@@ -849,6 +849,10 @@ GC_API void GC_CALL GC_debug_free(void * p)
ABORT_ARG1("Invalid pointer passed to free()", ": %p", p);
}
if ((ptr_t)p - (ptr_t)base != sizeof(oh)) {
+# if defined(REDIRECT_FREE) && defined(USE_PROC_FOR_LIBRARIES)
+ /* TODO: Suppress the warning if free() caller is in libpthread */
+ /* or libdl. */
+# endif
GC_err_printf(
"GC_debug_free called on pointer %p w/o debugging info\n", p);
} else {