Java and cache memory: prefetching and alignment?
问题 In Java, are there equivalences to functions such as GNU C extensions prefetch and align(64) , that is, cache line alignment? 回答1: Not that I know of because it doesn't make sense in a compile-on-demand system. With Java, it's the run-time optimizer's job to figure this stuff out and the best result is going to depend on the current platform which may or may not benefit from the constructs that prefetch and align offer. 来源: https://stackoverflow.com/questions/10056407/java-and-cache-memory