hotspot/src/share/vm/memory/tenuredGeneration.hpp
changeset 28032 195f814dfa62
parent 28031 10aec24d2b61
child 28033 ab63acbd99ec
equal deleted inserted replaced
28031:10aec24d2b61 28032:195f814dfa62
    41   // Abstractly, this is a subtype that gets access to protected fields.
    41   // Abstractly, this is a subtype that gets access to protected fields.
    42   friend class VM_PopulateDumpSharedSpace;
    42   friend class VM_PopulateDumpSharedSpace;
    43 
    43 
    44  protected:
    44  protected:
    45   ContiguousSpace*  _the_space;       // actual space holding objects
    45   ContiguousSpace*  _the_space;       // actual space holding objects
    46   WaterMark  _last_gc;                // watermark between objects allocated before
       
    47                                       // and after last GC.
       
    48 
    46 
    49   GenerationCounters*   _gen_counters;
    47   GenerationCounters*   _gen_counters;
    50   CSpaceCounters*       _space_counters;
    48   CSpaceCounters*       _space_counters;
    51 
    49 
    52   // Grow generation with specified size (returns false if unable to grow)
    50   // Grow generation with specified size (returns false if unable to grow)
   102   inline CompactibleSpace* first_compaction_space() const;
   100   inline CompactibleSpace* first_compaction_space() const;
   103 
   101 
   104   virtual inline HeapWord* allocate(size_t word_size, bool is_tlab);
   102   virtual inline HeapWord* allocate(size_t word_size, bool is_tlab);
   105   virtual inline HeapWord* par_allocate(size_t word_size, bool is_tlab);
   103   virtual inline HeapWord* par_allocate(size_t word_size, bool is_tlab);
   106 
   104 
   107   // Accessing marks
       
   108   inline WaterMark top_mark();
       
   109   inline WaterMark bottom_mark();
       
   110 
       
   111 #define TenuredGen_SINCE_SAVE_MARKS_DECL(OopClosureType, nv_suffix)     \
   105 #define TenuredGen_SINCE_SAVE_MARKS_DECL(OopClosureType, nv_suffix)     \
   112   void oop_since_save_marks_iterate##nv_suffix(OopClosureType* cl);
   106   void oop_since_save_marks_iterate##nv_suffix(OopClosureType* cl);
   113   TenuredGen_SINCE_SAVE_MARKS_DECL(OopsInGenClosure,_v)
   107   TenuredGen_SINCE_SAVE_MARKS_DECL(OopsInGenClosure,_v)
   114   SPECIALIZED_SINCE_SAVE_MARKS_CLOSURES(TenuredGen_SINCE_SAVE_MARKS_DECL)
   108   SPECIALIZED_SINCE_SAVE_MARKS_CLOSURES(TenuredGen_SINCE_SAVE_MARKS_DECL)
   115 
   109