This is the mail archive of the java-patches@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: new test case


Tom Tromey wrote:
>>>>> "Anthony" == Anthony Green <green@cygnus.com> writes:

Anthony> BTW - I'm looking at why Thread_1 is failing.

I think Thread_1 is buggy.  The last time I looked at it seriously, I
noticed it had race conditions.  Simply deleting it might be the most
reasonable approach.

The expected output is wrong. "active count" should be 0, there is no race in that part due to the join. However the JOIN_TIMEOUT part of the test has an obvious race.

It would be a shame to not have any thread tests in the test suite. Perhaps we should fix & clean up Thread_1, and extend it to cover more stuff (like more interrupt() corner cases).

regards

  [ bryce ]
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]