Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8077620

[TESTBUG] Some of the hotspot tests require at least compact profile 3

    Details

    • Subcomponent:
    • Resolved In Build:
      b18
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        The test compiler/jsr292/RedefineMethodUsedByMultipleMethodHandles.java fails with:

        ----------System.err:(32/1911)----------
        java.lang.NoClassDefFoundError: java/lang/instrument/ClassFileTransformer
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at RedefineMethodUsedByMultipleMethodHandles.redefineFoo(RedefineMethodUsedByMultipleMethodHandles.java:103)
        at RedefineMethodUsedByMultipleMethodHandles.main(RedefineMethodUsedByMultipleMethodHandles.java:68)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
        at java.lang.Thread.run(Unknown Source)
        Caused by: java.lang.ClassNotFoundException: java.lang.instrument.ClassFileTransformer
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 20 more

        The test compiler/rangechecks/TestRangeCheckSmearing.java fails with:

        java.lang.NoClassDefFoundError: sun/management/ManagementFactoryHelper
        at CompilerWhiteBoxTest.getVMOption(CompilerWhiteBoxTest.java:102)
        at CompilerWhiteBoxTest.getVMOption(CompilerWhiteBoxTest.java:122)
        at CompilerWhiteBoxTest.<clinit>(CompilerWhiteBoxTest.java:62)
        at TestRangeCheckSmearing.doTest(TestRangeCheckSmearing.java:367)
        at TestRangeCheckSmearing.doTests(TestRangeCheckSmearing.java:414)
        at TestRangeCheckSmearing.main(TestRangeCheckSmearing.java:320)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
        at java.lang.Thread.run(Unknown Source)
        Caused by: java.lang.ClassNotFoundException: sun.management.ManagementFactoryHelper
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 12 more

        Affected compact profiles 1 and 2.

        [UPD] Adding more tests:
        closed/serviceability/commercialfeatures/TestJcmdHelpCommercialFeatures.java
        closed/serviceability/commercialfeatures/TestJcmdUnlockCommercialFeatures.java
        gc/TestGCLogRotationViaJcmd.java
        serviceability/sa/jmap-hashcode/Test8028623.java

        The tests above require at least compact profile 3.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dkononenko Denis Kononenko (Inactive)
                  Reporter:
                  dkononenko Denis Kononenko (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: