RFR (S): JDK-8077841: G1: Remove PrintReachable support

Bengt Rutisson bengt.rutisson at oracle.com
Wed Apr 15 11:52:56 UTC 2015

Hi everyone,

Could I have a couple of reviews for this change to remove the 
PrintReachable support in G1?


There are three develop flags that allow G1 to dump all objects on the 
heap to a text format:


Turning on this dumping code will dump all objects in all regions to the 
file specified by G1PrintReachableBaseFile,

Several things are disturbing with this code:
- The way the code opens a separate file and writes to it is pretty 
uncommon for our logging code
- The flags are develop flags, so not usable in product code - even 
druring verification
- The format the heap is dumped in is not a standard format so there is 
no tool support for it
- There is already standard ways of dumping the heap, using hprof for 
- It is pretty unclear when the information logged by PrintReachable is 

I've asked around a bit and as far as I can tell no one has been using 
this feature for a long time. So, rather than trying to fix the code I 
propose that we remove it.


More information about the hotspot-gc-dev mailing list