18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "gc/g1/g1CollectedHeap.hpp"
27 #include "gc/g1/g1ConcurrentMarkBitMap.inline.hpp"
28 #include "gc/g1/g1FullCollector.hpp"
29 #include "gc/g1/g1FullGCCompactionPoint.hpp"
30 #include "gc/g1/g1FullGCMarker.hpp"
31 #include "gc/g1/g1FullGCOopClosures.inline.hpp"
32 #include "gc/g1/g1FullGCPrepareTask.hpp"
33 #include "gc/g1/g1HotCardCache.hpp"
34 #include "gc/g1/heapRegion.inline.hpp"
35 #include "gc/shared/gcTraceTime.inline.hpp"
36 #include "gc/shared/referenceProcessor.hpp"
37 #include "logging/log.hpp"
38 #include "oops/oop.inline.hpp"
39 #include "utilities/ticks.hpp"
40
41 bool G1FullGCPrepareTask::G1CalculatePointersClosure::do_heap_region(HeapRegion* hr) {
42 if (hr->is_humongous()) {
43 oop obj = oop(hr->humongous_start_region()->bottom());
44 if (_bitmap->is_marked(obj)) {
45 if (hr->is_starts_humongous()) {
46 obj->forward_to(obj);
47 }
48 } else {
49 free_humongous_region(hr);
50 }
51 } else if (!hr->is_pinned()) {
52 prepare_for_compaction(hr);
53 }
54
55 // Reset data structures not valid after Full GC.
56 reset_region_metadata(hr);
57
|
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "gc/g1/g1CollectedHeap.hpp"
27 #include "gc/g1/g1ConcurrentMarkBitMap.inline.hpp"
28 #include "gc/g1/g1FullCollector.hpp"
29 #include "gc/g1/g1FullGCCompactionPoint.hpp"
30 #include "gc/g1/g1FullGCMarker.hpp"
31 #include "gc/g1/g1FullGCOopClosures.inline.hpp"
32 #include "gc/g1/g1FullGCPrepareTask.hpp"
33 #include "gc/g1/g1HotCardCache.hpp"
34 #include "gc/g1/heapRegion.inline.hpp"
35 #include "gc/shared/gcTraceTime.inline.hpp"
36 #include "gc/shared/referenceProcessor.hpp"
37 #include "logging/log.hpp"
38 #include "memory/iterator.inline.hpp"
39 #include "oops/oop.inline.hpp"
40 #include "utilities/ticks.hpp"
41
42 bool G1FullGCPrepareTask::G1CalculatePointersClosure::do_heap_region(HeapRegion* hr) {
43 if (hr->is_humongous()) {
44 oop obj = oop(hr->humongous_start_region()->bottom());
45 if (_bitmap->is_marked(obj)) {
46 if (hr->is_starts_humongous()) {
47 obj->forward_to(obj);
48 }
49 } else {
50 free_humongous_region(hr);
51 }
52 } else if (!hr->is_pinned()) {
53 prepare_for_compaction(hr);
54 }
55
56 // Reset data structures not valid after Full GC.
57 reset_region_metadata(hr);
58
|