mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8133951: Zero interpreter asserts in stubRoutines.cpp
Allow zero sized code buffer when checking if there's enough remaining size Reviewed-by: kvn
This commit is contained in:
parent
ee8e426c51
commit
6cb369c903
1 changed files with 2 additions and 2 deletions
|
@ -181,7 +181,7 @@ void StubRoutines::initialize1() {
|
|||
StubGenerator_generate(&buffer, false);
|
||||
// When new stubs added we need to make sure there is some space left
|
||||
// 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");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -274,7 +274,7 @@ void StubRoutines::initialize2() {
|
|||
StubGenerator_generate(&buffer, true);
|
||||
// When new stubs added we need to make sure there is some space left
|
||||
// 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue