Re: AssertionError on barrier addWaiter
das888 <[email protected]> Thu, 20 Feb 2020 01:54:11 -0700 (MST)
| Newsgroups | gmane.comp.java.grinder.user |
|---|---|
| Message-ID | <[email protected]> |
--===============7570510686385642661==
Content-Type: multipart/alternative;
boundary="----=_Part_492121_1748930123.1582188851331"
------=_Part_492121_1748930123.1582188851331
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
As per code snippet: when number of total waiting threads reached to the
barriers it throws assertion error.
--
Sent from: http://grinder.996249.n3.nabble.com/Grinder-User-f3.html
------=_Part_492121_1748930123.1582188851331
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
As per code snippet:
<pre>
@Override public void addWaiter(BarrierIdentity barrierIdentity)
throws CommunicationException {
synchronized (this) {
checkValid();
if (m_barriers == 0) {
throw new IllegalStateException("Can't add waiter, no barriers");
}
if (m_waiters.size() >= m_barriers) {
throw new AssertionError(toString());
}
m_waiters.add(barrierIdentity);
}
}</pre>
when number of total waiting threads reached to the barriers it throws assertion error.
<br/><hr align="left" width="300" />
Sent from the <a href="http://grinder.996249.n3.nabble.com/Grinder-User-f3.html">Grinder - User mailing list archive</a> at Nabble.com.<br/>
------=_Part_492121_1748930123.1582188851331--
--===============7570510686385642661==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--===============7570510686385642661==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
grinder-use mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/grinder-use
--===============7570510686385642661==--