--- a/hotspot/src/share/vm/code/codeCache.cpp Tue Jun 30 15:26:20 2015 -0700
+++ b/hotspot/src/share/vm/code/codeCache.cpp Wed Jul 01 10:53:26 2015 +0200
@@ -409,7 +409,7 @@
}
if (PrintCodeCacheExtension) {
ResourceMark rm;
- if (SegmentedCodeCache) {
+ if (_heaps->length() >= 1) {
tty->print("%s", heap->name());
} else {
tty->print("CodeCache");
@@ -1211,7 +1211,7 @@
int i = 0;
FOR_ALL_HEAPS(heap) {
- if (SegmentedCodeCache && Verbose) {
+ if ((_heaps->length() >= 1) && Verbose) {
tty->print_cr("-- %s --", (*heap)->name());
}
FOR_ALL_BLOBS(cb, *heap) {
@@ -1360,7 +1360,7 @@
FOR_ALL_HEAPS(heap_iterator) {
CodeHeap* heap = (*heap_iterator);
size_t total = (heap->high_boundary() - heap->low_boundary());
- if (SegmentedCodeCache) {
+ if (_heaps->length() >= 1) {
st->print("%s:", heap->name());
} else {
st->print("CodeCache:");