3 ms·
Like I said, HotSpot already does a version of this. Doing doing the full version with deopt wouldn't appreciably harder analysis-wise: https://wikis.oracle.com
by fulafel 12y ago
Like I said, HotSpot already does a version of this. Doing doing the full version with deopt wouldn't appreciably harder analysis-wise:
https://wikis.oracle.com/display/HotSpotInternals/CompressedOops https://wikis.oracle.com/display/HotSpotInternals/Compressed...
For static compilation, generally proving <42000 by reasoning from code is probably too hard, but lots of room for cheating. For example profile feedback generates observation about <42000 and you put in an assertion to that effect.
There's some attention deficit in academia, but there do exist papers about this stuff. Eg https://dl.acm.org/citation.cfm?id=1739033 https://dl.acm.org/citation.cfm?id=1739033 and its refs http://scholar.google.com/scholar?q=related:g11WX-h6J6cJ:scholar.google.com http://scholar.google.com/scholar?q=related:g11WX-h6J6cJ:sch...
It's just not making its way to real-world production compilers/VMs. C/C++ don't really allow most of these optimizations, that's one problem.