GCJ: Trouble with static initialization

Tom Tromey tromey@redhat.com
Wed Jul 16 15:19:00 GMT 2003


Jeff> I'm not aware of any gcj bugs in this area, aside from possible
Jeff> race conditions on a multiprocessor.
There was one bug in this area not too long ago, fixed here:
2003年03月11日 Tom Tromey <tromey@redhat.com>
	* parse.y (resolve_field_access): Initialize class if field is
	found in another static field.
	* expr.c (build_class_init): Don't optimize out initialization of
	implemented interface.
This bug was found when building the eclipse java compiler.
I wouldn't rule out the possibility that there are others.
However, this crash was deterministic and debugging showed it to be
lack of correct class initialization pretty quickly.
The current problem's indeterminacy seems to point to something else.
Craig, the most helpful thing would be to have a small test case.
Another useful thing would be to try it on a known-stable platform,
like x86 Linux. That might help narrow the problem down a little.
Tom


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /