Patch: FYI: small test suite change
Mark Wielaard
mark@klomp.org
Wed Jul 9 21:38:00 GMT 2003
Hi,
On Wed, 2003-07-09 at 22:57, Tom Tromey wrote:
> Anyway, this makes one of the tests a little more efficient, so we
> don't time out when running it in the interpreter.
>
> from Jeff Sturm <jsturm@one-point.com>
>
> * libjava.lang/SyncTest.java (run): Cache .class value.
This test has been very important in the past since it showed two
problems:
1. That .class constructs were not cached at all.
2. That when doing a class lookup (and stack walk) using the interpreter
was horribly slow (which seem to have been fixed in 3.4).
Combined these problems made SyncTest fail on a lot of machines (and it
still fails on my slow powerpc box).
I agree that the purpose of SyncTest shouldn't be to test whether or not
the compiler generates (efficient) code to correctly cache .class
constructs. But shouldn't there now be a test that does explicitly test
this? That test can then probably XFAIL since gcj -C does indeed not
cache .class constructs (jikes for example does this correctly).
Cheers,
Mark
More information about the Java-patches
mailing list