首页> 外文期刊>Science of Computer Programming >Java heap protection for debugging native methods
【24h】

Java heap protection for debugging native methods

机译:Java堆保护用于调试本机方法

获取原文
获取原文并翻译 | 示例

摘要

Java virtual machine (JVM) crashes are often due to an invalid memory reference to the JVM heap. Before the bug that caused the invalid reference can be fixed, its location must be identified. It can be in either the JVM implementation or the native library written in C invoked from Java applications. To help system engineers identify the location, we implemented a feature using page protection that prevents threads executing native methods from referring to the JVM heap. This feature protects the JVM heap during native method execution; if the heap is referred to invalidly, it interrupts the execution by generating a page-fault exception. It then reports the location where the exception was generated. The runtime overhead for using this feature depends on the frequency of native method calls because the protection is switched on each time a native method is called. We evaluated the runtime overhead by running the SPECjvm98, SPECjbb2000, VolanoMark, and JFCMark benchmark suites on a PC with two Intel Xeon~® 1.6 GHz processors. The performance loss was less than 2% for the benchmark items that do not call native methods so frequently (~10~4 times per second) and 5%-20% for the benchmark items that do (10~4-10~5 times per second). The worst performance loss was 54%, which was recorded for a benchmark item that calls native methods 2.0 × 10~6 times per second.
机译:Java虚拟机(JVM)崩溃通常是由于对JVM堆的无效内存引用所致。在修复导致无效引用的错误之前,必须先确定其位置。它可以在JVM实现中,也可以在从Java应用程序调用的用C编写的本机库中。为了帮助系统工程师确定位置,我们使用页面保护实现了一项功能,该功能可以防止执行本机方法的线程引用JVM堆。此功能可在执行本机方法期间保护JVM堆。如果无效引用了堆,则会通过生成页面错误异常来中断执行。然后,它报告生成异常的位置。使用此功能的运行时开销取决于本机方法调用的频率,因为每次调用本机方法时都会打开保护。我们通过在具有两个Intel Xeon〜®1.6 GHz处理器的PC上运行SPECjvm98,SPECjbb2000,VolanoMark和JFCMark基准套件来评估运行时开销。对于不经常调用本机方法的基准项,性能损失小于2%(每秒约10〜4次),对于不调用本机方法的基准项(10〜4-10〜5次),性能损失小于5%-20%每秒)。性能损失最严重的是54%,这是针对基准项记录的,该基准项每秒调用本机方法2.0×10〜6次。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号