src/hotspot/share/memory/metaspace.cpp
changeset 49402 64156c70746c
parent 49401 0c71baee49a7
child 49405 e88237c5ac83
--- 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();
     }
   }
 }