mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8080157: assert(allocates2(pc)) failed: not in CodeBuffer memory
Increase code_size2 for stubs Reviewed-by: iveresov
This commit is contained in:
parent
2691776621
commit
133faafebc
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue