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

changeset 7645
f2e3f0e1f97d
parent 4129
22b8d3d181d9
child 7994
04ff2f6cd0eb
child 9858
b985cbb00e68
equal deleted inserted replaced
7644:2af69bed8db6 7645:f2e3f0e1f97d
53 // clear table 53 // clear table
54 void clear(); 54 void clear();
55 55
56 // add entry 56 // add entry
57 void add(oop p, size_t oop_size) { 57 void add(oop p, size_t oop_size) {
58 uint age = p->age(); 58 add(p->age(), oop_size);
59 }
60
61 void add(uint age, size_t oop_size) {
59 assert(age > 0 && age < table_size, "invalid age of object"); 62 assert(age > 0 && age < table_size, "invalid age of object");
60 sizes[age] += oop_size; 63 sizes[age] += oop_size;
61 } 64 }
62 65
63 // Merge another age table with the current one. Used 66 // Merge another age table with the current one. Used

mercurial