mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 06:14:49 +02:00
8068582: UseSerialGC not always set up properly
Reviewed-by: jmasa, brutisso, sjohanss
This commit is contained in:
parent
0d5c04e00d
commit
e4a699552a
5 changed files with 72 additions and 14 deletions
|
@ -714,7 +714,6 @@ jint Universe::initialize_heap() {
|
|||
fatal("UseG1GC not supported in this VM.");
|
||||
} else if (UseConcMarkSweepGC) {
|
||||
fatal("UseConcMarkSweepGC not supported in this VM.");
|
||||
}
|
||||
#else
|
||||
if (UseParallelGC) {
|
||||
status = Universe::create_heap<ParallelScavengeHeap, GenerationSizer>();
|
||||
|
@ -722,12 +721,11 @@ jint Universe::initialize_heap() {
|
|||
status = Universe::create_heap<G1CollectedHeap, G1CollectorPolicyExt>();
|
||||
} else if (UseConcMarkSweepGC) {
|
||||
status = Universe::create_heap<GenCollectedHeap, ConcurrentMarkSweepPolicy>();
|
||||
}
|
||||
#endif
|
||||
else { // UseSerialGC
|
||||
// Don't assert that UseSerialGC is set here because there are cases
|
||||
// where no GC it set and we then fall back to using SerialGC.
|
||||
} else if (UseSerialGC) {
|
||||
status = Universe::create_heap<GenCollectedHeap, MarkSweepPolicy>();
|
||||
} else {
|
||||
ShouldNotReachHere();
|
||||
}
|
||||
|
||||
if (status != JNI_OK) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue