changeset 11962:25478ff8e163

8157024: CodeCache JFR events reporting wrong data Summary: Fix scaling Reviewed-by: kvn Contributed-by: patric.hedlin@oralce.com
author neliasso
date Tue, 30 Aug 2016 13:53:36 +0200
parents 091f0dd7aac0
children b9cc59087cde
files src/share/vm/code/codeCache.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/code/codeCache.cpp	Wed Jul 13 12:10:22 2016 +0200
+++ b/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();
   }