changeset 4086:82caec9a04ca

8004713: Stackoverflowerror thrown when thread stack straddles 0x80000000 Summary: use unsigned comparison when checking for stack overflow Reviewed-by: kvn, twisti Contributed-by: paul.nauman@oracle.com
author kvn
date Thu, 13 Dec 2012 17:27:55 -0800
parents e064c40afff6
children e1d9b04b560b 72610d66a199 f0ea4cc93756
files src/cpu/sparc/vm/templateInterpreter_sparc.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/cpu/sparc/vm/templateInterpreter_sparc.cpp	Thu Dec 13 18:07:25 2012 -0800
+++ b/src/cpu/sparc/vm/templateInterpreter_sparc.cpp	Thu Dec 13 17:27:55 2012 -0800
@@ -434,7 +434,7 @@
 
   // 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