Authors: Stefan Ring
- $Id: boehm.c 953 2004-03-11 23:02:26Z stefan $
+ $Id: boehm.c 984 2004-03-28 23:08:07Z twisti $
*/
MAINTHREADCALL(result, stackcall_malloc_atomic, NULL, bytelength);
}
+ if (!result) {
+ log_text("java_lang_OutOfMemoryError");
+ *exceptionptr = new_exception(string_java_lang_OutOfMemoryError);
+ return NULL;
+ }
+
if (finalizer)
GC_REGISTER_FINALIZER(result, runboehmfinalizer, 0, 0, 0);
void gc_init()
{
+ GC_init();
}
}
+s8 gc_get_heap_size()
+{
+ return GC_get_heap_size();
+}
+
+
+s8 gc_get_free_bytes()
+{
+ return GC_get_free_bytes();
+}
+
+
+void gc_finalize_all()
+{
+ GC_finalize_all();
+}
+
+
/*
* These are local overrides for various environment variables in Emacs.
* Please do not remove this and leave it at the end of the file, where
Authors: Christian Thalinger
- $Id: boehm.h 839 2004-01-05 00:27:21Z twisti $
+ $Id: boehm.h 984 2004-03-28 23:08:07Z twisti $
*/
void heap_close();
void gc_init();
void gc_call();
+s8 gc_get_heap_size();
+s8 gc_get_free_bytes();
+void gc_finalize_all();
#endif /* _BOEHM_H */
Authors: Stefan Ring
- $Id: boehm.c 953 2004-03-11 23:02:26Z stefan $
+ $Id: boehm.c 984 2004-03-28 23:08:07Z twisti $
*/
MAINTHREADCALL(result, stackcall_malloc_atomic, NULL, bytelength);
}
+ if (!result) {
+ log_text("java_lang_OutOfMemoryError");
+ *exceptionptr = new_exception(string_java_lang_OutOfMemoryError);
+ return NULL;
+ }
+
if (finalizer)
GC_REGISTER_FINALIZER(result, runboehmfinalizer, 0, 0, 0);
void gc_init()
{
+ GC_init();
}
}
+s8 gc_get_heap_size()
+{
+ return GC_get_heap_size();
+}
+
+
+s8 gc_get_free_bytes()
+{
+ return GC_get_free_bytes();
+}
+
+
+void gc_finalize_all()
+{
+ GC_finalize_all();
+}
+
+
/*
* These are local overrides for various environment variables in Emacs.
* Please do not remove this and leave it at the end of the file, where
Authors: Christian Thalinger
- $Id: boehm.h 839 2004-01-05 00:27:21Z twisti $
+ $Id: boehm.h 984 2004-03-28 23:08:07Z twisti $
*/
void heap_close();
void gc_init();
void gc_call();
+s8 gc_get_heap_size();
+s8 gc_get_free_bytes();
+void gc_finalize_all();
#endif /* _BOEHM_H */