122 |
122 |
123 // Note: since we want to purely rely on counters, without any locking or walking the CLDG, |
123 // Note: since we want to purely rely on counters, without any locking or walking the CLDG, |
124 // for Usage stats (statistics over in-use chunks) all we can print is the |
124 // for Usage stats (statistics over in-use chunks) all we can print is the |
125 // used words. We cannot print committed areas, or free/waste areas, of in-use chunks require |
125 // used words. We cannot print committed areas, or free/waste areas, of in-use chunks require |
126 // walking. |
126 // walking. |
127 const size_t used_nc = MetaspaceUtils::used_words(metaspace::NonClassType); |
127 const size_t used_nc = MetaspaceUtils::used_words(Metaspace::NonClassType); |
128 |
128 |
129 print_scaled_words(out, used_nc, scale, 5); |
129 print_scaled_words(out, used_nc, scale, 5); |
130 out->print(" used."); |
130 out->print(" used."); |
131 out->cr(); |
131 out->cr(); |
132 |
132 |
133 if (Metaspace::using_class_space()) { |
133 if (Metaspace::using_class_space()) { |
134 const size_t used_c = MetaspaceUtils::used_words(metaspace::ClassType); |
134 const size_t used_c = MetaspaceUtils::used_words(Metaspace::ClassType); |
135 out->print(" Class: "); |
135 out->print(" Class: "); |
136 print_scaled_words(out, used_c, scale, 5); |
136 print_scaled_words(out, used_c, scale, 5); |
137 out->print(" used."); |
137 out->print(" used."); |
138 out->cr(); |
138 out->cr(); |
139 |
139 |