6306922: Dump dump created by +HeapDumpOnOutOfMemoryError should include stack traces for stack roots

Include stack traces of all threads in the heap dump

Reviewed-by: alanb
This commit is contained in:
Mandy Chung 2008-10-14 15:16:38 -07:00
parent 04b0ebb9c1
commit e5e6ca9d62
3 changed files with 158 additions and 36 deletions

View file

@ -242,6 +242,7 @@ class ThreadStackTrace : public CHeapObj {
ThreadStackTrace(JavaThread* thread, bool with_locked_monitors);
~ThreadStackTrace();
JavaThread* thread() { return _thread; }
StackFrameInfo* stack_frame_at(int i) { return _frames->at(i); }
int get_stack_depth() { return _depth; }