aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcoleenp <unknown>2015-08-20 11:18:51 -0400
committerbell-sw <liberica@bell-sw.com>2020-01-19 09:12:34 +0300
commit0cf12005e5886c832f7528be46ff027e8755ee7b (patch)
tree57edde159ff376f95a45cf8961a5e320d46998a0
parent86cede06e6c69627f5d47c22ccedb24c96565513 (diff)
downloadjdk8u_hotspot-0cf12005e5886c832f7528be46ff027e8755ee7b.tar.gz
8133951: Zero interpreter asserts in stubRoutines.cpp
Summary: Allow zero sized code buffer when checking if there's enough remaining size Reviewed-by: kvn
-rw-r--r--src/share/vm/runtime/stubRoutines.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/share/vm/runtime/stubRoutines.cpp b/src/share/vm/runtime/stubRoutines.cpp
index 6b8f7e754..b2b3a90d9 100644
--- a/src/share/vm/runtime/stubRoutines.cpp
+++ b/src/share/vm/runtime/stubRoutines.cpp
@@ -176,7 +176,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");
}
}
@@ -231,7 +231,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