This is the mail archive of the
mailing list for the Mauve project.
Re: New java.lang.Thread tests
- From: Mark Wielaard <mark at klomp dot org>
- To: mauve-discuss at sources dot redhat dot com
- Date: 06 Oct 2002 00:03:53 +0200
- Subject: Re: New java.lang.Thread tests
- References: <1033840111.29748.540.camel@elsschot>
On Sat, 2002-10-05 at 19:48, Mark Wielaard wrote:
> I added a couple of tests for java.lang.Thread but all VMs that I tried
> have some different errors.
I made a couple of changes and added some small corner case tests. The
most important change was that I split the tests for started, running
and stopped Threads which makes the tests more deterministic.
Another was to not hold a synchronized lock on the Thread object that
you are trying to join() with. That solved the Kissme and gij lockup.
But I think that you should be able to join() a Thread that you (or
someone else!) has a lock on. What do you think?
I also got gcj 3.3 CVS finally to compile. It is much improved compared
to 3.2 and passes all 94 tests (except one for which I have a trivial
patch). Yeah! Now the other VMs may try to compete with that :)
P.S. Yes, I know that the tests could be buggy and that gcj might have
the same bugs. Could very well be because I studied the libgcj source
code (and GNU Classpath source code) before writing the tests. But if
you think so please let the list know so we can interpret the specs to
improve the tests.