This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Java: fixing PR #172, 173, 174, 176 and 178. Other improvements.
- To: per at bothner dot com, egcs-patches at egcs dot cygnus dot com
- Subject: Re: [PATCH] Java: fixing PR #172, 173, 174, 176 and 178. Other improvements.
- From: Alexandre Petit-Bianco <apbianco at cygnus dot com>
- Date: Tue, 28 Mar 2000 17:54:24 -0800 (PST)
- References: <200003230656.WAA14680@deliverance.cygnus.com><m28zz2d0dn.fsf@kelso.bothner.com>
- Reply-To: apbianco at redhat dot com
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