mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +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
|
@ -43,7 +43,7 @@
|
|||
|
||||
|
||||
MutableNUMASpace::MutableNUMASpace(size_t alignment) : MutableSpace(alignment) {
|
||||
_lgrp_spaces = new (ResourceObj::C_HEAP) GrowableArray<LGRPSpace*>(0, true);
|
||||
_lgrp_spaces = new (ResourceObj::C_HEAP, mtGC) GrowableArray<LGRPSpace*>(0, true);
|
||||
_page_size = os::vm_page_size();
|
||||
_adaptation_cycles = 0;
|
||||
_samples_count = 0;
|
||||
|
@ -231,7 +231,7 @@ bool MutableNUMASpace::update_layout(bool force) {
|
|||
if (force || changed) {
|
||||
// Compute lgrp intersection. Add/remove spaces.
|
||||
int lgrp_limit = (int)os::numa_get_groups_num();
|
||||
int *lgrp_ids = NEW_C_HEAP_ARRAY(int, lgrp_limit);
|
||||
int *lgrp_ids = NEW_C_HEAP_ARRAY(int, lgrp_limit, mtGC);
|
||||
int lgrp_num = (int)os::numa_get_leaf_groups(lgrp_ids, lgrp_limit);
|
||||
assert(lgrp_num > 0, "There should be at least one locality group");
|
||||
// Add new spaces for the new nodes
|
||||
|
@ -265,7 +265,7 @@ bool MutableNUMASpace::update_layout(bool force) {
|
|||
}
|
||||
}
|
||||
|
||||
FREE_C_HEAP_ARRAY(int, lgrp_ids);
|
||||
FREE_C_HEAP_ARRAY(int, lgrp_ids, mtGC);
|
||||
|
||||
if (changed) {
|
||||
for (JavaThread *thread = Threads::first(); thread; thread = thread->next()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue