How the Nasal GC works: Difference between revisions

Jump to navigation Jump to search
m
Line 125: Line 125:
     // mark all new blocks as unreachable and add them to the pool's free list
     // 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++) {
        // initialize each new new memory blocks by setting up an naRef (the container for all Nasal references)
         struct naObj* o = (struct naObj*)(newb->block + i*p->elemsz);
         struct naObj* o = (struct naObj*)(newb->block + i*p->elemsz);
         o->mark = 0;
         o->mark = 0;

Navigation menu