src/hotspot/share/gc/shenandoah/heuristics/shenandoahCompactHeuristics.cpp
changeset 58778 f8ffc59c2812
parent 58543 a7a606f6311c
equal deleted inserted replaced
58777:18c246ad2ff9 58778:f8ffc59c2812
    63                  byte_size_in_proper_unit(available),     proper_unit_for_byte_size(available),
    63                  byte_size_in_proper_unit(available),     proper_unit_for_byte_size(available),
    64                  byte_size_in_proper_unit(min_threshold), proper_unit_for_byte_size(min_threshold));
    64                  byte_size_in_proper_unit(min_threshold), proper_unit_for_byte_size(min_threshold));
    65     return true;
    65     return true;
    66   }
    66   }
    67 
    67 
    68   if (available < threshold_bytes_allocated) {
       
    69     log_info(gc)("Trigger: Free (" SIZE_FORMAT "%s) is lower than allocated recently (" SIZE_FORMAT "%s)",
       
    70                  byte_size_in_proper_unit(available),                 proper_unit_for_byte_size(available),
       
    71                  byte_size_in_proper_unit(threshold_bytes_allocated), proper_unit_for_byte_size(threshold_bytes_allocated));
       
    72     return true;
       
    73   }
       
    74 
       
    75   size_t bytes_allocated = heap->bytes_allocated_since_gc_start();
    68   size_t bytes_allocated = heap->bytes_allocated_since_gc_start();
    76   if (bytes_allocated > threshold_bytes_allocated) {
    69   if (bytes_allocated > threshold_bytes_allocated) {
    77     log_info(gc)("Trigger: Allocated since last cycle (" SIZE_FORMAT "%s) is larger than allocation threshold (" SIZE_FORMAT "%s)",
    70     log_info(gc)("Trigger: Allocated since last cycle (" SIZE_FORMAT "%s) is larger than allocation threshold (" SIZE_FORMAT "%s)",
    78                  byte_size_in_proper_unit(bytes_allocated),           proper_unit_for_byte_size(bytes_allocated),
    71                  byte_size_in_proper_unit(bytes_allocated),           proper_unit_for_byte_size(bytes_allocated),
    79                  byte_size_in_proper_unit(threshold_bytes_allocated), proper_unit_for_byte_size(threshold_bytes_allocated));
    72                  byte_size_in_proper_unit(threshold_bytes_allocated), proper_unit_for_byte_size(threshold_bytes_allocated));