Threads for IRIX
[cacao.git] / mm / boehm.h
index 6071778ea18f3d2ec052bd05199a61ac751ee5e2..c8fa1631c5885386e64243afc1ec040a98053499 100644 (file)
@@ -26,7 +26,7 @@
 
    Authors: Christian Thalinger
 
-   $Id: boehm.h 563 2003-11-03 00:37:15Z twisti $
+   $Id: boehm.h 1143 2004-06-05 23:53:24Z twisti $
 
 */
 
@@ -34,6 +34,8 @@
 #ifndef _BOEHM_H
 #define _BOEHM_H
 
+#include "global.h"
+
 struct otherstackcall;
 
 typedef void *(*calltwoargs)(void *, u4);
@@ -46,15 +48,20 @@ struct otherstackcall {
 
 
 /* function prototypes */
+
 void *heap_alloc_uncollectable(u4 bytelength);
 void runboehmfinalizer(void *o, void *p);
 void *heap_allocate (u4 bytelength, bool references, methodinfo *finalizer);
 void *heap_reallocate(void *p, u4 bytelength);
-void heap_init (u4 size, u4 startsize, void **stackbottom);
-void heap_close();
-void heap_addreference (void **reflocation);
-void gc_init();
+void heap_free(void *p);
+void gc_init(u4 heapmaxsize, u4 heapstartsize);
 void gc_call();
+s8 gc_get_heap_size();
+s8 gc_get_free_bytes();
+s8 gc_get_max_heap_size();
+void gc_invoke_finalizers();
+void gc_finalize_all();
+void *gc_out_of_memory();
 
 #endif /* _BOEHM_H */