mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
6765718: Indicate which thread throwing OOME when generating the heap dump at OOME
Emit a fake frame that makes it look like the thread is in the OutOfMemoryError zero-parameter constructor Reviewed-by: dcubed
This commit is contained in:
parent
059de12e57
commit
ce872b40fb
3 changed files with 57 additions and 10 deletions
|
@ -234,7 +234,7 @@ void report_java_out_of_memory(const char* message) {
|
|||
// 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]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue