hotspot/src/share/vm/services/virtualMemoryTracker.cpp
changeset 33127 0dfbcf8b7d7a
parent 33099 55ad1d5370f6
child 35483 d9cf65a7fd2d
--- a/hotspot/src/share/vm/services/virtualMemoryTracker.cpp	Tue Oct 06 08:05:11 2015 +0200
+++ b/hotspot/src/share/vm/services/virtualMemoryTracker.cpp	Tue Oct 06 14:27:39 2015 -0400
@@ -84,10 +84,7 @@
         return _committed_regions.insert_after(committed_rgn, node) != NULL;
       }
     }
-    // If we have reached this point, then we are trying to commit a region that overlaps with some existing committed regions.
-    remove_uncommitted_region(addr, size);
-    add_committed_region(committed_rgn);
-
+    assert(rgn->contain_region(addr, size), "Must cover this region");
     return true;
   } else {
     // New committed region