RFR(S) : 8199265 : java/util/Arrays/TimSortStackSize2.java fails with OOM
igor.ignatyev at oracle.com
Wed Jun 27 01:14:16 UTC 2018
> 10 lines changed: 0 ins; 2 del; 8 mod;
could you please review another attempt to make TimSortStackSize2 more robust?
8190679 changed the test to set both Xmx and Xms to avoid failures caused by Xmx being smaller than Xms (when Xmx is specified as external vm flag). it appears that current values of heap size might not be enough in some cases, therefore setting Xmx equal to Xms leads to OOM.
The proposed fix sets Xmx two times more than Xms, this should be enough for the test to pass and also ensures that Xmx is always bigger than Xms (since the test specific flags are appended, external Xms/Xmx flags will be ignored).
testing: java/util/Arrays/TimSortStackSize2.java multiple times on different platforms
More information about the hotspot-dev