How the Nasal GC works: Difference between revisions

Jump to navigation Jump to search
m
Line 44: Line 44:
     p->nfree = 0;
     p->nfree = 0;
     p->free = p->free0 + p->freetop;
     p->free = p->free0 + p->freetop;
    // mark all new blocks as unreachable and add them to the pool's free list
     for(i=0; i < need; i++) {
     for(i=0; i < need; i++) {
         struct naObj* o = (struct naObj*)(newb->block + i*p->elemsz);
         struct naObj* o = (struct naObj*)(newb->block + i*p->elemsz);

Navigation menu