mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44:38 +02:00
Merge
This commit is contained in:
commit
9cad40fca6
119 changed files with 560 additions and 447 deletions
|
@ -70,13 +70,14 @@
|
|||
#include "utilities/events.hpp"
|
||||
#include "utilities/hashtable.inline.hpp"
|
||||
#include "utilities/preserveException.hpp"
|
||||
#ifndef SERIALGC
|
||||
#include "utilities/macros.hpp"
|
||||
#if INCLUDE_ALL_GCS
|
||||
#include "gc_implementation/concurrentMarkSweep/cmsAdaptiveSizePolicy.hpp"
|
||||
#include "gc_implementation/concurrentMarkSweep/cmsCollectorPolicy.hpp"
|
||||
#include "gc_implementation/g1/g1CollectedHeap.inline.hpp"
|
||||
#include "gc_implementation/g1/g1CollectorPolicy.hpp"
|
||||
#include "gc_implementation/parallelScavenge/parallelScavengeHeap.hpp"
|
||||
#endif
|
||||
#endif // INCLUDE_ALL_GCS
|
||||
|
||||
// Known objects
|
||||
Klass* Universe::_boolArrayKlassObj = NULL;
|
||||
|
@ -758,20 +759,20 @@ char* Universe::preferred_heap_base(size_t heap_size, NARROW_OOP_MODE mode) {
|
|||
jint Universe::initialize_heap() {
|
||||
|
||||
if (UseParallelGC) {
|
||||
#ifndef SERIALGC
|
||||
#if INCLUDE_ALL_GCS
|
||||
Universe::_collectedHeap = new ParallelScavengeHeap();
|
||||
#else // SERIALGC
|
||||
#else // INCLUDE_ALL_GCS
|
||||
fatal("UseParallelGC not supported in this VM.");
|
||||
#endif // SERIALGC
|
||||
#endif // INCLUDE_ALL_GCS
|
||||
|
||||
} else if (UseG1GC) {
|
||||
#ifndef SERIALGC
|
||||
#if INCLUDE_ALL_GCS
|
||||
G1CollectorPolicy* g1p = new G1CollectorPolicy();
|
||||
G1CollectedHeap* g1h = new G1CollectedHeap(g1p);
|
||||
Universe::_collectedHeap = g1h;
|
||||
#else // SERIALGC
|
||||
#else // INCLUDE_ALL_GCS
|
||||
fatal("UseG1GC not supported in java kernel vm.");
|
||||
#endif // SERIALGC
|
||||
#endif // INCLUDE_ALL_GCS
|
||||
|
||||
} else {
|
||||
GenCollectorPolicy *gc_policy;
|
||||
|
@ -779,15 +780,15 @@ jint Universe::initialize_heap() {
|
|||
if (UseSerialGC) {
|
||||
gc_policy = new MarkSweepPolicy();
|
||||
} else if (UseConcMarkSweepGC) {
|
||||
#ifndef SERIALGC
|
||||
#if INCLUDE_ALL_GCS
|
||||
if (UseAdaptiveSizePolicy) {
|
||||
gc_policy = new ASConcurrentMarkSweepPolicy();
|
||||
} else {
|
||||
gc_policy = new ConcurrentMarkSweepPolicy();
|
||||
}
|
||||
#else // SERIALGC
|
||||
#else // INCLUDE_ALL_GCS
|
||||
fatal("UseConcMarkSweepGC not supported in this VM.");
|
||||
#endif // SERIALGC
|
||||
#endif // INCLUDE_ALL_GCS
|
||||
} else { // default old generation
|
||||
gc_policy = new MarkSweepPolicy();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue