Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Research is done. Here is a tech talk on a form of GC integrated into the JVM where the user can annotate regions:

http://www.oracle.com/technetwork/java/jvmls2015-wimmer-2637...

https://www.youtube.com/watch?v=3JphI1Z0MTk&list=PLX8CzqL3Ar...

The region markings are used as hints. Allocations are put into the region when possible and then the region is discarded at the end in one go, which is of course a well explored idea but this one is interesting in that you only scope out the regions and don't need to manually assign each allocation. Also allocations that naturally exist beyond the end of the region work properly without additional effort.

One issue is that it's often quite hard to beat a properly tuned generational collector even with techniques that intuitively 'feel' right. As one example, Azul experimented with aggressive hardware-assisted stack allocation on their custom CPU and abandoned it because they found it didn't really beat well tuned generational collection.



Awesome, thanks!




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: