src/share/vm/memory/tenuredGeneration.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hs-gc-reduce Sdiff src/share/vm/memory

src/share/vm/memory/tenuredGeneration.cpp

Print this page




  45   _the_space  = new TenuredSpace(_bts, MemRegion(bottom, end));
  46   _the_space->reset_saved_mark();
  47   _shrink_factor = 0;
  48   _capacity_at_prologue = 0;
  49 
  50   _gc_stats = new GCStats();
  51 
  52   // initialize performance counters
  53 
  54   const char* gen_name = "old";
  55 
  56   // Generation Counters -- generation 1, 1 subspace
  57   _gen_counters = new GenerationCounters(gen_name, 1, 1, &_virtual_space);
  58 
  59   _gc_counters = new CollectorCounters("MSC", 1);
  60 
  61   _space_counters = new CSpaceCounters(gen_name, 0,
  62                                        _virtual_space.reserved_size(),
  63                                        _the_space, _gen_counters);
  64 #ifndef SERIALGC
  65   if (UseParNewGC && ParallelGCThreads > 0) {
  66     typedef ParGCAllocBufferWithBOT* ParGCAllocBufferWithBOTPtr;
  67     _alloc_buffers = NEW_C_HEAP_ARRAY(ParGCAllocBufferWithBOTPtr,
  68                                       ParallelGCThreads, mtGC);
  69     if (_alloc_buffers == NULL)
  70       vm_exit_during_initialization("Could not allocate alloc_buffers");
  71     for (uint i = 0; i < ParallelGCThreads; i++) {
  72       _alloc_buffers[i] =
  73         new ParGCAllocBufferWithBOT(OldPLABSize, _bts);
  74       if (_alloc_buffers[i] == NULL)
  75         vm_exit_during_initialization("Could not allocate alloc_buffers");
  76     }
  77   } else {
  78     _alloc_buffers = NULL;
  79   }
  80 #endif // SERIALGC
  81 }
  82 
  83 
  84 const char* TenuredGeneration::name() const {
  85   return "tenured generation";




  45   _the_space  = new TenuredSpace(_bts, MemRegion(bottom, end));
  46   _the_space->reset_saved_mark();
  47   _shrink_factor = 0;
  48   _capacity_at_prologue = 0;
  49 
  50   _gc_stats = new GCStats();
  51 
  52   // initialize performance counters
  53 
  54   const char* gen_name = "old";
  55 
  56   // Generation Counters -- generation 1, 1 subspace
  57   _gen_counters = new GenerationCounters(gen_name, 1, 1, &_virtual_space);
  58 
  59   _gc_counters = new CollectorCounters("MSC", 1);
  60 
  61   _space_counters = new CSpaceCounters(gen_name, 0,
  62                                        _virtual_space.reserved_size(),
  63                                        _the_space, _gen_counters);
  64 #ifndef SERIALGC
  65   if (UseParNewGC) {
  66     typedef ParGCAllocBufferWithBOT* ParGCAllocBufferWithBOTPtr;
  67     _alloc_buffers = NEW_C_HEAP_ARRAY(ParGCAllocBufferWithBOTPtr,
  68                                       ParallelGCThreads, mtGC);
  69     if (_alloc_buffers == NULL)
  70       vm_exit_during_initialization("Could not allocate alloc_buffers");
  71     for (uint i = 0; i < ParallelGCThreads; i++) {
  72       _alloc_buffers[i] =
  73         new ParGCAllocBufferWithBOT(OldPLABSize, _bts);
  74       if (_alloc_buffers[i] == NULL)
  75         vm_exit_during_initialization("Could not allocate alloc_buffers");
  76     }
  77   } else {
  78     _alloc_buffers = NULL;
  79   }
  80 #endif // SERIALGC
  81 }
  82 
  83 
  84 const char* TenuredGeneration::name() const {
  85   return "tenured generation";


src/share/vm/memory/tenuredGeneration.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File