Request for reviews (M): 6833129 : specjvm98 fails with NullPointerException in the compiler with -XX:DeoptimizeALot
changpeng fang - Sun Microsystems - Santa Clara United States
Changpeng.Fang at Sun.COM
Mon Jul 6 15:06:03 PDT 2009
The problem is in intrinsics Object.clone and Arrays.copyOf. When
de-optimization occurs on the slow path for array/instance
allocation, the Interpreter will continue execution in next bc after the
slow allocation calls without actual copying.
Add a restart bit in debuginfo to direct the deopt to restart execution
of the bytecode that invokes Object.clone/Arrays.copyOf.
The restart bit is set up in Inline Intrinsics of
Passed specjvm98, JPRT and the test case of clone in the bug report.
More information about the hotspot-compiler-dev