diff -r ea175c1b79ce -r 30f67acf635d src/share/vm/utilities/debug.cpp --- a/src/share/vm/utilities/debug.cpp Wed Sep 08 08:34:57 2010 -0700 +++ b/src/share/vm/utilities/debug.cpp Sat Sep 11 08:18:31 2010 +0200 @@ -234,7 +234,7 @@ // create heap dump before OnOutOfMemoryError commands are executed if (HeapDumpOnOutOfMemoryError) { tty->print_cr("java.lang.OutOfMemoryError: %s", message); - HeapDumper::dump_heap(); + HeapDumper::dump_heap_from_oome(); } if (OnOutOfMemoryError && OnOutOfMemoryError[0]) {