diff options
author | Tobias Rapp <tobias.rapp@student.kit.edu> | 2013-06-24 12:35:20 +0200 |
---|---|---|
committer | Tobias Rapp <tobias.rapp@student.kit.edu> | 2013-06-24 12:35:20 +0200 |
commit | 53ee73ff99c2cc10e7bff0ebd9a0a5e711f55ad9 (patch) | |
tree | 03d9ee4afb0b461512c289d457a76e4747f62d8c | |
parent | b1965ee06d117ad6ffbc5195a73823e9670db5ad (diff) |
Added spinlock initialization for OCTOPOS_THREADS
-rw-r--r-- | misc.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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(); |