equal
deleted
inserted
replaced
29 |
29 |
30 class GenMarkSweep : public MarkSweep { |
30 class GenMarkSweep : public MarkSweep { |
31 friend class VM_MarkSweep; |
31 friend class VM_MarkSweep; |
32 friend class G1MarkSweep; |
32 friend class G1MarkSweep; |
33 public: |
33 public: |
34 static void invoke_at_safepoint(int level, ReferenceProcessor* rp, |
34 static void invoke_at_safepoint(ReferenceProcessor* rp, bool clear_all_softrefs); |
35 bool clear_all_softrefs); |
|
36 |
35 |
37 private: |
36 private: |
38 |
37 |
39 // Mark live objects |
38 // Mark live objects |
40 static void mark_sweep_phase1(int level, bool clear_all_softrefs); |
39 static void mark_sweep_phase1(bool clear_all_softrefs); |
41 // Calculate new addresses |
40 // Calculate new addresses |
42 static void mark_sweep_phase2(); |
41 static void mark_sweep_phase2(); |
43 // Update pointers |
42 // Update pointers |
44 static void mark_sweep_phase3(int level); |
43 static void mark_sweep_phase3(); |
45 // Move objects to new positions |
44 // Move objects to new positions |
46 static void mark_sweep_phase4(); |
45 static void mark_sweep_phase4(); |
47 |
46 |
48 // Temporary data structures for traversal and storing/restoring marks |
47 // Temporary data structures for traversal and storing/restoring marks |
49 static void allocate_stacks(); |
48 static void allocate_stacks(); |