src/share/vm/gc_implementation/shared/ageTable.hpp

changeset 7645
f2e3f0e1f97d
parent 4129
22b8d3d181d9
child 7994
04ff2f6cd0eb
child 9858
b985cbb00e68
     1.1 --- a/src/share/vm/gc_implementation/shared/ageTable.hpp	Fri Oct 10 12:15:51 2014 +0200
     1.2 +++ b/src/share/vm/gc_implementation/shared/ageTable.hpp	Fri Nov 14 15:03:39 2014 +0100
     1.3 @@ -55,7 +55,10 @@
     1.4  
     1.5    // add entry
     1.6    void add(oop p, size_t oop_size) {
     1.7 -    uint age = p->age();
     1.8 +    add(p->age(), oop_size);
     1.9 +  }
    1.10 +
    1.11 +  void add(uint age, size_t oop_size) {
    1.12      assert(age > 0 && age < table_size, "invalid age of object");
    1.13      sizes[age] += oop_size;
    1.14    }

mercurial