#ifdef MULTICORE_GC
void * allocate_new(void * ptr, int type) {
struct ___Object___ * v=(struct ___Object___ *)FREEMALLOC((struct garbagelist *) ptr, classsize[type]);
+#ifdef GC_DEBUG
+ tprintf("new object: %x \n", v);
+#endif
v->type=type;
v->version = 0;
v->lock = NULL;
struct ArrayObject * allocate_newarray(void * ptr, int type, int length) {
struct ArrayObject * v=(struct ArrayObject *)FREEMALLOC((struct garbagelist *) ptr, sizeof(struct ArrayObject)+length*classsize[type]);
+#ifdef GC_DEBUG
+ tprintf("new array object: %x \n", v);
+#endif
v->type=type;
v->version = 0;
v->lock = NULL;