diff 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
line wrap: on
line diff
--- a/src/share/vm/gc_implementation/shared/ageTable.hpp	Fri Oct 10 12:15:51 2014 +0200
+++ b/src/share/vm/gc_implementation/shared/ageTable.hpp	Fri Nov 14 15:03:39 2014 +0100
@@ -55,7 +55,10 @@
 
   // add entry
   void add(oop p, size_t oop_size) {
-    uint age = p->age();
+    add(p->age(), oop_size);
+  }
+
+  void add(uint age, size_t oop_size) {
     assert(age > 0 && age < table_size, "invalid age of object");
     sizes[age] += oop_size;
   }