#10409 Backport of #9905 runtime/CheckUnhandledOops/TestOutOfMemory.java fastdebug crash mips64el-jdk8u222-b12

Fri, 11 Oct 2019 22:53:27 +0800

author
huangjia
date
Fri, 11 Oct 2019 22:53:27 +0800
changeset 9706
8c67a8d09196
parent 9705
0b27fc8adf1b
child 9707
b87dc103bf45

#10409 Backport of #9905 runtime/CheckUnhandledOops/TestOutOfMemory.java fastdebug crash
Reviewed-by: aoqi

src/share/vm/runtime/os.cpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/vm/runtime/os.cpp	Fri Sep 27 11:31:13 2019 +0800
     1.2 +++ b/src/share/vm/runtime/os.cpp	Fri Oct 11 22:53:27 2019 +0800
     1.3 @@ -1101,7 +1101,8 @@
     1.4  
     1.5    uintptr_t old_fp = (uintptr_t)fr->link();
     1.6    if ((old_fp & fp_align_mask) != 0) return true;
     1.7 -  if (old_fp == 0 || old_fp == (uintptr_t)-1 || old_fp == ufp) return true;
     1.8 +  // The check for old_fp and ufp is harmful on MIPS due to its special ABI.
     1.9 +  if (old_fp == 0 || old_fp == (uintptr_t)-1 NOT_MIPS64(|| old_fp == ufp)) return true;
    1.10  
    1.11    // stack grows downwards; if old_fp is below current fp or if the stack
    1.12    // frame is too large, either the stack is corrupted or fp is not saved

mercurial