RFR(T) : 8195060 : vm/mlvm/anonloader/stress/byteMutation intermittently times out

Vladimir Kozlov vladimir.kozlov at oracle.com
Wed Feb 13 17:28:39 UTC 2019

Can it randomly generate infinite recursions in <clinit> method too so 
your fix would be not enough? Or only <init>?


On 2/12/19 7:20 PM, Igor Ignatyev wrote:
> http://cr.openjdk.java.net/~iignatyev/8195060/webrev.00/
>> 2 lines changed: 0 ins; 0 del; 2 mod;
> Hi all,
> could you please review this one-line patch for vmTestbase/vm/mlvm/anonloader/stress/ tests? the goal of these tests is to check that loading of anonymous classes won't lead to a crash and/or a hang, byteMutation test uses a randomly changed class file, which in some cases might lead to infinite recursions in <init> method. as the tests don't need to create an instance of loaded anonymous class to achieve their goal, the patch replaces Class::newInstance call w/ Unsafe::ensureClassInitialized to guarantee that we try to load, link and initialize classes.
> webrev: http://cr.openjdk.java.net/~iignatyev/8195060/webrev.00/
> JBS: https://bugs.openjdk.java.net/browse/JDK-8195060
> testing:
> - vmTestbase/vm/mlvm/anonloader/stress/ tests
> - manually verified that the tests still can fail by running w/ Xverify:none
> Thanks,
> -- Igor

More information about the hotspot-compiler-dev mailing list