src/share/vm/memory/defNewGeneration.cpp

changeset 9931
fd44df5e3bc3
parent 7994
04ff2f6cd0eb
parent 9858
b985cbb00e68
     1.1 --- a/src/share/vm/memory/defNewGeneration.cpp	Wed Oct 14 16:43:13 2020 +0800
     1.2 +++ b/src/share/vm/memory/defNewGeneration.cpp	Wed Oct 14 17:44:48 2020 +0800
     1.3 @@ -551,10 +551,10 @@
     1.4    return allocate(size, is_tlab);
     1.5  }
     1.6  
     1.7 -void DefNewGeneration::adjust_desired_tenuring_threshold() {
     1.8 +void DefNewGeneration::adjust_desired_tenuring_threshold(GCTracer &tracer) {
     1.9    // Set the desired survivor size to half the real survivor space
    1.10    _tenuring_threshold =
    1.11 -    age_table()->compute_tenuring_threshold(to()->capacity()/HeapWordSize);
    1.12 +    age_table()->compute_tenuring_threshold(to()->capacity()/HeapWordSize, tracer);
    1.13  }
    1.14  
    1.15  void DefNewGeneration::collect(bool   full,
    1.16 @@ -664,7 +664,7 @@
    1.17  
    1.18      assert(to()->is_empty(), "to space should be empty now");
    1.19  
    1.20 -    adjust_desired_tenuring_threshold();
    1.21 +    adjust_desired_tenuring_threshold(gc_tracer);
    1.22  
    1.23      // A successful scavenge should restart the GC time limit count which is
    1.24      // for full GC's.

mercurial