review (S) for 6968348: Byteswapped memory access can point to wrong location after JIT

Christian Thalinger christian.thalinger at oracle.com
Thu Sep 30 05:04:20 PDT 2010


On Wed, 2010-09-29 at 18:25 -0700, Tom Rodriguez wrote:
> http://cr.openjdk.java.net/~never/6968348
> 
> 6968348: Byteswapped memory access can point to wrong location after JIT
> Reviewed-by:
> 
> x86_64.ad has match rules for (Store (ReverseBytes val)) but the
> definition is buggy since the val can be used in address of the store.
> It also doesn't record that it changes the input value.  The fix is to
> simply remove these rules since they are no better than what we'd get
> otherwise.  x86_32.ad doesn't have these rules.  sparc.ad does but it
> can generate better code for these forms because it can use the byte
> swapped ASI and doesn't have to modify the register before storing it.
> Tested with new test case.

Good.  -- Christian



More information about the hotspot-compiler-dev mailing list