src/hotspot/share/memory/metaspace.cpp
changeset 50372 7a013fbf6fc3
parent 50309 37ebfe8bac7f
child 50380 bec342339138
equal deleted inserted replaced
50371:72d0baab31bc 50372:7a013fbf6fc3
  1268 
  1268 
  1269 void Metaspace::report_metadata_oome(ClassLoaderData* loader_data, size_t word_size, MetaspaceObj::Type type, MetadataType mdtype, TRAPS) {
  1269 void Metaspace::report_metadata_oome(ClassLoaderData* loader_data, size_t word_size, MetaspaceObj::Type type, MetadataType mdtype, TRAPS) {
  1270   tracer()->report_metadata_oom(loader_data, word_size, type, mdtype);
  1270   tracer()->report_metadata_oom(loader_data, word_size, type, mdtype);
  1271 
  1271 
  1272   // If result is still null, we are out of memory.
  1272   // If result is still null, we are out of memory.
  1273   Log(gc, metaspace, freelist) log;
  1273   Log(gc, metaspace, freelist, oom) log;
  1274   if (log.is_info()) {
  1274   if (log.is_info()) {
  1275     log.info("Metaspace (%s) allocation failed for size " SIZE_FORMAT,
  1275     log.info("Metaspace (%s) allocation failed for size " SIZE_FORMAT,
  1276              is_class_space_allocation(mdtype) ? "class" : "data", word_size);
  1276              is_class_space_allocation(mdtype) ? "class" : "data", word_size);
  1277     ResourceMark rm;
  1277     ResourceMark rm;
  1278     if (log.is_debug()) {
  1278     if (log.is_debug()) {