/* Prototypes *****************************************************************/
+void gc_collect(s4 level);
+
#if defined(ENABLE_THREADS)
bool gc_suspend(threadobject *thread, u1 *pc, u1 *sp);
#endif
#include "mark.h"
#include "region.h"
#include "mm/memory.h"
-#include "src/native/include/java_lang_String.h" /* TODO: fix me! */
+#include "native/include/java_lang_String.h"
#include "toolbox/logging.h"
#include "vm/global.h"
+#include "vm/stringlocal.h"
+#include "vm/vm.h"
#include "vmcore/rt-timing.h"
/* allocate new heap from the system */
newsize = heap_current_size + increasesize;
- p = malloc(newsize);
+ /*p = malloc(newsize);*/
/* check if the newly allocated heap exists */
if (p == NULL)
dolog("GC: Region out of memory!");
if (collect) {
- gc_collect();
+ gc_collect(0);
GC_ASSERT(region->free >= bytelength);
} else
return NULL;