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

[TESTBUG] Missing DefineClass instances

XMLWordPrintable

    • b159

        Test: hotspot/test/runtime/Metaspace/DefineClass.java

        ----------System.out:(9/661)----------
        sizeof(DefineClass.class) == 9056
        class test.DefineClass
        Index Super InstBytes KlassBytes annotations CpAll MethodCount Bytecodes MethodAll ROAll RWAll Total ClassName
         1594 65 0 296 0 3676 12 1382 3372 3448 4172 7620 test.DefineClass
        Should have 2 DefineClass instances and we have: 1
        System.gc()
        Index Super InstBytes KlassBytes annotations CpAll MethodCount Bytecodes MethodAll ROAll RWAll Total ClassName
         1735 64 0 296 0 3676 12 1382 3372 3448 4172 7620 test.DefineClass
        Should have 2 DefineClass instances and we have: 1
        ----------System.err:(14/953)----------
        java.lang.RuntimeException: Should have 2 DefineClass instances and we have: 1
        at test.DefineClass.printClassStats(DefineClass.java:246)
        at test.DefineClass.main(DefineClass.java:277)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:543)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
        at java.base/java.lang.Thread.run(Thread.java:844)

              simonis Volker Simonis
              jwilhelm Jesper Wilhelmsson
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: