Java and cache memory: prefetching and alignment?

自作多情 提交于 2020-02-05 13:16:32

问题


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-prefetching-and-alignment

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!