mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 19:44:41 +02:00
Merge
This commit is contained in:
commit
aabed3781b
1054 changed files with 36891 additions and 14735 deletions
|
@ -785,6 +785,7 @@ jint Universe::initialize_heap() {
|
|||
} else if (UseG1GC) {
|
||||
#if INCLUDE_ALL_GCS
|
||||
G1CollectorPolicy* g1p = new G1CollectorPolicy();
|
||||
g1p->initialize_all();
|
||||
G1CollectedHeap* g1h = new G1CollectedHeap(g1p);
|
||||
Universe::_collectedHeap = g1h;
|
||||
#else // INCLUDE_ALL_GCS
|
||||
|
@ -809,6 +810,7 @@ jint Universe::initialize_heap() {
|
|||
} else { // default old generation
|
||||
gc_policy = new MarkSweepPolicy();
|
||||
}
|
||||
gc_policy->initialize_all();
|
||||
|
||||
Universe::_collectedHeap = new GenCollectedHeap(gc_policy);
|
||||
}
|
||||
|
@ -1046,7 +1048,7 @@ bool universe_post_init() {
|
|||
Universe::_virtual_machine_error_instance =
|
||||
InstanceKlass::cast(k)->allocate_instance(CHECK_false);
|
||||
|
||||
Universe::_vm_exception = InstanceKlass::cast(k)->allocate_instance(CHECK_false);
|
||||
Universe::_vm_exception = InstanceKlass::cast(k)->allocate_instance(CHECK_false);
|
||||
|
||||
if (!DumpSharedSpaces) {
|
||||
// These are the only Java fields that are currently set during shared space dumping.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue