[OpenJDK 2D-Dev] [14] RFR JDK-8232634: [TEST_BUG] ICMColorDataTest runs for a long time

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Mon Oct 21 19:47:46 UTC 2019


Hi, Alexey.

On 10/21/19 12:11 pm, Alexey Ivanov wrote:
> I was running this test in different configurations and found that the expected exception is thrown at 20-25 thousand iterations (32-bit). It usually takes 3-4 minutes.
> 
> If a Garbage Collector cycle is triggered, Java objects (BufferedImage) are disposed of, and native resources are freed. If it happens, the test will not throw the expected exceptions. When using 64-bit JRE, a GC is triggered after 65 thousand iterations, which takes about 30-40 minutes. I had to use SerialGC because the default G1 reclaims Java objects too fast, so that the error condition is never reached.

I am not sure that these exceptions are really "expected", the test just passes if some of them are thrown, but when I run this test on macOSx64 it is completed in 3 minutes w/o any exception(300_000 iterations were completed successfully). Why it is so slow in your environment?


-- 
Best regards, Sergey.


More information about the 2d-dev mailing list