--- old/src/share/vm/gc_implementation/g1/sparsePRT.cpp 2014-04-18 14:34:29.678155420 +0200 +++ new/src/share/vm/gc_implementation/g1/sparsePRT.cpp 2014-04-18 14:34:29.606155421 +0200 @@ -370,7 +370,7 @@ } size_t RSHashTable::mem_size() const { - return sizeof(this) + + return sizeof(RSHashTable) + capacity() * (SparsePRTEntry::size() + sizeof(int)); } @@ -472,7 +472,7 @@ size_t SparsePRT::mem_size() const { // We ignore "_cur" here, because it either = _next, or else it is // on the deleted list. - return sizeof(this) + _next->mem_size(); + return sizeof(SparsePRT) + _next->mem_size(); } bool SparsePRT::add_card(RegionIdx_t region_id, CardIdx_t card_index) {