--- old/src/share/vm/gc/shared/ageTable.cpp 2016-01-13 23:35:20.329362000 +0100 +++ new/src/share/vm/gc/shared/ageTable.cpp 2016-01-13 23:35:20.176342000 +0100 @@ -29,6 +29,7 @@ #include "gc/shared/gcPolicyCounters.hpp" #include "memory/resourceArea.hpp" #include "logging/log.hpp" +#include "oops/oop.inline.hpp" #include "utilities/copy.hpp" /* Copyright (c) 1992, 2015, Oracle and/or its affiliates, and Stanford University. @@ -67,6 +68,11 @@ } } +// add entry +void ageTable::add(oop p, size_t oop_size) { + add(p->age(), oop_size); +} + void ageTable::merge(ageTable* subTable) { for (int i = 0; i < table_size; i++) { sizes[i]+= subTable->sizes[i];