Request for reviews (S): 6987555: JSR 292 unboxing to a boolean value fails on big-endian SPARC

Christian Thalinger christian.thalinger at oracle.com
Mon Sep 27 04:43:06 PDT 2010


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

6987555: JSR 292 unboxing to a boolean value fails on big-endian SPARC
Reviewed-by: 

On a big-endian SPARC machine an unboxed true boolean value looks like
0x01000000 but the shift is 31 bits, which results in a wrong value.

The fix is to check for a boolean destination type before we do the
shift and adjust the shift value.

Tested with test.java.dyn.MethodHandlesTest.

Additionally this change includes some SPARC-specific changes which
were part of 6984311.



More information about the hotspot-compiler-dev mailing list