< prev index next >

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

Print this page

        

*** 26,36 **** #define SHARE_GC_SHARED_GENCOLLECTEDHEAP_HPP #include "gc/shared/collectedHeap.hpp" #include "gc/shared/generation.hpp" #include "gc/shared/oopStorageParState.hpp" - #include "gc/shared/preGCValues.hpp" #include "gc/shared/softRefGenPolicy.hpp" class AdaptiveSizePolicy; class CardTableRS; class GCPolicyCounters; --- 26,35 ----
*** 94,110 **** void collect_generation(Generation* gen, bool full, size_t size, bool is_tlab, bool run_verification, bool clear_soft_refs, bool restore_marks_for_biased_locking); // Reserve aligned space for the heap as needed by the contained generations. ! ReservedHeapSpace allocate(size_t alignment); // Initialize ("weak") refs processing support void ref_processing_init(); - PreGenGCValues get_pre_gc_values() const; - protected: // The set of potentially parallel tasks in root scanning. enum GCH_strong_roots_tasks { GCH_PS_Universe_oops_do, --- 93,107 ---- void collect_generation(Generation* gen, bool full, size_t size, bool is_tlab, bool run_verification, bool clear_soft_refs, bool restore_marks_for_biased_locking); // Reserve aligned space for the heap as needed by the contained generations. ! char* allocate(size_t alignment, ReservedSpace* heap_rs); // Initialize ("weak") refs processing support void ref_processing_init(); protected: // The set of potentially parallel tasks in root scanning. enum GCH_strong_roots_tasks { GCH_PS_Universe_oops_do,
*** 115,124 **** --- 112,122 ---- GCH_PS_SystemDictionary_oops_do, GCH_PS_ClassLoaderDataGraph_oops_do, GCH_PS_jvmti_oops_do, GCH_PS_CodeCache_oops_do, AOT_ONLY(GCH_PS_aot_oops_do COMMA) + JVMCI_ONLY(GCH_PS_jvmci_oops_do COMMA) GCH_PS_younger_gens, // Leave this one last. GCH_PS_NumElements };
*** 178,190 **** Generation* old_gen() const { return _old_gen; } bool is_young_gen(const Generation* gen) const { return gen == _young_gen; } bool is_old_gen(const Generation* gen) const { return gen == _old_gen; } - MemRegion reserved_region() const { return _reserved; } - bool is_in_reserved(const void* addr) const { return _reserved.contains(addr); } - GenerationSpec* young_gen_spec() const; GenerationSpec* old_gen_spec() const; virtual SoftRefPolicy* soft_ref_policy() { return &_soft_ref_gen_policy; } --- 176,185 ----
*** 264,280 **** // Returns the address of the start of the "block" that contains the // address "addr". We say "blocks" instead of "object" since some heaps // may not pack objects densely; a chunk may either be an object or a // non-object. ! HeapWord* block_start(const void* addr) const; // Requires "addr" to be the start of a block, and returns "TRUE" iff // the block is an object. Assumes (and verifies in non-product // builds) that addr is in the allocated part of the heap and is // the start of a chunk. ! bool block_is_obj(const HeapWord* addr) const; // Section on TLAB's. virtual bool supports_tlab_allocation() const; virtual size_t tlab_capacity(Thread* thr) const; virtual size_t tlab_used(Thread* thr) const; --- 259,275 ---- // Returns the address of the start of the "block" that contains the // address "addr". We say "blocks" instead of "object" since some heaps // may not pack objects densely; a chunk may either be an object or a // non-object. ! virtual HeapWord* block_start(const void* addr) const; // Requires "addr" to be the start of a block, and returns "TRUE" iff // the block is an object. Assumes (and verifies in non-product // builds) that addr is in the allocated part of the heap and is // the start of a chunk. ! virtual bool block_is_obj(const HeapWord* addr) const; // Section on TLAB's. virtual bool supports_tlab_allocation() const; virtual size_t tlab_capacity(Thread* thr) const; virtual size_t tlab_used(Thread* thr) const;
*** 336,349 **** virtual void print_on(outputStream* st) const; virtual void print_gc_threads_on(outputStream* st) const; virtual void gc_threads_do(ThreadClosure* tc) const; virtual void print_tracing_info() const; ! // Used to print information about locations in the hs_err file. ! virtual bool print_location(outputStream* st, void* addr) const; ! ! void print_heap_change(const PreGenGCValues& pre_gc_values) const; // The functions below are helper functions that a subclass of // "CollectedHeap" can use in the implementation of its virtual // functions. --- 331,341 ---- virtual void print_on(outputStream* st) const; virtual void print_gc_threads_on(outputStream* st) const; virtual void gc_threads_do(ThreadClosure* tc) const; virtual void print_tracing_info() const; ! void print_heap_change(size_t young_prev_used, size_t old_prev_used) const; // The functions below are helper functions that a subclass of // "CollectedHeap" can use in the implementation of its virtual // functions.
< prev index next >