Export GC_dump_finalization/regions()
authorIvan Maidanski <ivmai@mail.ru>
Fri, 28 Oct 2016 21:23:02 +0000 (00:23 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Sat, 29 Oct 2016 06:46:20 +0000 (09:46 +0300)
Note: these 2 functions are not used by GC itself.

* allchblk.c [!NO_DEBUGGING] (GC_dump_regions): Turn into a public
definition (add GC_API+GC_CALL).
* finalize.c [!NO_DEBUGGING] (GC_dump_finalization): Likewise.
* include/gc.h (GC_dump_regions, GC_dump_finalization): New public API
prototype.

allchblk.c
finalize.c
include/gc.h

index 2c1061e..90331dc 100644 (file)
@@ -167,7 +167,7 @@ static int free_list_index_of(hdr *wanted)
     return -1;
 }
 
-void GC_dump_regions(void)
+GC_API void GC_CALL GC_dump_regions(void)
 {
     unsigned i;
 
index dc03d22..9f03f81 100644 (file)
@@ -807,7 +807,7 @@ GC_API void GC_CALL GC_register_finalizer_unreachable(void * obj,
     }
   }
 
-  void GC_dump_finalization(void)
+  GC_API void GC_CALL GC_dump_finalization(void)
   {
     struct finalizable_object * curr_fo;
     size_t fo_size = log_fo_table_size == -1 ? 0 :
index 2041f62..7846314 100644 (file)
@@ -1518,6 +1518,15 @@ GC_API void * GC_CALL GC_is_valid_displacement(void * /* p */);
 /* Defined only if the library has been compiled without NO_DEBUGGING.  */
 GC_API void GC_CALL GC_dump(void);
 
+/* Dump information about each block of every GC memory section.        */
+/* Defined only if the library has been compiled without NO_DEBUGGING.  */
+GC_API void GC_CALL GC_dump_regions(void);
+
+/* Dump information about every registered disappearing link and        */
+/* finalizable object.                                                  */
+/* Defined only if the library has been compiled without NO_DEBUGGING.  */
+GC_API void GC_CALL GC_dump_finalization(void);
+
 /* Safer, but slow, pointer addition.  Probably useful mainly with      */
 /* a preprocessor.  Useful only for heap pointers.                      */
 /* Only the macros without trailing digits are meant to be used         */