[11] RFR(XS) 8202152: test/hotspot/jtreg/runtime/whitebox/WBStackSize.java fails

Vladimir Kozlov vladimir.kozlov at oracle.com
Mon Apr 23 19:20:52 UTC 2018


http://cr.openjdk.java.net/~kvn/8202152/webrev.00/
https://bugs.openjdk.java.net/browse/JDK-8202152

After 8198756 changes compiler threads could be released and other Java 
threads can re-use the same HW threads for which stack size was 
determined during start. The test WBStackSize.java may fail in such 
cases because Java thread stack size is set and checked in test.
For 8198756 changes we added thread name check to workaround the problem 
[1]. But it seems is not enough.

To avoid this issue I added -XX:CompilerThreadStackSize=512 flag to 
match Java thread stack size (note, size is in Kb for this flag).
I also reverted changes in test code and instead added thread name print 
to know in case we still have problem in a future.

Tier1 testing (which run the test) passed.

-- 
Thanks,
Vladimir

[1] http://hg.openjdk.java.net/jdk/jdk/rev/fcd5df7aa235#l6.1


More information about the hotspot-dev mailing list