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 *
23 */
24
25 #ifndef SHARE_VM_GC_SERIAL_GENMARKSWEEP_HPP
26 #define SHARE_VM_GC_SERIAL_GENMARKSWEEP_HPP
27
28 #include "gc/serial/markSweep.hpp"
29
30 class GenMarkSweep : public MarkSweep {
31 friend class VM_MarkSweep;
32 friend class G1MarkSweep;
33 public:
34 static void invoke_at_safepoint(ReferenceProcessor* rp, bool clear_all_softrefs);
35
36 private:
37
38 // Mark live objects
39 static void mark_sweep_phase1(bool clear_all_softrefs);
40 // Calculate new addresses
41 static void mark_sweep_phase2();
42 // Update pointers
43 static void mark_sweep_phase3();
44 // Move objects to new positions
45 static void mark_sweep_phase4();
46
47 // Temporary data structures for traversal and storing/restoring marks
48 static void allocate_stacks();
49 static void deallocate_stacks();
50 };
51
|
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 *
23 */
24
25 #ifndef SHARE_VM_GC_SERIAL_GENMARKSWEEP_HPP
26 #define SHARE_VM_GC_SERIAL_GENMARKSWEEP_HPP
27
28 #include "gc/serial/markSweep.hpp"
29
30 class GenMarkSweep : public MarkSweep {
31 friend class VM_MarkSweep;
32 friend class ShenandoahMarkCompact;
33 friend class G1MarkSweep;
34 public:
35 static void invoke_at_safepoint(ReferenceProcessor* rp, bool clear_all_softrefs);
36
37 private:
38
39 // Mark live objects
40 static void mark_sweep_phase1(bool clear_all_softrefs);
41 // Calculate new addresses
42 static void mark_sweep_phase2();
43 // Update pointers
44 static void mark_sweep_phase3();
45 // Move objects to new positions
46 static void mark_sweep_phase4();
47
48 // Temporary data structures for traversal and storing/restoring marks
49 static void allocate_stacks();
50 static void deallocate_stacks();
51 };
52
|