hg: jdk9/hs-gc/hotspot: 8040792: G1: Memory usage calculation uses sizeof(this) instead of sizeof(classname)
thomas.schatzl at oracle.com
thomas.schatzl at oracle.com
Tue Apr 22 10:05:28 UTC 2014
Changeset: 9314dc72e2f9
Author: tschatzl
Date: 2014-04-22 11:10 +0200
URL: http://hg.openjdk.java.net/jdk9/hs-gc/hotspot/rev/9314dc72e2f9
8040792: G1: Memory usage calculation uses sizeof(this) instead of sizeof(classname)
Summary: A few locations in the code use sizeof(this) which returns the size of the pointer instead of sizeof(classname) which returns the size of the sum of its members. This change fixes these errors and adds a few tests.
Reviewed-by: mgerdin, brutisso
! src/share/vm/gc_implementation/g1/g1CodeCacheRemSet.cpp
! src/share/vm/gc_implementation/g1/g1CodeCacheRemSet.hpp
! src/share/vm/gc_implementation/g1/heapRegionRemSet.cpp
! src/share/vm/gc_implementation/g1/heapRegionRemSet.hpp
! src/share/vm/gc_implementation/g1/sparsePRT.cpp
More information about the jdk9-all-changes
mailing list