提交 28446b92 编写于 作者: C coleenp

8133951: Zero interpreter asserts in stubRoutines.cpp

Summary: Allow zero sized code buffer when checking if there's enough remaining size
Reviewed-by: kvn
上级 cf3b80b6
...@@ -176,7 +176,7 @@ void StubRoutines::initialize1() { ...@@ -176,7 +176,7 @@ void StubRoutines::initialize1() {
StubGenerator_generate(&buffer, false); StubGenerator_generate(&buffer, false);
// When new stubs added we need to make sure there is some space left // When new stubs added we need to make sure there is some space left
// to catch situation when we should increase size again. // to catch situation when we should increase size again.
assert(buffer.insts_remaining() > 200, "increase code_size1"); assert(code_size1 == 0 || buffer.insts_remaining() > 200, "increase code_size1");
} }
} }
...@@ -231,7 +231,7 @@ void StubRoutines::initialize2() { ...@@ -231,7 +231,7 @@ void StubRoutines::initialize2() {
StubGenerator_generate(&buffer, true); StubGenerator_generate(&buffer, true);
// When new stubs added we need to make sure there is some space left // When new stubs added we need to make sure there is some space left
// to catch situation when we should increase size again. // to catch situation when we should increase size again.
assert(buffer.insts_remaining() > 200, "increase code_size2"); assert(code_size2 == 0 || buffer.insts_remaining() > 200, "increase code_size2");
} }
#ifdef ASSERT #ifdef ASSERT
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册