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

HPROF: reported heap dump still contains some unknown GC roots


    • Subcomponent:
    • CPU:
      generic, sparc
    • OS:
      generic, solaris_7


      Name: egR10015 Date: 03/12/2002

      Hprof agent shipped with HotSpot 1.4.1-b04 fails to pass the following test


      from testbase_nsk on all platforms. Some GC roots in heap dump in generated
      profile are still not recognized by the agent.

      The mentioned test is a regression one written to cover the following bug:

      4462993 GC roots not recognized by hprof

      This bug has been closed as fixed verified. However, the described issue was
      not completely fixed: now reported heap dump has no records like follows:

      ROOT 106d80 (kind=<system class>, name=<Unknown>)
      ROOT 204578 (kind=<unknown>)

      as expected, but it still contains some records with unknown GC roots like

      ROOT 0 (kind=<thread>, id=0, trace=263)
      ROOT 0 (kind=<JNI global ref>, id=9fa20, trace=0)

      Note that HotSpot 1.4.0-b92 also fails to pass the test, and Classic VM 1.2.2
      successfully recognizes all GC roots.

      To reproduce the bug run with HS1.4.1

      sh doit.sh $JAVA_HOME

      in /net/sqesvr.sfbay/export/vsn/GammaBase/Bugs/<this bug number>

      where JAVA_HOME should point to jdk1.4.1

      The profiling information is written out to the file b4462993.hprof.out.

      ------------------ output on SolSparc with HS 1.4.1-b04: --------------------
      $ sh doit.sh ~/hotspot/jdk1.4.1/solsparc
      java version "1.4.1-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-beta-b04)
      Java HotSpot(TM) Client VM (build 1.4.1-beta-b04, mixed mode)

      Executing the test ...
      Dumping Java heap ... done.

      TEST FAILED: the following unknown GC roots were found in heap dump:
              ROOT 0 (kind=<thread>, id=0, trace=263)
              ROOT 0 (kind=<JNI global ref>, id=9fa20, trace=0)
              ROOT 0 (kind=<JNI global ref>, id=9fa24, trace=0)
      exit code = 97

      -------------------- output on SolSparc with HS 1.2.2-W: --------------------
      $ sh doit.sh ~/hotspot/jdk1.2.2/solsparc
      java version "1.2.2"
      Classic VM (build JDK-1.2.2-W, green threads, sunwjit)

      Executing the test ...
      Dumping Java heap ... done.
      exit code = 95

      The test b4462993 will be available in release r13 of the testbase_nsk.




            • Assignee:
              eugsunw Eug Eug (Inactive)
            • Votes:
              0 Vote for this issue
              4 Start watching this issue


              • Created: