< prev index next >

src/hotspot/share/gc/z/zStat.cpp

Print this page
rev 60538 : imported patch jep387-misc.patch


1158   }
1159   print("Large", _stats.large());
1160 
1161   log_info(gc, reloc)("Relocation: %s", _success ? "Successful" : "Incomplete");
1162 }
1163 
1164 //
1165 // Stat nmethods
1166 //
1167 void ZStatNMethods::print() {
1168   log_info(gc, nmethod)("NMethods: " SIZE_FORMAT " registered, " SIZE_FORMAT " unregistered",
1169                         ZNMethodTable::registered_nmethods(),
1170                         ZNMethodTable::unregistered_nmethods());
1171 }
1172 
1173 //
1174 // Stat metaspace
1175 //
1176 void ZStatMetaspace::print() {
1177   log_info(gc, metaspace)("Metaspace: "
1178                           SIZE_FORMAT "M used, " SIZE_FORMAT "M capacity, "
1179                           SIZE_FORMAT "M committed, " SIZE_FORMAT "M reserved",
1180                           MetaspaceUtils::used_bytes() / M,
1181                           MetaspaceUtils::capacity_bytes() / M,
1182                           MetaspaceUtils::committed_bytes() / M,
1183                           MetaspaceUtils::reserved_bytes() / M);
1184 }
1185 
1186 //
1187 // Stat references
1188 //
1189 ZStatReferences::ZCount ZStatReferences::_soft;
1190 ZStatReferences::ZCount ZStatReferences::_weak;
1191 ZStatReferences::ZCount ZStatReferences::_final;
1192 ZStatReferences::ZCount ZStatReferences::_phantom;
1193 
1194 void ZStatReferences::set(ZCount* count, size_t encountered, size_t discovered, size_t enqueued) {
1195   count->encountered = encountered;
1196   count->discovered = discovered;
1197   count->enqueued = enqueued;
1198 }
1199 
1200 void ZStatReferences::set_soft(size_t encountered, size_t discovered, size_t enqueued) {
1201   set(&_soft, encountered, discovered, enqueued);




1158   }
1159   print("Large", _stats.large());
1160 
1161   log_info(gc, reloc)("Relocation: %s", _success ? "Successful" : "Incomplete");
1162 }
1163 
1164 //
1165 // Stat nmethods
1166 //
1167 void ZStatNMethods::print() {
1168   log_info(gc, nmethod)("NMethods: " SIZE_FORMAT " registered, " SIZE_FORMAT " unregistered",
1169                         ZNMethodTable::registered_nmethods(),
1170                         ZNMethodTable::unregistered_nmethods());
1171 }
1172 
1173 //
1174 // Stat metaspace
1175 //
1176 void ZStatMetaspace::print() {
1177   log_info(gc, metaspace)("Metaspace: "
1178                           SIZE_FORMAT "M used, "
1179                           SIZE_FORMAT "M committed, " SIZE_FORMAT "M reserved",
1180                           MetaspaceUtils::used_bytes() / M,

1181                           MetaspaceUtils::committed_bytes() / M,
1182                           MetaspaceUtils::reserved_bytes() / M);
1183 }
1184 
1185 //
1186 // Stat references
1187 //
1188 ZStatReferences::ZCount ZStatReferences::_soft;
1189 ZStatReferences::ZCount ZStatReferences::_weak;
1190 ZStatReferences::ZCount ZStatReferences::_final;
1191 ZStatReferences::ZCount ZStatReferences::_phantom;
1192 
1193 void ZStatReferences::set(ZCount* count, size_t encountered, size_t discovered, size_t enqueued) {
1194   count->encountered = encountered;
1195   count->discovered = discovered;
1196   count->enqueued = enqueued;
1197 }
1198 
1199 void ZStatReferences::set_soft(size_t encountered, size_t discovered, size_t enqueued) {
1200   set(&_soft, encountered, discovered, enqueued);


< prev index next >