changeset 50811:f533eb5e7430

8205664: Move detailed metaspace logging from debug to trace Reviewed-by: stuefe, stefank
author pliden
date Wed, 27 Jun 2018 11:05:01 +0200
parents 0358dad944c7
children 0d813fbd94ed
files src/hotspot/share/memory/metaspace/chunkManager.cpp src/hotspot/share/memory/metaspace/spaceManager.cpp src/hotspot/share/memory/metaspace/virtualSpaceNode.cpp
diffstat 3 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/memory/metaspace/chunkManager.cpp	Wed Jun 27 12:56:21 2018 +0530
+++ b/src/hotspot/share/memory/metaspace/chunkManager.cpp	Wed Jun 27 11:05:01 2018 +0200
@@ -508,7 +508,7 @@
       return NULL;
     }
 
-    log_debug(gc, metaspace, alloc)("Free list allocate humongous chunk size " SIZE_FORMAT " for requested size " SIZE_FORMAT " waste " SIZE_FORMAT,
+    log_trace(gc, metaspace, alloc)("Free list allocate humongous chunk size " SIZE_FORMAT " for requested size " SIZE_FORMAT " waste " SIZE_FORMAT,
                                     chunk->word_size(), word_size, chunk->word_size() - word_size);
   }
 
@@ -550,7 +550,7 @@
   assert((word_size <= chunk->word_size()) ||
          (list_index(chunk->word_size()) == HumongousIndex),
          "Non-humongous variable sized chunk");
-  LogTarget(Debug, gc, metaspace, freelist) lt;
+  LogTarget(Trace, gc, metaspace, freelist) lt;
   if (lt.is_enabled()) {
     size_t list_count;
     if (list_index(word_size) < HumongousIndex) {
--- a/src/hotspot/share/memory/metaspace/spaceManager.cpp	Wed Jun 27 12:56:21 2018 +0530
+++ b/src/hotspot/share/memory/metaspace/spaceManager.cpp	Wed Jun 27 11:05:01 2018 +0200
@@ -152,11 +152,11 @@
          " chunk_word_size " SIZE_FORMAT,
          word_size, chunk_word_size);
   Log(gc, metaspace, alloc) log;
-  if (log.is_debug() && SpaceManager::is_humongous(word_size)) {
-    log.debug("Metadata humongous allocation:");
-    log.debug("  word_size " PTR_FORMAT, word_size);
-    log.debug("  chunk_word_size " PTR_FORMAT, chunk_word_size);
-    log.debug("    chunk overhead " PTR_FORMAT, Metachunk::overhead());
+  if (log.is_trace() && SpaceManager::is_humongous(word_size)) {
+    log.trace("Metadata humongous allocation:");
+    log.trace("  word_size " PTR_FORMAT, word_size);
+    log.trace("  chunk_word_size " PTR_FORMAT, chunk_word_size);
+    log.trace("    chunk overhead " PTR_FORMAT, Metachunk::overhead());
   }
   return chunk_word_size;
 }
@@ -390,9 +390,9 @@
   }
 
   Log(gc, metaspace, alloc) log;
-  if (log.is_debug() && next != NULL &&
+  if (log.is_trace() && next != NULL &&
       SpaceManager::is_humongous(next->word_size())) {
-    log.debug("  new humongous chunk word size " PTR_FORMAT, next->word_size());
+    log.trace("  new humongous chunk word size " PTR_FORMAT, next->word_size());
   }
 
   return next;
--- a/src/hotspot/share/memory/metaspace/virtualSpaceNode.cpp	Wed Jun 27 12:56:21 2018 +0530
+++ b/src/hotspot/share/memory/metaspace/virtualSpaceNode.cpp	Wed Jun 27 11:05:01 2018 +0200
@@ -428,7 +428,7 @@
       "The committed memory doesn't match the expanded memory.");
 
   if (!is_available(chunk_word_size)) {
-    LogTarget(Debug, gc, metaspace, freelist) lt;
+    LogTarget(Trace, gc, metaspace, freelist) lt;
     if (lt.is_enabled()) {
       LogStream ls(lt);
       ls.print("VirtualSpaceNode::take_from_committed() not available " SIZE_FORMAT " words ", chunk_word_size);