阅读背景:

NullPointerException打印太多了,就有可能被jdk优化,不打印堆栈信息

来源:互联网 

The compiler in the server VM now provides correct stack backtraces for all "cold" built-in exceptions. For performance purposes, when such an exception is thrown a few times, the method may be recompiled. After recompilation, the compiler may choose a faster tactic using preallocated exceptions that do not provide a stack trace. To disable completely the use of preallocated exceptions, use this new flag: The compiler in the server VM now provides corr




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: