hotspot/src/share/vm/services/virtualMemoryTracker.cpp
changeset 31345 1bba15125d8d
parent 27162 0a4a7276949b
child 33099 55ad1d5370f6
--- a/hotspot/src/share/vm/services/virtualMemoryTracker.cpp	Fri Jun 12 12:55:32 2015 +0200
+++ b/hotspot/src/share/vm/services/virtualMemoryTracker.cpp	Fri Jun 12 17:29:14 2015 -0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -347,6 +347,13 @@
         return true;
       }
 
+      // Mapped CDS string region.
+      // The string region(s) is part of the java heap.
+      if (reserved_rgn->flag() == mtJavaHeap) {
+        assert(reserved_rgn->contain_region(base_addr, size), "Reserved heap region should contain this mapping region");
+        return true;
+      }
+
       ShouldNotReachHere();
       return false;
     }