summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Rapp <tobias.rapp@student.kit.edu>2013-06-24 12:35:20 +0200
committerTobias Rapp <tobias.rapp@student.kit.edu>2013-06-24 12:35:20 +0200
commit53ee73ff99c2cc10e7bff0ebd9a0a5e711f55ad9 (patch)
tree03d9ee4afb0b461512c289d457a76e4747f62d8c
parentb1965ee06d117ad6ffbc5195a73823e9670db5ad (diff)
Added spinlock initialization for OCTOPOS_THREADS
-rw-r--r--misc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/misc.c b/misc.c
index 9894f3d..8bf4f73 100644
--- a/misc.c
+++ b/misc.c
@@ -878,6 +878,11 @@ GC_API void GC_CALL GC_init(void)
# if (defined(MSWIN32) || defined(MSWINCE)) && defined(THREADS)
InitializeCriticalSection(&GC_write_cs);
# endif
+
+# if defined(GC_OCTOPOS_THREADS)
+ simple_spinlock_init(&GC_allocate_ml);
+# endif
+
GC_setpagesize();
# ifdef MSWIN32
GC_init_win32();