< prev index next >

src/hotspot/share/gc/shared/collectedHeap.hpp

Print this page

        

*** 41,51 **** // class defines the functions that a heap must implement, and contains // infrastructure common to all heaps. class AdaptiveSizePolicy; class BarrierSet; ! class CollectorPolicy; class GCHeapSummary; class GCTimer; class GCTracer; class GCMemoryManager; class MemoryPool; --- 41,51 ---- // class defines the functions that a heap must implement, and contains // infrastructure common to all heaps. class AdaptiveSizePolicy; class BarrierSet; ! class SoftRefPolicy; class GCHeapSummary; class GCTimer; class GCTracer; class GCMemoryManager; class MemoryPool;
*** 236,245 **** --- 236,248 ---- // that the vm uses internally for bookkeeping or temporary storage // (e.g., in the case of the young gen, one of the survivor // spaces). virtual size_t max_capacity() const = 0; + virtual size_t space_alignment() const = 0; + virtual size_t heap_alignment() const = 0; + // Returns "TRUE" if "p" points into the reserved area of the heap. bool is_in_reserved(const void* p) const { return _reserved.contains(p); }
*** 409,418 **** --- 412,425 ---- // vm thread. It collects the heap assuming that the // heap lock is already held and that we are executing in // the context of the vm thread. virtual void collect_as_vm_thread(GCCause::Cause cause); + virtual MetaWord* satisfy_failed_metadata_allocation(ClassLoaderData* loader_data, + size_t size, + Metaspace::MetadataType mdtype); + // Returns the barrier set for this heap BarrierSet* barrier_set() { return _barrier_set; } void set_barrier_set(BarrierSet* barrier_set); // Returns "true" iff there is a stop-world GC in progress. (I assume
*** 433,444 **** } } void increment_total_full_collections() { _total_full_collections++; } ! // Return the CollectorPolicy for the heap ! virtual CollectorPolicy* collector_policy() const = 0; virtual GrowableArray<GCMemoryManager*> memory_managers() = 0; virtual GrowableArray<MemoryPool*> memory_pools() = 0; // Iterate over all objects, calling "cl.do_object" on each. --- 440,450 ---- } } void increment_total_full_collections() { _total_full_collections++; } ! virtual SoftRefPolicy* soft_ref_policy() = 0; virtual GrowableArray<GCMemoryManager*> memory_managers() = 0; virtual GrowableArray<MemoryPool*> memory_pools() = 0; // Iterate over all objects, calling "cl.do_object" on each.
< prev index next >