Request for reviews (S): 6997459: JSR 292 after 6994093 getting: on return to interpreted call, restored SP is corrupted

Christian Thalinger christian.thalinger at oracle.com
Thu Nov 4 04:55:47 PDT 2010


http://cr.openjdk.java.net/~twisti/6997459/webrev.01/

6997459: JSR 292 after 6994093 getting: on return to interpreted call,  
restored SP is corrupted
Reviewed-by:

After 6994093 running a testcase on SPARC that should throw a
WrongMethodTypeException results in an assert.  The problem is that
the change of 6994093 destroys O5 which is the saved sender SP and
that leads to bogus FP values.

The fix is to change temporary register usage in
MethodHandles::generate_method_handle_interpreter_entry to preserve
O5.

Tested with failing testcase.


More information about the hotspot-compiler-dev mailing list