Skip to content

Commit 548118c

Browse files
committed
Revert "Include heap sizes in the CodeCache heap names"
This reverts commit 961448a.
1 parent 961448a commit 548118c

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

src/hotspot/share/code/codeCache.cpp

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -322,24 +322,18 @@ void CodeCache::initialize_heaps() {
322322
ReservedSpace profiled_space = rs.partition(offset, profiled.size);
323323
offset += profiled.size;
324324
// Tier 2 and tier 3 (profiled) methods
325-
stringStream profiled_name;
326-
profiled_name.print("CodeHeap 'profiled nmethods' (%zu)", profiled.size);
327-
add_heap(profiled_space, profiled_name.as_string(), CodeBlobType::MethodProfiled);
325+
add_heap(profiled_space, "CodeHeap 'profiled nmethods'", CodeBlobType::MethodProfiled);
328326
}
329327

330328
ReservedSpace non_method_space = rs.partition(offset, non_nmethod.size);
331329
offset += non_nmethod.size;
332330
// Non-nmethods (stubs, adapters, ...)
333-
stringStream non_nmethod_name;
334-
non_nmethod_name.print("CodeHeap 'non-nmethods' (%zu)", non_nmethod.size);
335-
add_heap(non_method_space, non_nmethod_name.as_string(), CodeBlobType::NonNMethod);
331+
add_heap(non_method_space, "CodeHeap 'non-nmethods'", CodeBlobType::NonNMethod);
336332

337333
if (non_profiled.enabled) {
338334
ReservedSpace non_profiled_space = rs.partition(offset, non_profiled.size);
339335
// Tier 1 and tier 4 (non-profiled) methods and native methods
340-
stringStream non_profiled_name;
341-
non_profiled_name.print("CodeHeap 'non-profiled nmethods' (%zu)", non_profiled.size);
342-
add_heap(non_profiled_space, non_profiled_name.as_string(), CodeBlobType::MethodNonProfiled);
336+
add_heap(non_profiled_space, "CodeHeap 'non-profiled nmethods'", CodeBlobType::MethodNonProfiled);
343337
}
344338
}
345339

0 commit comments

Comments
 (0)