Mercurial > hg > graal-compiler
comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp @ 17758:ae7336d6337e
8034868: Extract G1 From Card Cache into separate class
Summary: Refactor the From Card Cache into a separate class.
Reviewed-by: jmasa
author | tschatzl |
---|---|
date | Mon, 24 Mar 2014 15:30:50 +0100 |
parents | eff02b5bd56c |
children | bc22cbb8b45a |
comparison
equal
deleted
inserted
replaced
17757:eff02b5bd56c | 17758:ae7336d6337e |
---|---|
1952 _humongous_object_threshold_in_words = HeapRegion::GrainWords / 2; | 1952 _humongous_object_threshold_in_words = HeapRegion::GrainWords / 2; |
1953 | 1953 |
1954 int n_queues = MAX2((int)ParallelGCThreads, 1); | 1954 int n_queues = MAX2((int)ParallelGCThreads, 1); |
1955 _task_queues = new RefToScanQueueSet(n_queues); | 1955 _task_queues = new RefToScanQueueSet(n_queues); |
1956 | 1956 |
1957 int n_rem_sets = HeapRegionRemSet::num_par_rem_sets(); | 1957 uint n_rem_sets = HeapRegionRemSet::num_par_rem_sets(); |
1958 assert(n_rem_sets > 0, "Invariant."); | 1958 assert(n_rem_sets > 0, "Invariant."); |
1959 | 1959 |
1960 _worker_cset_start_region = NEW_C_HEAP_ARRAY(HeapRegion*, n_queues, mtGC); | 1960 _worker_cset_start_region = NEW_C_HEAP_ARRAY(HeapRegion*, n_queues, mtGC); |
1961 _worker_cset_start_region_time_stamp = NEW_C_HEAP_ARRAY(unsigned int, n_queues, mtGC); | 1961 _worker_cset_start_region_time_stamp = NEW_C_HEAP_ARRAY(unsigned int, n_queues, mtGC); |
1962 _evacuation_failed_info_array = NEW_C_HEAP_ARRAY(EvacuationFailedInfo, n_queues, mtGC); | 1962 _evacuation_failed_info_array = NEW_C_HEAP_ARRAY(EvacuationFailedInfo, n_queues, mtGC); |