Request for review (S): 6589834 deoptimization problem with -XX:+DeoptimizeALot

Changpeng Fang Changpeng.Fang at Sun.COM
Wed Apr 22 15:23:03 PDT 2009

Problem Summary: For  new_array allocation in inlining intrinsics,  the 
arguments should to pushed
back to the stack (through stack pointer adjustment) when an 
uncommon_trap is actually inserted.
However, in functions like inline_native_clone, the stack pointer 
adjustment was performed too early
(before new_array allocation), and if a deoptimization is triggered on 
the slow path allocation, the control
will be transferred to the interpreter with an incorrect interpreter stack.

Proposed Solution: Adjust the stack pointer only when uncommon_trap is 
actually inserted.

Tests: passed with JPRT and the test cases attached to the CR 6589834.



More information about the hotspot-compiler-dev mailing list