@@ -79,7 +79,7 @@ void MemReporterBase::print_malloc(const MemoryCounter* c, MemTag mem_tag) const
79
79
const size_t count = c->count ();
80
80
81
81
if (mem_tag != mtNone) {
82
- out->print (" (%s%zu%s type =%s" , alloc_type,
82
+ out->print (" (%s%zu%s tag =%s" , alloc_type,
83
83
amount_in_current_scale (amount), scale, NMTUtil::tag_to_name (mem_tag));
84
84
} else {
85
85
out->print (" (%s%zu%s" , alloc_type,
@@ -181,14 +181,14 @@ void MemSummaryReporter::report() {
181
181
MemTag mem_tag = NMTUtil::index_to_tag (index );
182
182
// thread stack is reported as part of thread category
183
183
if (mem_tag == mtThreadStack) continue ;
184
- MallocMemory* malloc_memory = _malloc_snapshot->by_type (mem_tag);
185
- VirtualMemory* virtual_memory = _vm_snapshot->by_type (mem_tag);
184
+ MallocMemory* malloc_memory = _malloc_snapshot->by_tag (mem_tag);
185
+ VirtualMemory* virtual_memory = _vm_snapshot->by_tag (mem_tag);
186
186
187
- report_summary_of_type (mem_tag, malloc_memory, virtual_memory);
187
+ report_summary_of_tag (mem_tag, malloc_memory, virtual_memory);
188
188
}
189
189
}
190
190
191
- void MemSummaryReporter::report_summary_of_type (MemTag mem_tag,
191
+ void MemSummaryReporter::report_summary_of_tag (MemTag mem_tag,
192
192
MallocMemory* malloc_memory, VirtualMemory* virtual_memory) {
193
193
194
194
size_t reserved_amount = reserved_total (malloc_memory, virtual_memory);
@@ -197,7 +197,7 @@ void MemSummaryReporter::report_summary_of_type(MemTag mem_tag,
197
197
// Count thread's native stack in "Thread" category
198
198
if (mem_tag == mtThread) {
199
199
const VirtualMemory* thread_stack_usage =
200
- (const VirtualMemory*)_vm_snapshot->by_type (mtThreadStack);
200
+ (const VirtualMemory*)_vm_snapshot->by_tag (mtThreadStack);
201
201
reserved_amount += thread_stack_usage->reserved ();
202
202
committed_amount += thread_stack_usage->committed ();
203
203
} else if (mem_tag == mtNMT) {
@@ -239,7 +239,7 @@ void MemSummaryReporter::report_summary_of_type(MemTag mem_tag,
239
239
_instance_class_count, _array_class_count);
240
240
} else if (mem_tag == mtThread) {
241
241
const VirtualMemory* thread_stack_usage =
242
- _vm_snapshot->by_type (mtThreadStack);
242
+ _vm_snapshot->by_tag (mtThreadStack);
243
243
// report thread count
244
244
out->print_cr (" (threads #%zu)" , ThreadStackTracker::thread_count ());
245
245
out->print (" (stack: " );
@@ -380,7 +380,7 @@ int MemDetailReporter::report_virtual_memory_allocation_sites() {
380
380
print_total (virtual_memory_site->reserved (), virtual_memory_site->committed ());
381
381
const MemTag mem_tag = virtual_memory_site->mem_tag ();
382
382
if (mem_tag != mtNone) {
383
- out->print (" Type =%s" , NMTUtil::tag_to_name (mem_tag));
383
+ out->print (" Tag =%s" , NMTUtil::tag_to_name (mem_tag));
384
384
}
385
385
out->print_cr (" )" );
386
386
)
@@ -524,7 +524,7 @@ void MemSummaryDiffReporter::report_diff() {
524
524
MemTag mem_tag = NMTUtil::index_to_tag (index );
525
525
// thread stack is reported as part of thread category
526
526
if (mem_tag == mtThreadStack) continue ;
527
- diff_summary_of_type (mem_tag,
527
+ diff_summary_of_tag (mem_tag,
528
528
_early_baseline.malloc_memory (mem_tag),
529
529
_early_baseline.virtual_memory (mem_tag),
530
530
_early_baseline.metaspace_stats (),
@@ -594,7 +594,7 @@ void MemSummaryDiffReporter::print_virtual_memory_diff(size_t current_reserved,
594
594
}
595
595
596
596
597
- void MemSummaryDiffReporter::diff_summary_of_type (MemTag mem_tag,
597
+ void MemSummaryDiffReporter::diff_summary_of_tag (MemTag mem_tag,
598
598
const MallocMemory* early_malloc, const VirtualMemory* early_vm,
599
599
const MetaspaceCombinedStats& early_ms,
600
600
const MallocMemory* current_malloc, const VirtualMemory* current_vm,
@@ -795,8 +795,8 @@ void MemDetailDiffReporter::report_diff() {
795
795
}
796
796
797
797
void MemDetailDiffReporter::diff_malloc_sites () const {
798
- MallocSiteIterator early_itr = _early_baseline.malloc_sites (MemBaseline::by_site_and_type );
799
- MallocSiteIterator current_itr = _current_baseline.malloc_sites (MemBaseline::by_site_and_type );
798
+ MallocSiteIterator early_itr = _early_baseline.malloc_sites (MemBaseline::by_site_and_tag );
799
+ MallocSiteIterator current_itr = _current_baseline.malloc_sites (MemBaseline::by_site_and_tag );
800
800
801
801
const MallocSite* early_site = early_itr.next ();
802
802
const MallocSite* current_site = current_itr.next ();
0 commit comments