--- old/src/hotspot/share/code/codeCache.cpp 2018-03-01 18:09:40.930398000 +0100 +++ new/src/hotspot/share/code/codeCache.cpp 2018-03-01 18:09:40.649396000 +0100 @@ -1639,3 +1639,54 @@ blob_count(), nmethod_count(), adapter_count(), unallocated_capacity()); } + +//---< BEGIN >--- 8198691: CodeHeap State Analytics. + +void CodeCache::aggregate(outputStream *out, const char* granularity) { + FOR_ALL_HEAPS(heap) { + (*heap)->aggregate(out, granularity); + } +} + +void CodeCache::discard(outputStream *out) { + FOR_ALL_HEAPS(heap) { + (*heap)->discard(out); + } +} + +void CodeCache::print_usedSpace(outputStream *out) { + FOR_ALL_HEAPS(heap) { + (*heap)->print_usedSpace(out); + } +} + +void CodeCache::print_freeSpace(outputStream *out) { + FOR_ALL_HEAPS(heap) { + (*heap)->print_freeSpace(out); + } +} + +void CodeCache::print_count(outputStream *out) { + FOR_ALL_HEAPS(heap) { + (*heap)->print_count(out); + } +} + +void CodeCache::print_space(outputStream *out) { + FOR_ALL_HEAPS(heap) { + (*heap)->print_space(out); + } +} + +void CodeCache::print_age(outputStream *out) { + FOR_ALL_HEAPS(heap) { + (*heap)->print_age(out); + } +} + +void CodeCache::print_names(outputStream *out) { + FOR_ALL_HEAPS(heap) { + (*heap)->print_names(out); + } +} +//---< END >--- 8198691: CodeHeap State Analytics.