Mercurial > hg > truffle
diff src/share/vm/opto/compile.cpp @ 325:93befa083681
6741004: UseLargePages + UseCompressedOops breaks implicit null checking guard page
Summary: Turn off c2 implicit null checking on windows and large pages specified.
Reviewed-by: jrose, xlu
author | coleenp |
---|---|
date | Tue, 02 Sep 2008 15:18:26 -0400 |
parents | c3e045194476 |
children | 7484fa4b8825 |
line wrap: on
line diff
--- a/src/share/vm/opto/compile.cpp Sun Aug 31 15:24:54 2008 -0700 +++ b/src/share/vm/opto/compile.cpp Tue Sep 02 15:18:26 2008 -0400 @@ -2082,7 +2082,7 @@ in2 = n->in(2)->in(1); } else if ( n->in(2)->Opcode() == Op_ConP ) { const Type* t = n->in(2)->bottom_type(); - if (t == TypePtr::NULL_PTR) { + if (t == TypePtr::NULL_PTR && UseImplicitNullCheckForNarrowOop) { Node *in1 = n->in(1); if (Matcher::clone_shift_expressions) { // x86, ARM and friends can handle 2 adds in addressing mode.