United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6545975 assert(count == i,"Did not find the expected number of pending Java threads")
6545975 : assert(count == i,"Did not find the expected number of pending Java threads")

Details
Type:
Bug
Submit Date:
2007-04-13
Status:
Closed
Updated Date:
2012-10-08
Project Name:
JDK
Resolved Date:
2007-04-24
Component:
hotspot
OS:
generic
Sub-Component:
runtime
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
hs10

Related Reports
Backport:
Backport:
Relates:

Sub Tasks

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
EVALUATION

Steve confirms that the assert should be removed.
                                     
2007-04-13
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 ----
                                     
2007-04-13



Hardware and Software, Engineered to Work Together