首页> 外国专利> SELECTIVE STACK TRACE GENERATION DURING JAVA EXCEPTION HANDLING

SELECTIVE STACK TRACE GENERATION DURING JAVA EXCEPTION HANDLING

机译:JAVA异常处理期间的选择性堆栈跟踪生成

摘要

Systems and methods for selective stack trace generation during Java exception handling are disclosed. In embodiments, a method includes determining, by a Java virtual machine (JVM) of a computing device, that an exception object escapes a catch block of Java bytecodes; setting, by the JVM of the computing device, an escaped flag based on the determining that the exception object escapes the catch block; walking, by the JVM of the computing device, a call stack to locate an applicable catch block for the exception object, wherein the applicable catch block is the catch block; determining, by the JVM of the computing device, that the escaped flag is set in response to locating the applicable catch block; and creating, by the JVM of the computing device, a stack trace based on the determining that the escaped flag is set.
机译:公开了在Java异常处理期间用于选择性堆栈跟踪生成的系统和方法。在实施例中,一种方法包括:由计算设备的Java虚拟机(JVM)确定异常对象逃脱了Java字节码的捕获块。所述计算设备的JVM根据确定所述异常对象逃避所述捕获块,设置逃避标志;由计算设备的JVM遍历调用栈以为异常对象定位适用的捕获块,其中,适用的捕获块为捕获块;响应于找到适用的捕获块,由计算设备的JVM确定设置了转义标志;并由计算设备的JVM基于确定已设置转义标志来创建堆栈跟踪。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号