Gregory Steuck wrote:
>>>>>>"Peter" == Peter Royal <[EMAIL PROTECTED]> writes:
>>>>>>
> 
>     Peter> I've attached a simple test to illustrate the problem. It
>     Peter> takes a single
> 
>     Peter> argument which is the number of elements to queue up,
>     Peter> 1000000 is a good start to expose the error.
> 
> As far as I can tell there is a bug in method add in rev 1.2-1.4 of
> VariableSizeBuffer. The way it handles array growth is not right when
> (m_tail < m_head). Buffer ends up containing a bunch of nulls that
> were never put there. I will try to produce a test case and a fix
> tomorrow unless somebody beats me to it...
> 
> And I could also reproduce Peter's results with current CVS code.
> 
> Starting test
> Test complete
> Enqueue: 1000000
> Dequeue: 950846

Question:  Do you have actual multiprocessor systems to test on?
This is one of my main limitations.

My machine passes the test--1000000 in 1000000 out.

I am running JDK 1.4


-- 

"They that give up essential liberty to obtain a little temporary safety
  deserve neither liberty nor safety."
                 - Benjamin Franklin


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to