Cacao does now compile again with threads disabled.
[cacao.git] / mm / heap.old.c
index 478e40b2244010bc4f9f85e1024f9b1d032816b6..debd9e585eb564bf0700b16653703c1a770e25eb 100644 (file)
@@ -693,7 +693,6 @@ gc_call (void)
 {
 #ifdef USE_THREADS
        assert(blockInts == 0);
-#endif
 
        intsDisable();
        if (currentThread == NULL || currentThread == mainThread)
@@ -701,6 +700,9 @@ gc_call (void)
        else
                asm_switchstackandcall(CONTEXT(mainThread).usedStackTop, heap_docollect);
        intsRestore();
+#else
+       heap_docollect();
+#endif
 }