3 ms·
I think so, too. Java has had escape analysis for some years now[1]. It is not only used for stack allocation, but also for lock eliding. In any case, stack all
by pron 12y ago
I think so, too. Java has had escape analysis for some years now[1]. It is not only used for stack allocation, but also for lock eliding. In any case, stack allocation has been found to not be a dramatic improvement under normal program circumstances precisely because young garbage is so cheap.
[1]: https://wikis.oracle.com/display/HotSpotInternals/EscapeAnalysis https://wikis.oracle.com/display/HotSpotInternals/EscapeAnal...
- pbiggar 12y agoThat paper is the one I got almost all my info from: Choi 99. I implemented that and a few variations for gcc and phc. Another interesting paper on this is "Free-Me: A Static Analysis for Automatic Individual Object Reclamation" by Sam Guyer in PLDI 2006.