On 9/3/13 11:56 PM, Jaroslav Bachorik wrote:
Ok, let's go back to the basics :)
The reason for the test to fail intermittently are stale reads from the
"waiting" variable. In order to minimize the changes it seems sufficient
to make the "waiting" variable volatile to prevent the stale reads. Th
On 9/5/13 2:52 PM, Jaroslav Bachorik wrote:
On 09/04/2013 10:33 AM, Jaroslav Bachorik wrote:
On 09/04/2013 10:29 AM, David Holmes wrote:
On 4/09/2013 4:56 PM, Jaroslav Bachorik wrote:
On 09/04/2013 04:24 AM, Mandy Chung wrote:
Hi Jaroslav,
Like Daniel and David said, CyclicBarrier and other
Hi Jaroslav,
That looks like a reasonable small change if you are anxious to get that
fix out of your plate fast. I'll trust that your analysis is right and that
declaring waiting volatile is enough to fix the issue. It was certainly an
error to access 'waiting' from multiple threads without any