< prev index next >

test/hotspot/jtreg/runtime/cds/SharedSymbolTableBucketSize.java

Print this page
@@ -83,13 +83,13 @@
              throw new Exception("FAILED: pattern \"" + pattern + "\" not found");
          }
  
          Float f = Float.parseFloat(s);
          int size = Math.round(f);
-         if (size != bucket_size) {
+         if (size != bucket_size && size != bucket_size + 1) {
              throw new Exception("FAILED: incorrect bucket size " + size +
-                                 ", expect " + bucket_size);
+                                 ", expect " + bucket_size + ", or " + (bucket_size + 1));
          }
  
          // Invalid SharedSymbolTableBucketSize input
          String input[] = {"-XX:SharedSymbolTableBucketSize=-1",
                            "-XX:SharedSymbolTableBucketSize=2.5"};
< prev index next >