This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]