changeset 11802:8d2289c7602f

8157498: compiler/codecache/jmx/InitialAndMaxUsageTest.java times out on 32-bit platforms Reviewed-by: kvn
author dpochepk
date Fri, 05 Aug 2016 16:23:44 +0300
parents 46bf19165c57
children ca049b1e1a25
files test/compiler/codecache/jmx/InitialAndMaxUsageTest.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/compiler/codecache/jmx/InitialAndMaxUsageTest.java	Fri Aug 05 16:22:30 2016 +0300
+++ b/test/compiler/codecache/jmx/InitialAndMaxUsageTest.java	Fri Aug 05 16:23:44 2016 +0300
@@ -90,7 +90,7 @@
             Asserts.assertEQ(initialUsage, 0L, "Unexpected initial usage");
         }
         ArrayList<Long> blobs = new ArrayList<>();
-        long minAllocationUnit = Math.max(0, CodeCacheUtils.MIN_ALLOCATION - headerSize);
+        long minAllocationUnit = Math.max(1, CodeCacheUtils.MIN_ALLOCATION - headerSize);
         /* now filling code cache with large-sized allocation first, since
          lots of small allocations takes too much time, so, just a small
          optimization */