▲ | ogogmad 3 days ago | |||||||
This approach makes sense if you have access to either all available memory or a fixed quantity of memory, half of which would go to the fromspace and the other half to the tospace. What I don't understand is: When should the heap be made bigger? What about smaller? | ||||||||
▲ | rurban 3 days ago | parent | next [-] | |||||||
Making it bigger requires a stop the world, and moving some objects. You'll never need to make it smaller, but this requires the same efforts. But good to see someone finally explaining the simplest and fastest GC, because the objects are compacted, usually in the same cache line. MMTk is way underused | ||||||||
| ||||||||
▲ | p_l 2 days ago | parent | prev [-] | |||||||
I believe the original two-space aka semispace collector actually used all of the memory as main memory... then it used a tape as temporary buffer where it wrote "live" objects, and restored from tape again |