100 virtual PSAdaptiveSizePolicy* size_policy() { return _size_policy; }
101
102 static PSGCAdaptivePolicyCounters* gc_policy_counters() { return _gc_policy_counters; }
103
104 static ParallelScavengeHeap* heap();
105
106 static GCTaskManager* const gc_task_manager() { return _gc_task_manager; }
107
108 AdjoiningGenerations* gens() { return _gens; }
109
110 // Returns JNI_OK on success
111 virtual jint initialize();
112
113 void post_initialize();
114 void update_counters();
115
116 // The alignment used for the various areas
117 size_t space_alignment() { return _collector_policy->space_alignment(); }
118 size_t generation_alignment() { return _collector_policy->gen_alignment(); }
119
120 // Return the (conservative) maximum heap alignment
121 static size_t conservative_max_heap_alignment() {
122 return CollectorPolicy::compute_heap_alignment();
123 }
124
125 size_t capacity() const;
126 size_t used() const;
127
128 // Return "true" if all generations have reached the
129 // maximal committed limit that they can reach, without a garbage
130 // collection.
131 virtual bool is_maximal_no_gc() const;
132
133 // Return true if the reference points to an object that
134 // can be moved in a partial collection. For currently implemented
135 // generational collectors that means during a collection of
136 // the young gen.
137 virtual bool is_scavengable(const void* addr);
138
139 size_t max_capacity() const;
140
141 // Whether p is in the allocated part of the heap
142 bool is_in(const void* p) const;
143
144 bool is_in_reserved(const void* p) const;
|
100 virtual PSAdaptiveSizePolicy* size_policy() { return _size_policy; }
101
102 static PSGCAdaptivePolicyCounters* gc_policy_counters() { return _gc_policy_counters; }
103
104 static ParallelScavengeHeap* heap();
105
106 static GCTaskManager* const gc_task_manager() { return _gc_task_manager; }
107
108 AdjoiningGenerations* gens() { return _gens; }
109
110 // Returns JNI_OK on success
111 virtual jint initialize();
112
113 void post_initialize();
114 void update_counters();
115
116 // The alignment used for the various areas
117 size_t space_alignment() { return _collector_policy->space_alignment(); }
118 size_t generation_alignment() { return _collector_policy->gen_alignment(); }
119
120 size_t capacity() const;
121 size_t used() const;
122
123 // Return "true" if all generations have reached the
124 // maximal committed limit that they can reach, without a garbage
125 // collection.
126 virtual bool is_maximal_no_gc() const;
127
128 // Return true if the reference points to an object that
129 // can be moved in a partial collection. For currently implemented
130 // generational collectors that means during a collection of
131 // the young gen.
132 virtual bool is_scavengable(const void* addr);
133
134 size_t max_capacity() const;
135
136 // Whether p is in the allocated part of the heap
137 bool is_in(const void* p) const;
138
139 bool is_in_reserved(const void* p) const;
|