hotspot/src/share/vm/memory/metaspaceCounters.cpp
changeset 19979 ebe1dbb6e1aa
parent 19322 e35f9ed4f081
child 19988 2b100c528806
equal deleted inserted replaced
19766:b6d8784a1037 19979:ebe1dbb6e1aa
   107            MetaspaceAux::free_bytes(_class_type) +
   107            MetaspaceAux::free_bytes(_class_type) +
   108            MetaspaceAux::free_chunks_total_in_bytes(_class_type);
   108            MetaspaceAux::free_chunks_total_in_bytes(_class_type);
   109 }
   109 }
   110 
   110 
   111 void CompressedClassSpaceCounters::update_performance_counters() {
   111 void CompressedClassSpaceCounters::update_performance_counters() {
   112   if (UsePerfData && UseCompressedKlassPointers) {
   112   if (UsePerfData && UseCompressedClassPointers) {
   113     assert(_perf_counters != NULL, "Should be initialized");
   113     assert(_perf_counters != NULL, "Should be initialized");
   114 
   114 
   115     size_t capacity = calculate_capacity();
   115     size_t capacity = calculate_capacity();
   116     size_t max_capacity = MetaspaceAux::reserved_in_bytes(_class_type);
   116     size_t max_capacity = MetaspaceAux::reserved_in_bytes(_class_type);
   117     size_t used = MetaspaceAux::allocated_used_bytes(_class_type);
   117     size_t used = MetaspaceAux::allocated_used_bytes(_class_type);
   123 void CompressedClassSpaceCounters::initialize_performance_counters() {
   123 void CompressedClassSpaceCounters::initialize_performance_counters() {
   124   if (UsePerfData) {
   124   if (UsePerfData) {
   125     assert(_perf_counters == NULL, "Should only be initialized once");
   125     assert(_perf_counters == NULL, "Should only be initialized once");
   126     const char* ns = "compressedclassspace";
   126     const char* ns = "compressedclassspace";
   127 
   127 
   128     if (UseCompressedKlassPointers) {
   128     if (UseCompressedClassPointers) {
   129       size_t min_capacity = MetaspaceAux::min_chunk_size();
   129       size_t min_capacity = MetaspaceAux::min_chunk_size();
   130       size_t capacity = calculate_capacity();
   130       size_t capacity = calculate_capacity();
   131       size_t max_capacity = MetaspaceAux::reserved_in_bytes(_class_type);
   131       size_t max_capacity = MetaspaceAux::reserved_in_bytes(_class_type);
   132       size_t used = MetaspaceAux::allocated_used_bytes(_class_type);
   132       size_t used = MetaspaceAux::allocated_used_bytes(_class_type);
   133 
   133