Hello. On Tue, Sep 28, 2010 at 12:19 AM, Nick Wellnhofer <[email protected]> wrote: >> Yes, main purpose of using lists was to simplify GenGC implementation. >> If we want to use your approach we have implement compacting to avoid >> sweeping all memory after marking young generations. > > Can't we use an array that holds all the PMC pointers of the young > generation?
We can use same approach as Pool_Allocator - allocate 4k chunks and store pointer to "next free cell". Using plain old C arrays will be too slow because we need to remove items from middle of list. -- Bacek _______________________________________________ http://lists.parrot.org/mailman/listinfo/parrot-dev
