Mercurial > hg > truffle
comparison src/share/vm/memory/metaspaceCounters.hpp @ 12355:cefad50507d8
Merge with hs25-b53
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Fri, 11 Oct 2013 10:38:03 +0200 |
parents | 73d0d0218068 |
children | de6a9e811145 |
comparison
equal
deleted
inserted
replaced
12058:ccb4f2af2319 | 12355:cefad50507d8 |
---|---|
23 */ | 23 */ |
24 | 24 |
25 #ifndef SHARE_VM_MEMORY_METASPACECOUNTERS_HPP | 25 #ifndef SHARE_VM_MEMORY_METASPACECOUNTERS_HPP |
26 #define SHARE_VM_MEMORY_METASPACECOUNTERS_HPP | 26 #define SHARE_VM_MEMORY_METASPACECOUNTERS_HPP |
27 | 27 |
28 #include "runtime/perfData.hpp" | 28 #include "memory/allocation.hpp" |
29 | 29 |
30 class MetaspaceCounters: public CHeapObj<mtClass> { | 30 class MetaspacePerfCounters; |
31 friend class VMStructs; | 31 |
32 PerfVariable* _capacity; | 32 class MetaspaceCounters: public AllStatic { |
33 PerfVariable* _used; | 33 static MetaspacePerfCounters* _perf_counters; |
34 PerfVariable* _max_capacity; | 34 static size_t used(); |
35 static MetaspaceCounters* _metaspace_counters; | 35 static size_t capacity(); |
36 void initialize(size_t min_capacity, | 36 static size_t max_capacity(); |
37 size_t max_capacity, | 37 |
38 size_t curr_capacity, | |
39 size_t used); | |
40 size_t calc_total_capacity(); | |
41 public: | 38 public: |
42 MetaspaceCounters(); | |
43 ~MetaspaceCounters(); | |
44 | |
45 void update_capacity(); | |
46 void update_used(); | |
47 void update_max_capacity(); | |
48 | |
49 void update_all(); | |
50 | |
51 static void initialize_performance_counters(); | 39 static void initialize_performance_counters(); |
52 static void update_performance_counters(); | 40 static void update_performance_counters(); |
41 }; | |
53 | 42 |
43 class CompressedClassSpaceCounters: public AllStatic { | |
44 static MetaspacePerfCounters* _perf_counters; | |
45 static size_t used(); | |
46 static size_t capacity(); | |
47 static size_t max_capacity(); | |
48 | |
49 public: | |
50 static void initialize_performance_counters(); | |
51 static void update_performance_counters(); | |
54 }; | 52 }; |
53 | |
55 #endif // SHARE_VM_MEMORY_METASPACECOUNTERS_HPP | 54 #endif // SHARE_VM_MEMORY_METASPACECOUNTERS_HPP |