< prev index next >

src/hotspot/share/gc/parallel/parallelScavengeHeap.hpp

Print this page

167 
168   // Return "true" if all generations have reached the
169   // maximal committed limit that they can reach, without a garbage
170   // collection.
171   virtual bool is_maximal_no_gc() const;
172 
173   virtual void register_nmethod(nmethod* nm);
174   virtual void unregister_nmethod(nmethod* nm);
175   virtual void verify_nmethod(nmethod* nm);
176   virtual void flush_nmethod(nmethod* nm);
177 
178   void prune_scavengable_nmethods();
179 
180   size_t max_capacity() const;
181 
182   // Whether p is in the allocated part of the heap
183   bool is_in(const void* p) const;
184 
185   bool is_in_reserved(const void* p) const;
186 
187   bool is_in_young(oop p);  // reserved part
188   bool is_in_old(oop p);    // reserved part


189 
190   MemRegion reserved_region() const { return _reserved; }
191   HeapWord* base() const { return _reserved.start(); }
192 
193   // Memory allocation.   "gc_time_limit_was_exceeded" will
194   // be set to true if the adaptive size policy determine that
195   // an excessive amount of time is being spent doing collections
196   // and caused a NULL to be returned.  If a NULL is not returned,
197   // "gc_time_limit_was_exceeded" has an undefined meaning.
198   HeapWord* mem_allocate(size_t size, bool* gc_overhead_limit_was_exceeded);
199 
200   // Allocation attempt(s) during a safepoint. It should never be called
201   // to allocate a new TLAB as this allocation might be satisfied out
202   // of the old generation.
203   HeapWord* failed_mem_allocate(size_t size);
204 
205   // Support for System.gc()
206   void collect(GCCause::Cause cause);
207 
208   // These also should be called by the vm thread at a safepoint (e.g., from a

167 
168   // Return "true" if all generations have reached the
169   // maximal committed limit that they can reach, without a garbage
170   // collection.
171   virtual bool is_maximal_no_gc() const;
172 
173   virtual void register_nmethod(nmethod* nm);
174   virtual void unregister_nmethod(nmethod* nm);
175   virtual void verify_nmethod(nmethod* nm);
176   virtual void flush_nmethod(nmethod* nm);
177 
178   void prune_scavengable_nmethods();
179 
180   size_t max_capacity() const;
181 
182   // Whether p is in the allocated part of the heap
183   bool is_in(const void* p) const;
184 
185   bool is_in_reserved(const void* p) const;
186 
187   bool is_in_young(oop p) const;  // reserved part
188   bool is_in_old(oop p);          // reserved part
189 
190   virtual bool requires_barriers(oop obj) const;
191 
192   MemRegion reserved_region() const { return _reserved; }
193   HeapWord* base() const { return _reserved.start(); }
194 
195   // Memory allocation.   "gc_time_limit_was_exceeded" will
196   // be set to true if the adaptive size policy determine that
197   // an excessive amount of time is being spent doing collections
198   // and caused a NULL to be returned.  If a NULL is not returned,
199   // "gc_time_limit_was_exceeded" has an undefined meaning.
200   HeapWord* mem_allocate(size_t size, bool* gc_overhead_limit_was_exceeded);
201 
202   // Allocation attempt(s) during a safepoint. It should never be called
203   // to allocate a new TLAB as this allocation might be satisfied out
204   // of the old generation.
205   HeapWord* failed_mem_allocate(size_t size);
206 
207   // Support for System.gc()
208   void collect(GCCause::Cause cause);
209 
210   // These also should be called by the vm thread at a safepoint (e.g., from a
< prev index next >