Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZoltan Varga <vargaz@gmail.com>2009-10-26 01:01:54 +0300
committerZoltan Varga <vargaz@gmail.com>2009-10-26 01:01:54 +0300
commit7d5bb303821cc0a3d44e8d27c0a00081b64076b8 (patch)
tree7aa48d749149d153d644aff92e7094673af4369a /libgc/misc.c
parent983beab3f9e060010cef4a538c7f59c8cbe1a616 (diff)
In libgc:
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
Diffstat (limited to 'libgc/misc.c')
-rw-r--r--libgc/misc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libgc/misc.c b/libgc/misc.c
index 4744faa405e..79c8178e73e 100644
--- a/libgc/misc.c
+++ b/libgc/misc.c
@@ -468,6 +468,15 @@ size_t GC_get_total_bytes GC_PROTO(())
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()