Java和高速缓存:预取和对齐? [英] Java and cache memory: prefetching and alignment?

查看:63
本文介绍了Java和高速缓存:预取和对齐?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Java中,是否具有与GNU C扩展 prefetch align(64)(即缓存行对齐)等功能等效的功能?

In Java, are there equivalences to functions such as GNU C extensions prefetch and align(64), that is, cache line alignment?

推荐答案

我不知道,因为它在按需编译系统中没有意义.使用Java,运行时优化器的工作是找出这些东西,并且最佳结果将取决于当前平台,这可能会或可能不会受益于 prefetch align的构造.报价.

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.

这篇关于Java和高速缓存:预取和对齐?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆