- typecast GCNEW
[cacao.git] / src / mm / boehm.h
index 0507f79fc41dc8017f12ee97d2968b80ea37b474..fe704ef1384dfb68f80c1664e66969f6f0373e1c 100644 (file)
@@ -26,7 +26,7 @@
 
    Authors: Christian Thalinger
 
-   $Id: boehm.h 580 2003-11-09 19:07:39Z twisti $
+   $Id: boehm.h 1621 2004-11-30 13:06:55Z twisti $
 
 */
 
 #ifndef _BOEHM_H
 #define _BOEHM_H
 
-#include "global.h"
+#include "types.h"
+#include "vm/global.h"
+
 
 struct otherstackcall;
 
 typedef void *(*calltwoargs)(void *, u4);
 
 struct otherstackcall {
-       calltwoargs p2;
-       void *p;
-       u4 l;
+       calltwoargs  p2;
+       void        *p;
+       u4           l;
 };
 
 
 /* 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 */