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

JVMTI: GetLoadedClasses doesn't enumerate anonymous classes

    XMLWordPrintable

Details

    • b57
    • generic
    • generic

    Backports

      Description

        These failures were spotted in the 2013-09-05 Main_Baseline nightly.

          JDK: Java(TM) SE Runtime Environment 1.8.0 b106 (1.8.0-ea-b106)
          VM: Java HotSpot(TM) 64-Bit Server VM 25.0 b49 (25.0-b49-internal-201309051228.thomas.hs-merge)

        demo/jvmti/hprof/HeapAllTest.java
        demo/jvmti/hprof/HeapBinaryFormatTest.java
        demo/jvmti/hprof/HeapDumpTest.java
        demo/jvmti/hprof/OptionsTest.java
        demo/jvmti/hprof/StackMapTableTest.java

            These tests are failing due to unexpected ERROR message seen
            in the test output.

            Here is a snippet from the .jtr file:

        Dumping Java heap ...HPROF ERROR: Missing jclass when fields needed [hprof_class.c:651]
        HPROF ERROR: Trouble with unprepared classes [hprof_reference.c:388]
        HPROF ERROR: Missing jclass when fields needed [hprof_class.c:651]
        HPROF ERROR: Trouble with unprepared classes [hprof_reference.c:388]
        HPROF ERROR: Missing jclass when fields needed [hprof_class.c:651]
        HPROF ERROR: Trouble with unprepared classes [hprof_reference.c:388]
        HPROF ERROR: Missing jclass when fields needed [hprof_class.c:651]
        HPROF ERROR: Trouble with unprepared classes [hprof_reference.c:388]
        HPROF ERROR: Missing jclass when fields needed [hprof_class.c:651]
        HPROF ERROR: Trouble with unprepared classes [hprof_reference.c:388]
         allocation sites ... done.
        Completed: /export/local/aurora/sandbox/sca/vmsqe/jdk/nightly/product/main_baseline/linux-amd64/jre/bin/java -cp /export/local/aurora/sandbox/results/workDir/classes/demo/jvmti/hprof -Dtest.classes=/export/local/aurora/sandbox/results/workDir/classes/demo/jvmti/hprof -Xcheck:jni -Xverify:all -agentlib:hprof=heap=all HelloWorld
        ----------System.err:(13/756)----------
        java.lang.RuntimeException: Test failed - ERROR seen in output
            at HeapAllTest.main(HeapAllTest.java:45)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:491)
            at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
            at java.lang.Thread.run(Thread.java:724)

        Attachments

          Issue Links

            Activity

              People

                farvidsson Fredrik Arvidsson (Inactive)
                dcubed Daniel Daugherty
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: