# HG changeset patch # User huangjia # Date 1570805607 -28800 # Node ID 8c67a8d091962557c723fe56922fcbcc71ad6778 # Parent 0b27fc8adf1bb6db9b1a87c9ceb52fe67eebed8d #10409 Backport of #9905 runtime/CheckUnhandledOops/TestOutOfMemory.java fastdebug crash Reviewed-by: aoqi diff -r 0b27fc8adf1b -r 8c67a8d09196 src/share/vm/runtime/os.cpp --- a/src/share/vm/runtime/os.cpp Fri Sep 27 11:31:13 2019 +0800 +++ b/src/share/vm/runtime/os.cpp Fri Oct 11 22:53:27 2019 +0800 @@ -1101,7 +1101,8 @@ uintptr_t old_fp = (uintptr_t)fr->link(); if ((old_fp & fp_align_mask) != 0) return true; - if (old_fp == 0 || old_fp == (uintptr_t)-1 || old_fp == ufp) return true; + // The check for old_fp and ufp is harmful on MIPS due to its special ABI. + if (old_fp == 0 || old_fp == (uintptr_t)-1 NOT_MIPS64(|| old_fp == ufp)) return true; // stack grows downwards; if old_fp is below current fp or if the stack // frame is too large, either the stack is corrupted or fp is not saved