changeset 49407:64156c70746c

8199432: metaspace: fix wrong comment and condition in SpaceManager::verify() Reviewed-by: coleenp
author stuefe
date Thu, 15 Mar 2018 07:20:32 +0100
parents 0c71baee49a7
children 58fdb6c2a274
files src/hotspot/share/memory/metaspace.cpp
diffstat 1 files changed, 6 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- 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();
     }
   }
 }