src/share/vm/memory/genMarkSweep.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Sdiff src/share/vm/memory

src/share/vm/memory/genMarkSweep.hpp

Print this page
rev 7215 : imported patch remove_levels


  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_MEMORY_GENMARKSWEEP_HPP
  26 #define SHARE_VM_MEMORY_GENMARKSWEEP_HPP
  27 
  28 #include "gc_implementation/shared/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(int level, ReferenceProcessor* rp,
  35                                   bool clear_all_softrefs);
  36 
  37  private:
  38 
  39   // Mark live objects
  40   static void mark_sweep_phase1(int level, bool clear_all_softrefs);
  41   // Calculate new addresses
  42   static void mark_sweep_phase2();
  43   // Update pointers
  44   static void mark_sweep_phase3(int level);
  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 
  53 #endif // SHARE_VM_MEMORY_GENMARKSWEEP_HPP


  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_MEMORY_GENMARKSWEEP_HPP
  26 #define SHARE_VM_MEMORY_GENMARKSWEEP_HPP
  27 
  28 #include "gc_implementation/shared/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 
  52 #endif // SHARE_VM_MEMORY_GENMARKSWEEP_HPP
src/share/vm/memory/genMarkSweep.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File