Index: mem/gc-incremental.c =================================================================== RCS file: /home/cvspublic/kaffe/kaffe/kaffevm/mem/gc-incremental.c,v retrieving revision 1.19 diff -p -u -r1.19 gc-incremental.c --- gc-incremental.c 1998/12/18 05:40:42 1.19 +++ gc-incremental.c 1998/12/18 18:37:35 @@ -27,6 +27,7 @@ #include "soft.h" #include "md.h" #include "jni.h" +#include "access.h" static gcList gclists[5]; static int mustfree = 4; /* temporary list */ @@ -443,6 +444,8 @@ walkMethods(void* base, uint32 size) /* NB: don't need to mark ncode cause it does not point to * any allocated object. */ + if(!METHOD_TRANSLATED(m) && (m->ncode != 0)) + markObject(m->ncode); m++; } } @@ -843,6 +846,7 @@ gcMalloc(size_t size, int fidx) initGc(); } + assert(size != 0); unit = gc_heap_malloc(size + sizeof(gc_unit)); /* keep pointer to object */