8157024: CodeCache JFR events reporting wrong data
authorneliasso
Tue, 30 Aug 2016 13:53:36 +0200
changeset 41056 8b4c1a429e5d
parent 41055 f9014f1e7dfc
child 41058 92d8f53e6419
8157024: CodeCache JFR events reporting wrong data Summary: Fix scaling Reviewed-by: kvn Contributed-by: patric.hedlin@oralce.com
hotspot/src/share/vm/code/codeCache.cpp
--- 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();
   }