▲ | A simple semi-space collector – wingolog (2022)(wingolog.org) | ||||||||||||||||||||||
42 points by whereistimbo 3 days ago | 8 comments | |||||||||||||||||||||||
▲ | davexunit 3 days ago | parent | next [-] | ||||||||||||||||||||||
If you like reading about GC implementation than keep reading wingo's blog. He's currently being funded by NLnet to finish the Whippet GC library. | |||||||||||||||||||||||
| |||||||||||||||||||||||
▲ | vanderZwan 3 days ago | parent | prev | next [-] | ||||||||||||||||||||||
Wingolog blog posts are always such a joy to read (for me at least). The combination of low-level fundamental stuff presented in a simple and accessible way that gets the core idea across is a rare quality. An immediate question I have is whether one could extend compacting GCs to also "sort" or "cluster" the live objects for better cache access in some way (in a practical sense I mean, where the extra runtime overhead is worth it). Also what kind clustering would actually work in that case. I'm guessing naively tracking how often each object is accessed in a certain window of time and sorting by that wouldn't work, since the most accessed objects could be used at completely different times - some sort of "accessed together" algorithm probably makes more sense. But then we're in the territory of a combinatorial explosion of options if we're not careful. Maybe something really stupid would work:
Worst case this would put objects right next to at least two objects that were accessed around the same time.I presume that this question must have been researched to death, does anyone have any suggestions? | |||||||||||||||||||||||
▲ | ogogmad 3 days ago | parent | prev | next [-] | ||||||||||||||||||||||
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? | |||||||||||||||||||||||
| |||||||||||||||||||||||
▲ | 2 days ago | parent | prev [-] | ||||||||||||||||||||||
[deleted] |