Enable Boehm GC
authorstefan <none@none>
Mon, 3 Feb 2003 22:58:06 +0000 (22:58 +0000)
committerstefan <none@none>
Mon, 3 Feb 2003 22:58:06 +0000 (22:58 +0000)
loader.c
src/mm/memory.h
src/threads/green/threads.c
src/vm/loader.c
threads/thread.c
toolbox/memory.h

index 4bf70f15ba4155aa2e4bf20fb942e56011648338..83d4d38bb220217c86bd181af81dda1b177c956b 100644 (file)
--- a/loader.c
+++ b/loader.c
 #endif
 #include "asmpart.h"
 
+#ifdef USE_BOEHM
+#include "toolbox/memory.h"
+#endif
+
 #include "threads/thread.h"
 #include <sys/stat.h>
 
index 5713b817a228caa0b3be5cc5a598952b0250415d..b06ba2f0b373614d325105aeb137184ac9f607bd 100644 (file)
@@ -16,6 +16,7 @@
 
 #ifdef USE_BOEHM
 /* Uncollectable memory which can contain references */
+void *heap_alloc_uncollectable(u4 bytelen);
 #define GCNEW(type,num) heap_alloc_uncollectable(sizeof(type) * (num))
 #endif
 
index 46f026a96ce79c1950b1158a64126c42400fa2f2..7bc7dd9cbe44a0eeb56e42f15f7dfa439c2465b0 100644 (file)
 #include "builtin.h"
 #include "asmpart.h"
 
+#ifdef USE_BOEHM
+#include "toolbox/memory.h"
+#endif
+
 static classinfo *class_java_lang_ThreadDeath;
 
 #if 1
index 4bf70f15ba4155aa2e4bf20fb942e56011648338..83d4d38bb220217c86bd181af81dda1b177c956b 100644 (file)
 #endif
 #include "asmpart.h"
 
+#ifdef USE_BOEHM
+#include "toolbox/memory.h"
+#endif
+
 #include "threads/thread.h"
 #include <sys/stat.h>
 
index 46f026a96ce79c1950b1158a64126c42400fa2f2..7bc7dd9cbe44a0eeb56e42f15f7dfa439c2465b0 100644 (file)
 #include "builtin.h"
 #include "asmpart.h"
 
+#ifdef USE_BOEHM
+#include "toolbox/memory.h"
+#endif
+
 static classinfo *class_java_lang_ThreadDeath;
 
 #if 1
index 5713b817a228caa0b3be5cc5a598952b0250415d..b06ba2f0b373614d325105aeb137184ac9f607bd 100644 (file)
@@ -16,6 +16,7 @@
 
 #ifdef USE_BOEHM
 /* Uncollectable memory which can contain references */
+void *heap_alloc_uncollectable(u4 bytelen);
 #define GCNEW(type,num) heap_alloc_uncollectable(sizeof(type) * (num))
 #endif