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

jdk/jfr/event/runtime/TestClassLoaderStatsEvent.java Value not equal to 2, field='hiddenClassCount', value='0'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 19
    • 19
    • hotspot
    • jfr
    • b34

    Backports

      Description

        Test
        jdk/jfr/event/runtime/TestClassLoaderStatsEvent.java
        fails with
        Value not equal to 2, field='hiddenClassCount', value='0'

        log:
        Hello
        Event:jdk.ClassLoaderStatistics {
          startTime = 11:01:31.294 (2022-07-05)
          classLoader = jdk.internal.loader.ClassLoaders$PlatformClassLoader (id = 2)
          parentClassLoader = N/A
          classLoaderData = 0x7F74801C8B40
          classCount = 108
          chunkSize = 64.3 kB
          blockSize = 62.6 kB
          hiddenClassCount = 0
          hiddenChunkSize = 0 bytes
          hiddenBlockSize = 0 bytes
        }


        Event:jdk.ClassLoaderStatistics {
          startTime = 11:01:31.294 (2022-07-05)
          classLoader = N/A
          parentClassLoader = N/A
          classLoaderData = 0x7F7480063950
          classCount = 1836
          chunkSize = 704.0 kB
          blockSize = 615.1 kB
          hiddenClassCount = 90
          hiddenChunkSize = 34.1 kB
          hiddenBlockSize = 22.0 kB
        }


        Event:jdk.ClassLoaderStatistics {
          startTime = 11:01:31.294 (2022-07-05)
          classLoader = jdk.jfr.event.runtime.TestClassLoaderStatsEvent$DummyClassLoader (id = 4)
          parentClassLoader = jdk.internal.loader.ClassLoaders$AppClassLoader (id = 3)
          classLoaderData = 0x7F744C008500
          classCount = 2
          chunkSize = 768 bytes
          blockSize = 567 bytes
          hiddenClassCount = 0
          hiddenChunkSize = 0 bytes
          hiddenBlockSize = 0 bytes
        }


        Error: Value not equal to 2, field='hiddenClassCount', value='0': expected 0 to equal 2
        Failed event:
        jdk.ClassLoaderStatistics {
          startTime = 11:01:31.294 (2022-07-05)
          classLoader = jdk.jfr.event.runtime.TestClassLoaderStatsEvent$DummyClassLoader (id = 4)
          parentClassLoader = jdk.internal.loader.ClassLoaders$AppClassLoader (id = 3)
          classLoaderData = 0x7F744C008500
          classCount = 2
          chunkSize = 768 bytes
          blockSize = 567 bytes
          hiddenClassCount = 0
          hiddenChunkSize = 0 bytes
          hiddenBlockSize = 0 bytes
        }


        ----------System.err:(16/1133)----------
        java.lang.RuntimeException: Value not equal to 2, field='hiddenClassCount', value='0': expected 0 to equal 2
        at jdk.test.lib.Asserts.fail(Asserts.java:594)
        at jdk.test.lib.Asserts.assertEquals(Asserts.java:205)
        at jdk.test.lib.jfr.EventField.lambda$equal$0(EventField.java:52)
        at jdk.test.lib.jfr.EventField.doAssert(EventField.java:116)
        at jdk.test.lib.jfr.EventField.equal(EventField.java:52)
        at jdk.jfr.event.runtime.TestClassLoaderStatsEvent.main(TestClassLoaderStatsEvent.java:83)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:578)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.base/java.lang.Thread.run(Thread.java:1596)

        JavaTest Message: Test threw exception: java.lang.RuntimeException: Value not equal to 2, field='hiddenClassCount', value='0': expected 0 to equal 2
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Value not equal to 2, field='hiddenClassCount', value='0': expected 0 to equal 2
        ----------rerun:(32/2329)*----------

        Attachments

          Issue Links

            Activity

              People

                egahlin Erik Gahlin
                lmesnik Leonid Mesnik
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: