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

Igor Ignatyev igor.ignatyev at oracle.com
Wed Feb 13 03:20:43 UTC 2019

> 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
- vmTestbase/vm/mlvm/anonloader/stress/ tests
- manually verified that the tests still can fail by running w/ Xverify:none

-- Igor

More information about the hotspot-compiler-dev mailing list