Mercurial > hg > truffle
diff src/share/vm/memory/metaspaceCounters.hpp @ 12248:73d0d0218068
8024718: Metaspace performance counters and memory pools should report the same data
Reviewed-by: stefank, dholmes, coleenp
author | ehelin |
---|---|
date | Tue, 17 Sep 2013 20:59:07 +0200 |
parents | 1a8fb39bdbc4 |
children | de6a9e811145 |
line wrap: on
line diff
--- a/src/share/vm/memory/metaspaceCounters.hpp Wed Sep 18 00:08:00 2013 +0000 +++ b/src/share/vm/memory/metaspaceCounters.hpp Tue Sep 17 20:59:07 2013 +0200 @@ -25,13 +25,15 @@ #ifndef SHARE_VM_MEMORY_METASPACECOUNTERS_HPP #define SHARE_VM_MEMORY_METASPACECOUNTERS_HPP -#include "memory/metaspace.hpp" +#include "memory/allocation.hpp" class MetaspacePerfCounters; class MetaspaceCounters: public AllStatic { static MetaspacePerfCounters* _perf_counters; - static size_t calculate_capacity(); + static size_t used(); + static size_t capacity(); + static size_t max_capacity(); public: static void initialize_performance_counters(); @@ -40,8 +42,9 @@ class CompressedClassSpaceCounters: public AllStatic { static MetaspacePerfCounters* _perf_counters; - static size_t calculate_capacity(); - static const Metaspace::MetadataType _class_type = Metaspace::ClassType; + static size_t used(); + static size_t capacity(); + static size_t max_capacity(); public: static void initialize_performance_counters();