RFR: Heap/matrix verification for all reachable objects

Aleksey Shipilev shade at redhat.com
Wed Mar 15 13:29:19 UTC 2017


On 03/15/2017 02:25 PM, Zhengyu Gu wrote:
> There is a NMT miscounting:
> ShenandoahHeap.cpp
> 
> 2021   os::uncommit_memory(bm.base(), bm.size());
> 2022   MemTracker::record_free(bm.base());
> 2023   delete(q);
> 
> MemTracker::record_free() is for malloc'd memory. You don't need explicit
> counting here, os::uncommit_memory does that for you.

Thanks! Removed record_free:
 http://hg.openjdk.java.net/shenandoah/jdk9/hotspot/rev/ff1dbca887a4

-Aleksey



More information about the shenandoah-dev mailing list