8157024: CodeCache JFR events reporting wrong data
Summary: Fix scaling
Reviewed-by: kvn
Contributed-by: patric.hedlin@oralce.com
--- a/hotspot/src/share/vm/code/codeCache.cpp Wed Jul 13 12:10:22 2016 +0200
+++ b/hotspot/src/share/vm/code/codeCache.cpp Tue Aug 30 13:53:36 2016 +0200
@@ -1305,7 +1305,7 @@
event.set_entryCount(heap->blob_count());
event.set_methodCount(heap->nmethod_count());
event.set_adaptorCount(heap->adapter_count());
- event.set_unallocatedCapacity(heap->unallocated_capacity()/K);
+ event.set_unallocatedCapacity(heap->unallocated_capacity());
event.set_fullCount(heap->full_count());
event.commit();
}