< prev index next >

src/hotspot/share/gc/serial/serialHeap.hpp

Print this page




  42   MemoryPool* _old_pool;
  43 
  44   virtual void initialize_serviceability();
  45 
  46 public:
  47   static SerialHeap* heap();
  48 
  49   SerialHeap(GenCollectorPolicy* policy);
  50 
  51   virtual Name kind() const {
  52     return CollectedHeap::Serial;
  53   }
  54 
  55   virtual const char* name() const {
  56     return "Serial";
  57   }
  58 
  59   virtual GrowableArray<GCMemoryManager*> memory_managers();
  60   virtual GrowableArray<MemoryPool*> memory_pools();
  61 
  62   // override
  63   virtual bool is_in_closed_subset(const void* p) const {
  64     return is_in(p);
  65   }
  66 
  67   DefNewGeneration* young_gen() const {
  68     assert(_young_gen->kind() == Generation::DefNew, "Wrong generation type");
  69     return static_cast<DefNewGeneration*>(_young_gen);
  70   }
  71 
  72   TenuredGeneration* old_gen() const {
  73     assert(_old_gen->kind() == Generation::MarkSweepCompact, "Wrong generation type");
  74     return static_cast<TenuredGeneration*>(_old_gen);
  75   }
  76 
  77   // Apply "cur->do_oop" or "older->do_oop" to all the oops in objects
  78   // allocated since the last call to save_marks in the young generation.
  79   // The "cur" closure is applied to references in the younger generation
  80   // at "level", and the "older" closure to older generations.
  81   template <typename OopClosureType1, typename OopClosureType2>
  82   void oop_since_save_marks_iterate(OopClosureType1* cur,
  83                                     OopClosureType2* older);
  84 };
  85 
  86 #endif // SHARE_GC_SERIAL_SERIALHEAP_HPP


  42   MemoryPool* _old_pool;
  43 
  44   virtual void initialize_serviceability();
  45 
  46 public:
  47   static SerialHeap* heap();
  48 
  49   SerialHeap(GenCollectorPolicy* policy);
  50 
  51   virtual Name kind() const {
  52     return CollectedHeap::Serial;
  53   }
  54 
  55   virtual const char* name() const {
  56     return "Serial";
  57   }
  58 
  59   virtual GrowableArray<GCMemoryManager*> memory_managers();
  60   virtual GrowableArray<MemoryPool*> memory_pools();
  61 





  62   DefNewGeneration* young_gen() const {
  63     assert(_young_gen->kind() == Generation::DefNew, "Wrong generation type");
  64     return static_cast<DefNewGeneration*>(_young_gen);
  65   }
  66 
  67   TenuredGeneration* old_gen() const {
  68     assert(_old_gen->kind() == Generation::MarkSweepCompact, "Wrong generation type");
  69     return static_cast<TenuredGeneration*>(_old_gen);
  70   }
  71 
  72   // Apply "cur->do_oop" or "older->do_oop" to all the oops in objects
  73   // allocated since the last call to save_marks in the young generation.
  74   // The "cur" closure is applied to references in the younger generation
  75   // at "level", and the "older" closure to older generations.
  76   template <typename OopClosureType1, typename OopClosureType2>
  77   void oop_since_save_marks_iterate(OopClosureType1* cur,
  78                                     OopClosureType2* older);
  79 };
  80 
  81 #endif // SHARE_GC_SERIAL_SERIALHEAP_HPP
< prev index next >