mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 18:14:38 +02:00
6995781: Native Memory Tracking (Phase 1)
7151532: DCmd for hotspot native memory tracking Implementation of native memory tracking phase 1, which tracks VM native memory usage, and related DCmd Reviewed-by: acorn, coleenp, fparain
This commit is contained in:
parent
8e42425c92
commit
a39b17624a
315 changed files with 7245 additions and 1477 deletions
|
@ -48,6 +48,7 @@
|
|||
#include "runtime/stubRoutines.hpp"
|
||||
#include "runtime/sweeper.hpp"
|
||||
#include "runtime/synchronizer.hpp"
|
||||
#include "services/memTracker.hpp"
|
||||
#include "services/runtimeService.hpp"
|
||||
#include "utilities/events.hpp"
|
||||
#ifdef TARGET_ARCH_x86
|
||||
|
@ -546,6 +547,10 @@ void SafepointSynchronize::do_cleanup_tasks() {
|
|||
if (UseGCLogFileRotation) {
|
||||
gclog_or_tty->rotate_log();
|
||||
}
|
||||
|
||||
if (MemTracker::is_on()) {
|
||||
MemTracker::sync();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -1157,7 +1162,7 @@ void SafepointSynchronize::deferred_initialize_stat() {
|
|||
stats_array_size = PrintSafepointStatisticsCount;
|
||||
}
|
||||
_safepoint_stats = (SafepointStats*)os::malloc(stats_array_size
|
||||
* sizeof(SafepointStats));
|
||||
* sizeof(SafepointStats), mtInternal);
|
||||
guarantee(_safepoint_stats != NULL,
|
||||
"not enough memory for safepoint instrumentation data");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue