mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8046598: Scalable Native memory tracking development
Enhance scalability of native memory tracking Reviewed-by: coleenp, ctornqvi, gtriantafill
This commit is contained in:
parent
40b035d141
commit
f0cf82f571
72 changed files with 5166 additions and 6109 deletions
|
@ -57,7 +57,6 @@
|
|||
#include "runtime/thread.inline.hpp"
|
||||
#include "runtime/timer.hpp"
|
||||
#include "runtime/vm_operations.hpp"
|
||||
#include "services/memReporter.hpp"
|
||||
#include "services/memTracker.hpp"
|
||||
#include "trace/tracing.hpp"
|
||||
#include "utilities/dtrace.hpp"
|
||||
|
@ -349,12 +348,7 @@ void print_statistics() {
|
|||
#endif // ENABLE_ZAP_DEAD_LOCALS
|
||||
// Native memory tracking data
|
||||
if (PrintNMTStatistics) {
|
||||
if (MemTracker::is_on()) {
|
||||
BaselineTTYOutputer outputer(tty);
|
||||
MemTracker::print_memory_usage(outputer, K, false);
|
||||
} else {
|
||||
tty->print_cr("%s", MemTracker::reason());
|
||||
}
|
||||
MemTracker::final_report(tty);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -390,12 +384,7 @@ void print_statistics() {
|
|||
|
||||
// Native memory tracking data
|
||||
if (PrintNMTStatistics) {
|
||||
if (MemTracker::is_on()) {
|
||||
BaselineTTYOutputer outputer(tty);
|
||||
MemTracker::print_memory_usage(outputer, K, false);
|
||||
} else {
|
||||
tty->print_cr("%s", MemTracker::reason());
|
||||
}
|
||||
MemTracker::final_report(tty);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -544,10 +533,6 @@ void before_exit(JavaThread * thread) {
|
|||
BeforeExit_lock->notify_all();
|
||||
}
|
||||
|
||||
// Shutdown NMT before exit. Otherwise,
|
||||
// it will run into trouble when system destroys static variables.
|
||||
MemTracker::shutdown(MemTracker::NMT_normal);
|
||||
|
||||
if (VerifyStringTableAtExit) {
|
||||
int fail_cnt = 0;
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue