2 ms·
Many styles are implemented that way. Check out Java for (many) examples.[1] Naively, with Ruby's mark-sweep collector[2], you might want to do the sweep phase
by mcguire 13y ago
Many styles are implemented that way. Check out Java for (many) examples.[1]
Naively, with Ruby's mark-sweep collector[2], you might want to do the sweep phase in parallel, adding garbage blocks to the free list. You could do the mark phase as well, with I believe a pause to make the marks a consistent snapshot.
[1] http://www.oracle.com/technetwork/java/javase/tech/g1-intro-jsp-135488.html http://www.oracle.com/technetwork/java/javase/tech/g1-intro-..., for one.
[2] http://tmm1.net/ruby21-rgengc/ http://tmm1.net/ruby21-rgengc/