1.1 --- a/src/share/vm/c1/c1_LIRAssembler.cpp Tue Aug 30 00:54:09 2011 -0700 1.2 +++ b/src/share/vm/c1/c1_LIRAssembler.cpp Tue Aug 30 19:01:58 2011 -0700 1.3 @@ -121,7 +121,7 @@ 1.4 1.5 void LIR_Assembler::check_codespace() { 1.6 CodeSection* cs = _masm->code_section(); 1.7 - if (cs->remaining() < (int)(1*K)) { 1.8 + if (cs->remaining() < (int)(NOT_LP64(1*K)LP64_ONLY(2*K))) { 1.9 BAILOUT("CodeBuffer overflow"); 1.10 } 1.11 }