提交 2e08558e 编写于 作者: K kvn

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

Summary: increase code_size2 for stubs
Reviewed-by: iveresov
上级 89222426
......@@ -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 {
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册