< prev index next >

src/share/vm/gc/cms/concurrentMarkSweepGeneration.hpp

Print this page
rev 8362 : [mq]: hotspot


   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  *
  23  */
  24 
  25 #ifndef SHARE_VM_GC_IMPLEMENTATION_CONCURRENTMARKSWEEP_CONCURRENTMARKSWEEPGENERATION_HPP
  26 #define SHARE_VM_GC_IMPLEMENTATION_CONCURRENTMARKSWEEP_CONCURRENTMARKSWEEPGENERATION_HPP
  27 
  28 #include "gc_implementation/concurrentMarkSweep/cmsOopClosures.hpp"
  29 #include "gc_implementation/shared/gcHeapSummary.hpp"
  30 #include "gc_implementation/shared/gSpaceCounters.hpp"
  31 #include "gc_implementation/shared/gcStats.hpp"
  32 #include "gc_implementation/shared/gcWhen.hpp"
  33 #include "gc_implementation/shared/generationCounters.hpp"
  34 #include "memory/cardGeneration.hpp"



  35 #include "memory/freeBlockDictionary.hpp"
  36 #include "memory/iterator.hpp"
  37 #include "memory/space.hpp"
  38 #include "memory/virtualspace.hpp"
  39 #include "runtime/mutexLocker.hpp"
  40 #include "services/memoryService.hpp"
  41 #include "utilities/bitMap.hpp"
  42 #include "utilities/stack.hpp"
  43 #include "utilities/taskqueue.hpp"
  44 #include "utilities/yieldingWorkgroup.hpp"
  45 
  46 // ConcurrentMarkSweepGeneration is in support of a concurrent
  47 // mark-sweep old generation in the Detlefs-Printezis--Boehm-Demers-Schenker
  48 // style. We assume, for now, that this generation is always the
  49 // seniormost generation and for simplicity
  50 // in the first implementation, that this generation is a single compactible
  51 // space. Neither of these restrictions appears essential, and will be
  52 // relaxed in the future when more time is available to implement the
  53 // greater generality (and there's a need for it).
  54 //
  55 // Concurrent mode failures are currently handled by
  56 // means of a sliding mark-compact.
  57 
  58 class AdaptiveSizePolicy;
  59 class CMSCollector;
  60 class CMSConcMarkingTask;
  61 class CMSGCAdaptivePolicyCounters;
  62 class CMSTracer;
  63 class ConcurrentGCTimer;
  64 class ConcurrentMarkSweepGeneration;


1796   CMSBitMap*                      _dead_bit_map;
1797 public:
1798   MarkDeadObjectsClosure(const CMSCollector* collector,
1799                          const CompactibleFreeListSpace* sp,
1800                          CMSBitMap *live_bit_map,
1801                          CMSBitMap *dead_bit_map) :
1802     _collector(collector),
1803     _sp(sp),
1804     _live_bit_map(live_bit_map),
1805     _dead_bit_map(dead_bit_map) {}
1806   size_t do_blk(HeapWord* addr);
1807 };
1808 
1809 class TraceCMSMemoryManagerStats : public TraceMemoryManagerStats {
1810 
1811  public:
1812   TraceCMSMemoryManagerStats(CMSCollector::CollectorState phase, GCCause::Cause cause);
1813 };
1814 
1815 
1816 #endif // SHARE_VM_GC_IMPLEMENTATION_CONCURRENTMARKSWEEP_CONCURRENTMARKSWEEPGENERATION_HPP


   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  *
  23  */
  24 
  25 #ifndef SHARE_VM_GC_CMS_CONCURRENTMARKSWEEPGENERATION_HPP
  26 #define SHARE_VM_GC_CMS_CONCURRENTMARKSWEEPGENERATION_HPP
  27 
  28 #include "gc/cms/cmsOopClosures.hpp"
  29 #include "gc/cms/yieldingWorkgroup.hpp"
  30 #include "gc/shared/cardGeneration.hpp"
  31 #include "gc/shared/gSpaceCounters.hpp"
  32 #include "gc/shared/gcHeapSummary.hpp"
  33 #include "gc/shared/gcStats.hpp"
  34 #include "gc/shared/gcWhen.hpp"
  35 #include "gc/shared/generationCounters.hpp"
  36 #include "gc/shared/space.hpp"
  37 #include "gc/shared/taskqueue.hpp"
  38 #include "memory/freeBlockDictionary.hpp"
  39 #include "memory/iterator.hpp"

  40 #include "memory/virtualspace.hpp"
  41 #include "runtime/mutexLocker.hpp"
  42 #include "services/memoryService.hpp"
  43 #include "utilities/bitMap.hpp"
  44 #include "utilities/stack.hpp"


  45 
  46 // ConcurrentMarkSweepGeneration is in support of a concurrent
  47 // mark-sweep old generation in the Detlefs-Printezis--Boehm-Demers-Schenker
  48 // style. We assume, for now, that this generation is always the
  49 // seniormost generation and for simplicity
  50 // in the first implementation, that this generation is a single compactible
  51 // space. Neither of these restrictions appears essential, and will be
  52 // relaxed in the future when more time is available to implement the
  53 // greater generality (and there's a need for it).
  54 //
  55 // Concurrent mode failures are currently handled by
  56 // means of a sliding mark-compact.
  57 
  58 class AdaptiveSizePolicy;
  59 class CMSCollector;
  60 class CMSConcMarkingTask;
  61 class CMSGCAdaptivePolicyCounters;
  62 class CMSTracer;
  63 class ConcurrentGCTimer;
  64 class ConcurrentMarkSweepGeneration;


1796   CMSBitMap*                      _dead_bit_map;
1797 public:
1798   MarkDeadObjectsClosure(const CMSCollector* collector,
1799                          const CompactibleFreeListSpace* sp,
1800                          CMSBitMap *live_bit_map,
1801                          CMSBitMap *dead_bit_map) :
1802     _collector(collector),
1803     _sp(sp),
1804     _live_bit_map(live_bit_map),
1805     _dead_bit_map(dead_bit_map) {}
1806   size_t do_blk(HeapWord* addr);
1807 };
1808 
1809 class TraceCMSMemoryManagerStats : public TraceMemoryManagerStats {
1810 
1811  public:
1812   TraceCMSMemoryManagerStats(CMSCollector::CollectorState phase, GCCause::Cause cause);
1813 };
1814 
1815 
1816 #endif // SHARE_VM_GC_CMS_CONCURRENTMARKSWEEPGENERATION_HPP
< prev index next >