RFR(S): 8195731: [Graal] runtime/SharedArchiveFile/serviceability/transformRelatedClasses/TransformSuperSubTwoPckgs.java intermittently fails with Graal JIT
Tobias Hartmann
tobias.hartmann at oracle.com
Thu Feb 1 10:53:43 UTC 2018
Hi,
please review the following patch:
https://bugs.openjdk.java.net/browse/JDK-8195731
http://cr.openjdk.java.net/~thartmann/8195731/webrev.00/
The TransformSuperSubTwoPckgs test fails with Graal because JVMCI initialization (or Graal compilation) is triggered in
SimpleTransformer::transform() which then triggers class loading of the to-be-transformed class, resulting in a
ClassCircularityError (see JDK-8164165 [1]) which is ignored. Most transformations fail silently, including the expected
transformation of the test classes.
I've added code that catches and reports exceptions in transform() similar to what we do in
runtime/RedefineTests/RedefineAnnotations.java to avoid silently failing transformations. The problem of Graal
interfering with class transformations will be gone once we move to Substrate VM so we should not execute these test
with Graal for now.
Thanks,
Tobias
[1] https://bugs.openjdk.java.net/browse/JDK-8164165
More information about the hotspot-dev
mailing list