3 ms·
There are some optimizations in the JVM that will improve cache coherence. Bump allocation helps, inlining and escape analysis help, etc. In theory the GC can
by staticassertion 5y ago
There are some optimizations in the JVM that will improve cache coherence. Bump allocation helps, inlining and escape analysis help, etc.
In theory the GC can also rearrange memory to 'compact' it. I'm not aware of this optimization in practice.
- throwaway894345 5y agoAs far as I know, all mainstream Java GCs are compacting; however, I don’t have an idea about the degree this improves cache coherence.