comparison src/share/vm/gc_implementation/shared/ageTable.hpp @ 22895:f2e3f0e1f97d

8064473: Improved handling of age during object copy in G1 Reviewed-by: brutisso, tschatzl
author sfriberg
date Fri, 14 Nov 2014 15:03:39 +0100
parents 22b8d3d181d9
children
comparison
equal deleted inserted replaced
22894:2af69bed8db6 22895: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