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
@ -33,7 +33,7 @@ static bool returns_to_call_stub(address return_pc) { return return_pc == _
|
|||||||
|
|
||||||
enum platform_dependent_constants {
|
enum platform_dependent_constants {
|
||||||
code_size1 = 19000, // simply increase if too small (assembler will crash if too small)
|
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 {
|
class x86 {
|
||||||
|
@ -174,6 +174,9 @@ void StubRoutines::initialize1() {
|
|||||||
}
|
}
|
||||||
CodeBuffer buffer(_code1);
|
CodeBuffer buffer(_code1);
|
||||||
StubGenerator_generate(&buffer, false);
|
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);
|
CodeBuffer buffer(_code2);
|
||||||
StubGenerator_generate(&buffer, true);
|
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
|
#ifdef ASSERT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user