for heapdump=true builds, optionally generate dump on OOM

If the VM runs out of heap space and the "avian.heap.dump" system
property was specified at startup, the VM will write a heap dump to
the filename indicated by that property.  This dump may be analyzed
using e.g. DumpStats.java.
This commit is contained in:
Joel Dice
2010-11-18 10:55:00 -07:00
parent 7b85afedec
commit 19dbc61e9f
4 changed files with 38 additions and 7 deletions

View File

@ -16,8 +16,9 @@ import java.util.Arrays;
* heap dump generated by Avian's heapdump.cpp. The output is a list
* of classes (identified by number in the case of anonymous,
* VM-internal classes), each followed by (1) the total memory
* footprint of all instances of the class, and (2) the number of
* instances. The output is ordered by instance memory footprint.
* footprint of all instances of the class in machine words, and (2)
* the number of instances. The output is ordered by instance memory
* footprint.
*/
public class DumpStats {
private static final int Root = 0;