< prev index next >

src/hotspot/share/gc/serial/tenuredGeneration.cpp

Print this page
rev 56464 : 8231707: Improve Mutex inlining
Contributed-by: robbin.ehn@oracle.com, claes.redestad@oracle.com


  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "gc/serial/genMarkSweep.hpp"
  27 #include "gc/serial/tenuredGeneration.inline.hpp"
  28 #include "gc/shared/blockOffsetTable.inline.hpp"
  29 #include "gc/shared/cardGeneration.inline.hpp"
  30 #include "gc/shared/collectorCounters.hpp"
  31 #include "gc/shared/gcTimer.hpp"
  32 #include "gc/shared/gcTrace.hpp"
  33 #include "gc/shared/genCollectedHeap.hpp"
  34 #include "gc/shared/genOopClosures.inline.hpp"
  35 #include "gc/shared/generationSpec.hpp"
  36 #include "gc/shared/space.hpp"
  37 #include "logging/log.hpp"
  38 #include "memory/allocation.inline.hpp"
  39 #include "oops/oop.inline.hpp"

  40 #include "runtime/java.hpp"
  41 #include "utilities/macros.hpp"
  42 #if INCLUDE_CMSGC
  43 #include "gc/cms/parOopClosures.hpp"
  44 #endif
  45 
  46 TenuredGeneration::TenuredGeneration(ReservedSpace rs,
  47                                      size_t initial_byte_size,
  48                                      size_t min_byte_size,
  49                                      size_t max_byte_size,
  50                                      CardTableRS* remset) :
  51   CardGeneration(rs, initial_byte_size, remset)
  52 {
  53   HeapWord* bottom = (HeapWord*) _virtual_space.low();
  54   HeapWord* end    = (HeapWord*) _virtual_space.high();
  55   _the_space  = new TenuredSpace(_bts, MemRegion(bottom, end));
  56   _the_space->reset_saved_mark();
  57   _shrink_factor = 0;
  58   _capacity_at_prologue = 0;
  59 




  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "gc/serial/genMarkSweep.hpp"
  27 #include "gc/serial/tenuredGeneration.inline.hpp"
  28 #include "gc/shared/blockOffsetTable.inline.hpp"
  29 #include "gc/shared/cardGeneration.inline.hpp"
  30 #include "gc/shared/collectorCounters.hpp"
  31 #include "gc/shared/gcTimer.hpp"
  32 #include "gc/shared/gcTrace.hpp"
  33 #include "gc/shared/genCollectedHeap.hpp"
  34 #include "gc/shared/genOopClosures.inline.hpp"
  35 #include "gc/shared/generationSpec.hpp"
  36 #include "gc/shared/space.hpp"
  37 #include "logging/log.hpp"
  38 #include "memory/allocation.inline.hpp"
  39 #include "oops/oop.inline.hpp"
  40 #include "runtime/mutexLocker.inline.hpp"
  41 #include "runtime/java.hpp"
  42 #include "utilities/macros.hpp"
  43 #if INCLUDE_CMSGC
  44 #include "gc/cms/parOopClosures.hpp"
  45 #endif
  46 
  47 TenuredGeneration::TenuredGeneration(ReservedSpace rs,
  48                                      size_t initial_byte_size,
  49                                      size_t min_byte_size,
  50                                      size_t max_byte_size,
  51                                      CardTableRS* remset) :
  52   CardGeneration(rs, initial_byte_size, remset)
  53 {
  54   HeapWord* bottom = (HeapWord*) _virtual_space.low();
  55   HeapWord* end    = (HeapWord*) _virtual_space.high();
  56   _the_space  = new TenuredSpace(_bts, MemRegion(bottom, end));
  57   _the_space->reset_saved_mark();
  58   _shrink_factor = 0;
  59   _capacity_at_prologue = 0;
  60 


< prev index next >