< prev index next >

src/hotspot/share/gc/shenandoah/shenandoahFullGC.hpp

Print this page

 1 /*
 2  * Copyright (c) 2014, 2021, Red Hat, Inc. All rights reserved.

 3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 4  *
 5  * This code is free software; you can redistribute it and/or modify it
 6  * under the terms of the GNU General Public License version 2 only, as
 7  * published by the Free Software Foundation.
 8  *
 9  * This code is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12  * version 2 for more details (a copy is included in the LICENSE file that
13  * accompanied this code).
14  *
15  * You should have received a copy of the GNU General Public License version
16  * 2 along with this work; if not, write to the Free Software Foundation,
17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
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  *

64 
65   PreservedMarksSet* _preserved_marks;
66 
67 public:
68   ShenandoahFullGC();
69   ~ShenandoahFullGC();
70   bool collect(GCCause::Cause cause);
71 
72 private:
73   // GC entries
74   void vmop_entry_full(GCCause::Cause cause);
75   void entry_full(GCCause::Cause cause);
76   void op_full(GCCause::Cause cause);
77 
78   void do_it(GCCause::Cause gc_cause);
79 
80   void phase1_mark_heap();
81   void phase2_calculate_target_addresses(ShenandoahHeapRegionSet** worker_slices);
82   void phase3_update_references();
83   void phase4_compact_objects(ShenandoahHeapRegionSet** worker_slices);

84 
85   void distribute_slices(ShenandoahHeapRegionSet** worker_slices);
86   void calculate_target_humongous_objects();
87   void compact_humongous_objects();
88 };
89 
90 #endif // SHARE_GC_SHENANDOAH_SHENANDOAHFULLGC_HPP

 1 /*
 2  * Copyright (c) 2014, 2021, Red Hat, Inc. All rights reserved.
 3  * Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
 4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 5  *
 6  * This code is free software; you can redistribute it and/or modify it
 7  * under the terms of the GNU General Public License version 2 only, as
 8  * published by the Free Software Foundation.
 9  *
10  * This code is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
13  * version 2 for more details (a copy is included in the LICENSE file that
14  * accompanied this code).
15  *
16  * You should have received a copy of the GNU General Public License version
17  * 2 along with this work; if not, write to the Free Software Foundation,
18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19  *
20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21  * or visit www.oracle.com if you need additional information or have any
22  * questions.
23  *

65 
66   PreservedMarksSet* _preserved_marks;
67 
68 public:
69   ShenandoahFullGC();
70   ~ShenandoahFullGC();
71   bool collect(GCCause::Cause cause);
72 
73 private:
74   // GC entries
75   void vmop_entry_full(GCCause::Cause cause);
76   void entry_full(GCCause::Cause cause);
77   void op_full(GCCause::Cause cause);
78 
79   void do_it(GCCause::Cause gc_cause);
80 
81   void phase1_mark_heap();
82   void phase2_calculate_target_addresses(ShenandoahHeapRegionSet** worker_slices);
83   void phase3_update_references();
84   void phase4_compact_objects(ShenandoahHeapRegionSet** worker_slices);
85   void phase5_epilog();
86 
87   void distribute_slices(ShenandoahHeapRegionSet** worker_slices);
88   void calculate_target_humongous_objects();
89   void compact_humongous_objects();
90 };
91 
92 #endif // SHARE_GC_SHENANDOAH_SHENANDOAHFULLGC_HPP
< prev index next >