Mercurial > hg > graal-compiler
diff src/cpu/sparc/vm/sparc.ad @ 1016:d40f03b57795
6890984: Comparison of 2 arrays could cause VM crash
Summary: Restore original null checks.
Reviewed-by: never, cfang
author | kvn |
---|---|
date | Wed, 14 Oct 2009 15:03:32 -0700 |
parents | 1ce3281a8e93 |
children | f875b4f472f7 |
line wrap: on
line diff
--- a/src/cpu/sparc/vm/sparc.ad Wed Oct 14 11:42:59 2009 -0700 +++ b/src/cpu/sparc/vm/sparc.ad Wed Oct 14 15:03:32 2009 -0700 @@ -3016,7 +3016,7 @@ // return true if the same array __ cmp(ary1_reg, ary2_reg); - __ br(Assembler::equal, true, Assembler::pn, Ldone); + __ brx(Assembler::equal, true, Assembler::pn, Ldone); __ delayed()->add(G0, 1, result_reg); // equal __ br_null(ary1_reg, true, Assembler::pn, Ldone);