src/share/vm/runtime/arguments.cpp

Print this page
rev 5311 : imported patch cleanup

@@ -21,10 +21,11 @@
  * questions.
  *
  */
 
 #include "precompiled.hpp"
+#include "classfile/dictionary.hpp"
 #include "classfile/javaAssertions.hpp"
 #include "classfile/symbolTable.hpp"
 #include "compiler/compilerOracle.hpp"
 #include "memory/allocation.inline.hpp"
 #include "memory/cardTableRS.hpp"

@@ -2036,10 +2037,13 @@
   // Divide by bucket size to prevent a large size from causing rollover when
   // calculating amount of memory needed to be allocated for the String table.
   status = status && verify_interval(StringTableSize, minimumStringTableSize,
     (max_uintx / StringTable::bucket_size()), "StringTable size");
 
+  status = status && verify_interval(ProtectionDomainCacheSize, minimumProtectionDomainCacheSize,
+    (max_uintx / ProtectionDomainCacheTable::bucket_size()), "ProtectionDomainCache size");
+
   if (MinHeapFreeRatio > MaxHeapFreeRatio) {
     jio_fprintf(defaultStream::error_stream(),
                 "MinHeapFreeRatio (" UINTX_FORMAT ") must be less than or "
                 "equal to MaxHeapFreeRatio (" UINTX_FORMAT ")\n",
                 MinHeapFreeRatio, MaxHeapFreeRatio);