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;
58 }
59
60 G1FullGCPrepareTask::G1FullGCPrepareTask(G1FullCollector* collector) :
|
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::doHeapRegion(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;
58 }
59
60 G1FullGCPrepareTask::G1FullGCPrepareTask(G1FullCollector* collector) :
|