RFR (S): 8239070: Memory leak when unsuccessfully mapping in archive regions

Thomas Schatzl thomas.schatzl at oracle.com
Fri Feb 14 15:09:20 UTC 2020


Hi all,

   can I have reviews for this change that plugs a (tiny) memory leak 
when we unsuccessfully map CDS archives into the Java heap?

The FileMapInfo::map_heap_data() method allocates some array of 
MemRegions, and in case we fail to map the archive, we return that 
method without assigning it to something or deallocating that memory.

Found while working on JDK-8238999, also out for review, and depending 
on it.

CR:
https://bugs.openjdk.java.net/browse/JDK-8239070
Webrev:
http://cr.openjdk.java.net/~tschatzl/8239070/webrev/
Testing:
hs-tier1-4

Thanks,
   Thomas



More information about the hotspot-gc-dev mailing list