8199432: metaspace: fix wrong comment and condition in SpaceManager::verify()
authorstuefe
Thu, 15 Mar 2018 07:20:32 +0100
changeset 49402 64156c70746c
parent 49401 0c71baee49a7
child 49403 58fdb6c2a274
8199432: metaspace: fix wrong comment and condition in SpaceManager::verify() Reviewed-by: coleenp
src/hotspot/share/memory/metaspace.cpp
--- a/src/hotspot/share/memory/metaspace.cpp	Thu Mar 15 07:15:39 2018 +0100
+++ b/src/hotspot/share/memory/metaspace.cpp	Thu Mar 15 07:20:32 2018 +0100
@@ -3711,17 +3711,12 @@
 }
 
 void SpaceManager::verify() {
-  // If there are blocks in the dictionary, then
-  // verification of chunks does not work since
-  // being in the dictionary alters a chunk.
-  if (block_freelists() != NULL && block_freelists()->total_size() == 0) {
-    for (ChunkIndex i = ZeroIndex; i < NumberOfInUseLists; i = next_chunk_index(i)) {
-      Metachunk* curr = chunks_in_use(i);
-      while (curr != NULL) {
-        DEBUG_ONLY(do_verify_chunk(curr);)
-        assert(curr->is_tagged_free() == false, "Chunk should be tagged as in use.");
-        curr = curr->next();
-      }
+  for (ChunkIndex i = ZeroIndex; i < NumberOfInUseLists; i = next_chunk_index(i)) {
+    Metachunk* curr = chunks_in_use(i);
+    while (curr != NULL) {
+      DEBUG_ONLY(do_verify_chunk(curr);)
+      assert(curr->is_tagged_free() == false, "Chunk should be tagged as in use.");
+      curr = curr->next();
     }
   }
 }