--- old/src/share/vm/memory/genCollectedHeap.hpp 2015-04-01 13:20:03.031812813 +0200 +++ new/src/share/vm/memory/genCollectedHeap.hpp 2015-04-01 13:20:02.915812817 +0200 @@ -31,6 +31,7 @@ #include "memory/sharedHeap.hpp" class SubTasksDone; +class FlexibleWorkGang; // A "GenCollectedHeap" is a SharedHeap that uses generational // collection. It has two generations, young and old. @@ -93,6 +94,8 @@ // In block contents verification, the number of header words to skip NOT_PRODUCT(static size_t _skip_header_HeapWords;) + FlexibleWorkGang* _workers; + protected: // Helper functions for allocation HeapWord* attempt_allocation(size_t size, @@ -125,6 +128,8 @@ public: GenCollectedHeap(GenCollectorPolicy *policy); + FlexibleWorkGang* workers() const { return _workers; } + GCStats* gc_stats(int level) const; // Returns JNI_OK on success @@ -331,7 +336,6 @@ _old_gen->update_gc_stats(current_level, full); } - // Override. bool no_gc_in_progress() { return !is_gc_active(); } // Override. @@ -363,8 +367,6 @@ // If "old_to_young" determines the order. void generation_iterate(GenClosure* cl, bool old_to_young); - void space_iterate(SpaceClosure* cl); - // Return "true" if all generations have reached the // maximal committed limit that they can reach, without a garbage // collection. @@ -531,8 +533,8 @@ void record_gen_tops_before_GC() PRODUCT_RETURN; protected: - virtual void gc_prologue(bool full); - virtual void gc_epilogue(bool full); + void gc_prologue(bool full); + void gc_epilogue(bool full); }; #endif // SHARE_VM_MEMORY_GENCOLLECTEDHEAP_HPP