src/hotspot/share/services/memReporter.cpp
changeset 49980 57dd7b4ba338
parent 49389 9ef2eee8ca7c
child 53685 df83034c9275
equal deleted inserted replaced
49979:b70281f5146e 49980:57dd7b4ba338
   199   const char* scale = current_scale();
   199   const char* scale = current_scale();
   200   size_t committed   = MetaspaceUtils::committed_bytes(type);
   200   size_t committed   = MetaspaceUtils::committed_bytes(type);
   201   size_t used = MetaspaceUtils::used_bytes(type);
   201   size_t used = MetaspaceUtils::used_bytes(type);
   202   size_t free = (MetaspaceUtils::capacity_bytes(type) - used)
   202   size_t free = (MetaspaceUtils::capacity_bytes(type) - used)
   203               + MetaspaceUtils::free_chunks_total_bytes(type)
   203               + MetaspaceUtils::free_chunks_total_bytes(type)
   204               + MetaspaceUtils::free_bytes(type);
   204               + MetaspaceUtils::free_in_vs_bytes(type);
   205 
   205 
   206   assert(committed >= used + free, "Sanity");
   206   assert(committed >= used + free, "Sanity");
   207   size_t waste = committed - (used + free);
   207   size_t waste = committed - (used + free);
   208 
   208 
   209   out->print_cr("%27s (  %s)", " ", name);
   209   out->print_cr("%27s (  %s)", " ", name);