hotspot/src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.inline.hpp
changeset 27903 14c6e2f23fa0
parent 27686 f91c482793e6
child 27904 d606512952cc
equal deleted inserted replaced
27902:fe89161ff160 27903:14c6e2f23fa0
    27 
    27 
    28 #include "gc_implementation/concurrentMarkSweep/cmsLockVerifier.hpp"
    28 #include "gc_implementation/concurrentMarkSweep/cmsLockVerifier.hpp"
    29 #include "gc_implementation/concurrentMarkSweep/compactibleFreeListSpace.hpp"
    29 #include "gc_implementation/concurrentMarkSweep/compactibleFreeListSpace.hpp"
    30 #include "gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.hpp"
    30 #include "gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.hpp"
    31 #include "gc_implementation/concurrentMarkSweep/concurrentMarkSweepThread.hpp"
    31 #include "gc_implementation/concurrentMarkSweep/concurrentMarkSweepThread.hpp"
       
    32 #include "gc_implementation/parNew/parNewGeneration.hpp"
    32 #include "gc_implementation/shared/gcUtil.hpp"
    33 #include "gc_implementation/shared/gcUtil.hpp"
    33 #include "memory/defNewGeneration.hpp"
       
    34 
    34 
    35 inline void CMSBitMap::clear_all() {
    35 inline void CMSBitMap::clear_all() {
    36   assert_locked();
    36   assert_locked();
    37   // CMS bitmaps are usually cover large memory regions
    37   // CMS bitmaps are usually cover large memory regions
    38   _bm.clear_large();
    38   _bm.clear_large();
   255          (_abort_preclean || _foregroundGCIsActive ||
   255          (_abort_preclean || _foregroundGCIsActive ||
   256           GenCollectedHeap::heap()->incremental_collection_will_fail(true /* consult_young */));
   256           GenCollectedHeap::heap()->incremental_collection_will_fail(true /* consult_young */));
   257 }
   257 }
   258 
   258 
   259 inline size_t CMSCollector::get_eden_used() const {
   259 inline size_t CMSCollector::get_eden_used() const {
   260   return _young_gen->as_DefNewGeneration()->eden()->used();
   260   return _young_gen->eden()->used();
   261 }
   261 }
   262 
   262 
   263 inline size_t CMSCollector::get_eden_capacity() const {
   263 inline size_t CMSCollector::get_eden_capacity() const {
   264   return _young_gen->as_DefNewGeneration()->eden()->capacity();
   264   return _young_gen->eden()->capacity();
   265 }
   265 }
   266 
   266 
   267 inline bool CMSStats::valid() const {
   267 inline bool CMSStats::valid() const {
   268   return _valid_bits == _ALL_VALID;
   268   return _valid_bits == _ALL_VALID;
   269 }
   269 }