[PATCH] Java: fixing PR #172, 173, 174, 176 and 178. Other improvements.

Alexandre Petit-Bianco apbianco@cygnus.com
Tue Mar 28 17:54:00 GMT 2000


Per Bothner writes:

> I assume this is only when generating byte-code?  I.e. when
> generating native code, gc1 generates a direct reference to the
> sttaic Class object?

Yes. I had the class$ thing in mind when I was hacking on the 1.1
stuff but forgot about it and then it turned out it was necessary to
internally build some of the classpath code, hence the late
implementation.

The implementation is far from being optimal. Sun's JDK tries to cache
already computed values in synthetic fields, we don't. This can be
added later on, but I don't think it's a critical issue for now.

./A


More information about the Gcc-patches mailing list