Mercurial > hg > openjdk > jdk7u > hotspot
changeset 5820:d07df83bf575 jdk7u171-b01
8197801: Zero debug build fails on "assert(labs(istate->_stack_base - istate->_stack_limit) == (istate->_method->max_stack() + extra_stack_entries + 1)) failed: bad stack limit"
Summary: Use the value of methodOopDesc::extra_stack_entries() rather than hardcoding a value.
Reviewed-by: aph
author | andrew |
---|---|
date | Tue, 13 Feb 2018 07:09:12 +0000 |
parents | 39f4affc6564 |
children | ad6e76e3c6a6 |
files | src/share/vm/interpreter/bytecodeInterpreter.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/interpreter/bytecodeInterpreter.cpp Tue Feb 13 06:42:27 2018 +0000 +++ b/src/share/vm/interpreter/bytecodeInterpreter.cpp Tue Feb 13 07:09:12 2018 +0000 @@ -519,7 +519,7 @@ assert(labs(istate->_stack_base - istate->_stack_limit) == (istate->_method->max_stack() + 1), "bad stack limit"); } else { - const int extra_stack_entries = 2; // MUST match the value in methodOopDesc::extra_stack_entries() + const int extra_stack_entries = methodOopDesc::extra_stack_entries(); assert(labs(istate->_stack_base - istate->_stack_limit) == (istate->_method->max_stack() + extra_stack_entries + 1), "bad stack limit"); }