--- old/src/hotspot/share/gc/shared/genCollectedHeap.hpp 2019-01-24 15:51:10.299429923 +0100 +++ new/src/hotspot/share/gc/shared/genCollectedHeap.hpp 2019-01-24 15:51:10.067430680 +0100 @@ -503,6 +503,10 @@ // Save the tops of the spaces in all generations void record_gen_tops_before_GC() PRODUCT_RETURN; + + // Return true if we need to perform full collection. + bool should_do_full_collection(size_t size, bool full, + bool is_tlab, GenerationType max_gen) const; }; #endif // SHARE_GC_SHARED_GENCOLLECTEDHEAP_HPP