diff options
author | kvn <unknown> | 2015-06-19 17:46:42 -0700 |
---|---|---|
committer | bell-sw <liberica@bell-sw.com> | 2019-10-23 16:22:27 +0300 |
commit | 2ecc2916e80fca8ec0561e33364227e10a8f3fdc (patch) | |
tree | 55dee417f65594b0d804d2192a9bc6d4dad9648c | |
parent | b3d1660b2bd63f104bca1ad7c147355e1e622529 (diff) | |
download | jdk8u_hotspot-2ecc2916e80fca8ec0561e33364227e10a8f3fdc.tar.gz |
8080157: assert(allocates2(pc)) failed: not in CodeBuffer memory
Summary: increase code_size2 for stubs
Reviewed-by: iveresov
-rw-r--r-- | src/cpu/x86/vm/stubRoutines_x86_64.hpp | 2 | ||||
-rw-r--r-- | src/share/vm/runtime/stubRoutines.cpp | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/cpu/x86/vm/stubRoutines_x86_64.hpp b/src/cpu/x86/vm/stubRoutines_x86_64.hpp index 15922b8ae..b048fd74e 100644 --- a/src/cpu/x86/vm/stubRoutines_x86_64.hpp +++ b/src/cpu/x86/vm/stubRoutines_x86_64.hpp @@ -33,7 +33,7 @@ static bool returns_to_call_stub(address return_pc) { return return_pc == _ enum platform_dependent_constants { code_size1 = 19000, // simply increase if too small (assembler will crash if too small) - code_size2 = 23000 // simply increase if too small (assembler will crash if too small) + code_size2 = 24000 // simply increase if too small (assembler will crash if too small) }; class x86 { diff --git a/src/share/vm/runtime/stubRoutines.cpp b/src/share/vm/runtime/stubRoutines.cpp index eb3064034..6b8f7e754 100644 --- a/src/share/vm/runtime/stubRoutines.cpp +++ b/src/share/vm/runtime/stubRoutines.cpp @@ -174,6 +174,9 @@ void StubRoutines::initialize1() { } CodeBuffer buffer(_code1); 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"); } } @@ -226,6 +229,9 @@ void StubRoutines::initialize2() { } CodeBuffer buffer(_code2); 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"); } #ifdef ASSERT |