equal
deleted
inserted
replaced
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 |