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

jstack: DeleteGlobalRef method call doesn't lead to descreasing of global refs count shown by jstack

    XMLWordPrintable

Details

    • b03
    • generic
    • generic

    Backports

      Description

        Test case:

        1. Create a thread and measure a number of jni global refs shown by jstack
        i.e. jstack output
        JNI global references: 629

        2. Increase the jni global refs count by calling of NewGlobalRef method 1000 times
        i.e. jstack output
        JNI global references: 1608

        3. Decrease the jni global refs count by calling of DeleteGlobalRef method 1000 times
        i.e. UNEXPECTED jstack output
        JNI global references: 1612

        The behavior is the same for all platforms/configurations and may be not a jstack's bug.

        To run existing test
        1. ssh vmsqe-b2500-02.russia
        2. cd /set/vmsqe/execution/results/adhoc/os161219_tmtools/2008-01-16_1/vm/SOLARIS-SPARC/client/mixed/vm-SOLARIS-SPARC_client_mixed_my.tmtools.testlist2008-01-16-19-52-33/ResultDir/globalrefcount/
        3. sh rerun.sh

        affected test
        tmtools/jstack/jniglobalref/globalrefcount

        Attachments

          Issue Links

            Activity

              People

                minqi Yumin Qi
                osmirnovsunw Oleg Smirnov (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: