JDK-6545975 : assert(count == i,"Did not find the expected number of pending Java threads")
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2007-04-13
  • Updated: 2012-10-08
  • Resolved: 2007-04-24
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7 Other
6u4Fixed 7Fixed hs10Fixed
Related Reports
Relates :  
Description
These failures started happening in the 2007.04.12 nightly.
Here are my analysis report entries:

New nsk.quick_jdi failures (from 2007.04.12)
*   nsk/jdi/ObjectReference/waitingThreads/waitingthreads002
        This test failed the following assertion:

            Internal Error (src/share/vm/runtime/thread.cpp:3632)
            Error: assert(count == i,"Did not find the expected number
            of pending Java threads")

        on Linux AMD64 Server VM (machine jck-amd1). This assertion
        also failed with nsk/jvmti/scenarios/contention/TC04/tc04t001
        below.

New nsk.jvmti failures (from 2007.04.07)
*   nsk/jvmti/scenarios/contention/TC04/tc04t001
        This test failed due to the wrong # of MonitorContendedEnter
        and MonitorContendedEntered events on Solaris SPARC-64 Server
        VM (machine aditi).

        Update: Serguei believes this failure is due to a test bug:
            6544714 4/4 nsk/jvmti/scenarios/contention/TC04/tc04t001:
                        unsync'ed update of agent's static counters

        Update: In the 2007.04.12 nightly, this test failed the
            following assertion:

                Internal Error (src/share/vm/runtime/thread.cpp:3632)
                Error: assert(count == i,"Did not find the expected number
                of pending Java threads")

            on Linux AMD64 Server VM (machine john), Solaris AMD64
            Server VM (machine vm-x4100-01), Solaris SPARC-64 Server VM
            (machine jtg-s129), Linux IA32 Client VM (machine
            opteron003), Linux IA32 Server VM (machine pacmanjr),
            Solaris SPARC Client VM (machine barkhesh), Solaris SPARC
            Server VM (machine kalieda), Solaris X86 Client VM (machine
            tattoinevm), and Solaris X86 Server VM (machine colfax004)

Comments
SUGGESTED FIX Here is the context diff: ------- src/share/vm/runtime/thread.cpp ------- *** /tmp/geta25461 Fri Apr 13 15:38:45 2007 --- /tmp/getb25461 Fri Apr 13 15:38:45 2007 *************** *** 3629,3635 **** } } } - assert(count == i, "Did not find the expected number of pending Java threads"); return result; } --- 3629,3634 ----
13-04-2007

EVALUATION Steve confirms that the assert should be removed.
13-04-2007