8080157: assert(allocates2(pc)) failed: not in CodeBuffer memory

Increase code_size2 for stubs

Reviewed-by: iveresov
This commit is contained in:
Vladimir Kozlov 2015-06-19 17:46:42 -07:00
parent 2691776621
commit 133faafebc
2 changed files with 7 additions and 1 deletions

View File

@ -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 {

View File

@ -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");
}
}
@ -258,6 +261,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