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 "utilities/ticks.inline.hpp"
39
40 bool G1FullGCPrepareTask::G1CalculatePointersClosure::do_heap_region(HeapRegion* hr) {
41 if (hr->is_humongous()) {
42 oop obj = oop(hr->humongous_start_region()->bottom());
43 if (_bitmap->is_marked(obj)) {
44 if (hr->is_starts_humongous()) {
45 obj->forward_to(obj);
46 }
47 } else {
48 free_humongous_region(hr);
49 }
50 } else if (!hr->is_pinned()) {
51 prepare_for_compaction(hr);
52 }
53
54 // Reset data structures not valid after Full GC.
55 reset_region_metadata(hr);
56
57 return false;
|
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.inline.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
58 return false;
|