< prev index next >

src/share/vm/gc/shared/generation.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_MEMORY_GENERATION_HPP
  26 #define SHARE_VM_MEMORY_GENERATION_HPP
  27 
  28 #include "gc_implementation/shared/collectorCounters.hpp"


  29 #include "memory/allocation.hpp"
  30 #include "memory/memRegion.hpp"
  31 #include "memory/referenceProcessor.hpp"
  32 #include "memory/universe.hpp"
  33 #include "memory/virtualspace.hpp"
  34 #include "memory/watermark.hpp"
  35 #include "runtime/mutex.hpp"
  36 #include "runtime/perfData.hpp"
  37 
  38 // A Generation models a heap area for similarly-aged objects.
  39 // It will contain one ore more spaces holding the actual objects.
  40 //
  41 // The Generation class hierarchy:
  42 //
  43 // Generation                      - abstract base class
  44 // - DefNewGeneration              - allocation area (copy collected)
  45 //   - ParNewGeneration            - a DefNewGeneration that is collected by
  46 //                                   several threads
  47 // - CardGeneration                 - abstract class adding offset array behavior
  48 //   - TenuredGeneration             - tenured (old object) space (markSweepCompact)
  49 //   - ConcurrentMarkSweepGeneration - Mostly Concurrent Mark Sweep Generation
  50 //                                       (Detlefs-Printezis refinement of
  51 //                                       Boehm-Demers-Schenker)
  52 //
  53 // The system configurations currently allowed are:
  54 //


 567   struct StatRecord {
 568     int invocations;
 569     elapsedTimer accumulated_time;
 570     StatRecord() :
 571       invocations(0),
 572       accumulated_time(elapsedTimer()) {}
 573   };
 574 private:
 575   StatRecord _stat_record;
 576 public:
 577   StatRecord* stat_record() { return &_stat_record; }
 578 
 579   virtual void print_summary_info();
 580   virtual void print_summary_info_on(outputStream* st);
 581 
 582   // Performance Counter support
 583   virtual void update_counters() = 0;
 584   virtual CollectorCounters* counters() { return _gc_counters; }
 585 };
 586 
 587 #endif // SHARE_VM_MEMORY_GENERATION_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_SHARED_GENERATION_HPP
  26 #define SHARE_VM_GC_SHARED_GENERATION_HPP
  27 
  28 #include "gc/shared/collectorCounters.hpp"
  29 #include "gc/shared/referenceProcessor.hpp"
  30 #include "gc/shared/watermark.hpp"
  31 #include "memory/allocation.hpp"
  32 #include "memory/memRegion.hpp"

  33 #include "memory/universe.hpp"
  34 #include "memory/virtualspace.hpp"

  35 #include "runtime/mutex.hpp"
  36 #include "runtime/perfData.hpp"
  37 
  38 // A Generation models a heap area for similarly-aged objects.
  39 // It will contain one ore more spaces holding the actual objects.
  40 //
  41 // The Generation class hierarchy:
  42 //
  43 // Generation                      - abstract base class
  44 // - DefNewGeneration              - allocation area (copy collected)
  45 //   - ParNewGeneration            - a DefNewGeneration that is collected by
  46 //                                   several threads
  47 // - CardGeneration                 - abstract class adding offset array behavior
  48 //   - TenuredGeneration             - tenured (old object) space (markSweepCompact)
  49 //   - ConcurrentMarkSweepGeneration - Mostly Concurrent Mark Sweep Generation
  50 //                                       (Detlefs-Printezis refinement of
  51 //                                       Boehm-Demers-Schenker)
  52 //
  53 // The system configurations currently allowed are:
  54 //


 567   struct StatRecord {
 568     int invocations;
 569     elapsedTimer accumulated_time;
 570     StatRecord() :
 571       invocations(0),
 572       accumulated_time(elapsedTimer()) {}
 573   };
 574 private:
 575   StatRecord _stat_record;
 576 public:
 577   StatRecord* stat_record() { return &_stat_record; }
 578 
 579   virtual void print_summary_info();
 580   virtual void print_summary_info_on(outputStream* st);
 581 
 582   // Performance Counter support
 583   virtual void update_counters() = 0;
 584   virtual CollectorCounters* counters() { return _gc_counters; }
 585 };
 586 
 587 #endif // SHARE_VM_GC_SHARED_GENERATION_HPP
< prev index next >