]> granicus.if.org Git - gc/commitdiff
2009-09-26 Ivan Maidanski <ivmai@mail.ru>
authorivmai <ivmai>
Sat, 26 Sep 2009 08:33:11 +0000 (08:33 +0000)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 26 Jul 2011 17:06:48 +0000 (21:06 +0400)
* mark_rts.c (GC_is_tmp_root): Don't define unless NO_DEBUGGING;
update the comment.
* include/private/gc_priv.h (GC_is_tmp_root): Remove declaration.

ChangeLog
include/private/gc_priv.h
mark_rts.c

index c9f8bbfdbaa8fcd7fbff5e5dfc6aa3166ec46976..c519123575c26a8a5fceec4bcbbdb9b8adfe6c5c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-09-26  Ivan Maidanski <ivmai@mail.ru>
+
+       * mark_rts.c (GC_is_tmp_root): Don't define unless NO_DEBUGGING;
+       update the comment.
+       * include/private/gc_priv.h (GC_is_tmp_root): Remove declaration.
+
 2009-09-26  Ivan Maidanski <ivmai@mail.ru>
 
        * alloc.c: Expand all tabs to spaces; remove trailing spaces at
index 78fcbe5b7e7c2105d806ab7a884fc2691b8461fa..c85e19b591337df3b2018b8111c4881dd46ceb9e 100644 (file)
@@ -1536,11 +1536,6 @@ void GC_exclude_static_roots_inner(void *start, void *finish);
 GC_bool GC_is_static_root(ptr_t p);
                 /* Is the address p in one of the registered static     */
                 /* root sections?                                       */
-# if defined(MSWIN32) || defined(_WIN32_WCE_EMULATION)
-GC_bool GC_is_tmp_root(ptr_t p);
-                /* Is the address p in one of the temporary static      */
-                /* root sections?                                       */
-# endif
 void GC_register_dynamic_libraries(void);
                 /* Add dynamic library data sections to the root set. */
 void GC_cond_register_dynamic_libraries(void);
index 9aab5cb08a3c73800533e0a61aac4a06af3804f2..99ee2788a258c0416f2fd750ae1e506b8471c21e 100644 (file)
@@ -335,7 +335,9 @@ STATIC void GC_remove_roots_inner(ptr_t b, ptr_t e)
 }
 #endif /* !defined(MSWIN32) && !defined(MSWINCE) */
 
-#if defined(MSWIN32) || defined(_WIN32_WCE_EMULATION)
+#if (defined(MSWIN32) || defined(_WIN32_WCE_EMULATION)) \
+        && !defined(NO_DEBUGGING)
+/* Not used at present (except for, may be, debugging purpose).         */
 /* Workaround for the OS mapping and unmapping behind our back:         */
 /* Is the address p in one of the temporary static root sections?       */
 GC_bool GC_is_tmp_root(ptr_t p)