src/share/vm/gc_implementation/parallelScavenge/psAdaptiveSizePolicy.hpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
hotspot Cdiff src/share/vm/gc_implementation/parallelScavenge/psAdaptiveSizePolicy.hpp
src/share/vm/gc_implementation/parallelScavenge/psAdaptiveSizePolicy.hpp
Print this page
rev 5803 : 8028391: Make the Min/MaxHeapFreeRatio flags manageable
Summary: Made the flags Min- and MaxHeapFreeRatio manageable, and implemented support for these flags in ParallalGC.
Reviewed-by: sla, mgerdin, brutisso
*** 238,258 ****
// called by GC algorithms. It is the responsibility of users of this
// policy to call these methods at the correct times!
void major_collection_begin();
void major_collection_end(size_t amount_live, GCCause::Cause gc_cause);
- //
void tenured_allocation(size_t size) {
_avg_pretenured->sample(size);
}
// Accessors
// NEEDS_CLEANUP should use sizes.hpp
! size_t calculated_old_free_size_in_bytes() const {
! return (size_t)(_promo_size + avg_promoted()->padded_average());
! }
size_t average_old_live_in_bytes() const {
return (size_t) avg_old_live()->average();
}
--- 238,257 ----
// called by GC algorithms. It is the responsibility of users of this
// policy to call these methods at the correct times!
void major_collection_begin();
void major_collection_end(size_t amount_live, GCCause::Cause gc_cause);
void tenured_allocation(size_t size) {
_avg_pretenured->sample(size);
}
// Accessors
// NEEDS_CLEANUP should use sizes.hpp
! static size_t calculate_free_based_on_live(size_t live, uintx ratio_as_percentage);
!
! size_t calculated_old_free_size_in_bytes() const;
size_t average_old_live_in_bytes() const {
return (size_t) avg_old_live()->average();
}
src/share/vm/gc_implementation/parallelScavenge/psAdaptiveSizePolicy.hpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File