# HG changeset patch # User dpochepk # Date 1470403424 -10800 # Node ID 4290f5dfad35ada6bfe2a724a877ed6d426ea34b # Parent 03bdcc357e10e4bb42b81f0e3490aa1602a2b34f 8157498: compiler/codecache/jmx/InitialAndMaxUsageTest.java times out on 32-bit platforms Reviewed-by: kvn diff -r 03bdcc357e10 -r 4290f5dfad35 hotspot/test/compiler/codecache/jmx/InitialAndMaxUsageTest.java --- a/hotspot/test/compiler/codecache/jmx/InitialAndMaxUsageTest.java Fri Aug 05 16:22:30 2016 +0300 +++ b/hotspot/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 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 */