Mercurial > hg > graal-compiler
comparison src/share/vm/utilities/vmError.cpp @ 6197:d2a62e0f25eb
6995781: Native Memory Tracking (Phase 1)
7151532: DCmd for hotspot native memory tracking
Summary: Implementation of native memory tracking phase 1, which tracks VM native memory usage, and related DCmd
Reviewed-by: acorn, coleenp, fparain
author | zgu |
---|---|
date | Thu, 28 Jun 2012 17:03:16 -0400 |
parents | fd09f2d8283e |
children | 24b9c7f4cae6 |
comparison
equal
deleted
inserted
replaced
6174:74533f63b116 | 6197:d2a62e0f25eb |
---|---|
31 #include "runtime/init.hpp" | 31 #include "runtime/init.hpp" |
32 #include "runtime/os.hpp" | 32 #include "runtime/os.hpp" |
33 #include "runtime/thread.hpp" | 33 #include "runtime/thread.hpp" |
34 #include "runtime/vmThread.hpp" | 34 #include "runtime/vmThread.hpp" |
35 #include "runtime/vm_operations.hpp" | 35 #include "runtime/vm_operations.hpp" |
36 #include "services/memTracker.hpp" | |
36 #include "utilities/debug.hpp" | 37 #include "utilities/debug.hpp" |
37 #include "utilities/decoder.hpp" | 38 #include "utilities/decoder.hpp" |
38 #include "utilities/defaultStream.hpp" | 39 #include "utilities/defaultStream.hpp" |
39 #include "utilities/errorReporter.hpp" | 40 #include "utilities/errorReporter.hpp" |
40 #include "utilities/events.hpp" | 41 #include "utilities/events.hpp" |
816 static bool out_done = false; // done printing to standard out | 817 static bool out_done = false; // done printing to standard out |
817 static bool log_done = false; // done saving error log | 818 static bool log_done = false; // done saving error log |
818 static bool transmit_report_done = false; // done error reporting | 819 static bool transmit_report_done = false; // done error reporting |
819 static fdStream log; // error log | 820 static fdStream log; // error log |
820 | 821 |
822 // disble NMT to avoid further exception | |
823 MemTracker::shutdown(MemTracker::NMT_error_reporting); | |
824 | |
821 if (SuppressFatalErrorMessage) { | 825 if (SuppressFatalErrorMessage) { |
822 os::abort(); | 826 os::abort(); |
823 } | 827 } |
824 jlong mytid = os::current_thread_id(); | 828 jlong mytid = os::current_thread_id(); |
825 if (first_error == NULL && | 829 if (first_error == NULL && |