8004713: Stackoverflowerror thrown when thread stack straddles 0x80000000

Use unsigned comparison when checking for stack overflow

Reviewed-by: kvn, twisti
This commit is contained in:
Paul Nauman 2012-12-13 17:27:55 -08:00 committed by Vladimir Kozlov
parent 04fee0b792
commit 0d7c6381b3

View File

@ -434,7 +434,7 @@ void TemplateInterpreterGenerator::generate_stack_overflow_check(Register Rframe
// the frame is greater than one page in size, so check against
// the bottom of the stack
__ cmp_and_brx_short(SP, Rscratch, Assembler::greater, Assembler::pt, after_frame_check);
__ cmp_and_brx_short(SP, Rscratch, Assembler::greaterUnsigned, Assembler::pt, after_frame_check);
// the stack will overflow, throw an exception