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 $
*/
#ifndef _BOEHM_H
#define _BOEHM_H
+#include "global.h"
+
struct otherstackcall;
typedef void *(*calltwoargs)(void *, u4);
/* 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 */