2009-10-25 Zoltan Varga <vargaz@gmail.com>
* misc.c (GC_get_suspend_signal): New API function to return the suspend signal
used by libgc.
In mono/mini:
2009-10-25 Zoltan Varga <vargaz@gmail.com>
* mini-posix.c (add_signal_handler): Delay the GC suspend signal while
executing a SIGSEGV handler on an altstack, since libgc can't handle that.
In mono/tests:
2009-10-25 Zoltan Varga <vargaz@gmail.com>
* misc.c (GC_get_suspend_signal): New API function to return the suspend signal
used by libgc.
svn path=/trunk/mono/; revision=144828
+2009-10-25 Zoltan Varga <vargaz@gmail.com>
+
+ * misc.c (GC_get_suspend_signal): New API function to return the suspend signal
+ used by libgc.
+
2009-09-29 Zoltan Varga <vargaz@gmail.com>
* solaris_threads.c (GC_thr_daemon): Don't crash if GC_lookup_thread () returns
/* Never decreases, except due to wrapping. */
GC_API size_t GC_get_total_bytes GC_PROTO((void));
+/* Return the signal used by the gc to suspend threads on posix platforms. */
+/* Return -1 otherwise. */
+int GC_get_suspend_signal GC_PROTO((void));
+
/* Disable garbage collection. Even GC_gcollect calls will be */
/* ineffective. */
GC_API void GC_disable GC_PROTO((void));
return ((size_t) WORDS_TO_BYTES(GC_words_allocd+GC_words_allocd_before_gc));
}
+int GC_get_suspend_signal GC_PROTO(())
+{
+#ifdef SIG_SUSPEND
+ return SIG_SUSPEND;
+#else
+ return -1;
+#endif
+}
+
GC_bool GC_is_initialized = FALSE;
void GC_init()