--- old/src/hotspot/share/gc/g1/g1IHOPControl.hpp 2020-06-10 10:12:05.985079397 +0200 +++ new/src/hotspot/share/gc/g1/g1IHOPControl.hpp 2020-06-10 10:12:05.897076376 +0200 @@ -63,14 +63,15 @@ // Adjust target occupancy. virtual void update_target_occupancy(size_t new_target_occupancy); // Update information about time during which allocations in the Java heap occurred, - // how large these allocations were in bytes, and an additional buffer. + // and how large these allocations were in bytes. // The allocations should contain any amount of space made unusable for further // allocation, e.g. any waste caused by TLAB allocation, space at the end of // humongous objects that can not be used for allocation, etc. // Together with the target occupancy, this additional buffer should contain the // difference between old gen size and total heap size at the start of reclamation, // and space required for that reclamation. - virtual void update_allocation_info(double allocation_time_s, size_t allocated_bytes, size_t additional_buffer_size); + virtual void update_allocation_info(double allocation_time_s, size_t allocated_bytes); + virtual void update_additional_buffer(size_t additional_buffer_bytes) { } // Update the time spent in the mutator beginning from the end of initial mark to // the first mixed gc. virtual void update_marking_length(double marking_length_s) = 0; @@ -140,9 +141,11 @@ size_t heap_reserve_percent, // The percentage of total heap capacity that should not be tapped into. size_t heap_waste_percent); // The percentage of the free space in the heap that we think is not usable for allocation. + virtual void update_target_occupancy(size_t new_target_occupancy); virtual size_t get_conc_mark_start_threshold(); - virtual void update_allocation_info(double allocation_time_s, size_t allocated_bytes, size_t additional_buffer_size); + virtual void update_allocation_info(double allocation_time_s, size_t allocated_bytes); + virtual void update_additional_buffer(size_t additional_buffer_bytes); virtual void update_marking_length(double marking_length_s); virtual void print();