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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [BC ABI] For entertainment purposes only: gcj-JIT


>>>>> "Andrew" == Andrew Haley <aph@redhat.com> writes:

Andrew>   /* FIXME: The gcj runtime is broken in that atable references to
Andrew>      static fields in interpreted classes aren't fixed up until too
Andrew>      late.  When this is fixed we can re-enable this code.  */

Andrew> .. this is all to do with the time whan we do resolution, as we
Andrew> discussed before.  Somehow we need to defer resolving the references
Andrew> to data until they're used.

[ just thought I'd get this in the archives ]

This might be the bug I'm hitting when I compile swt.jar.

It occurs to me that before we can reference a static field, we must
initialize the target class.  What if at these places we call a
special (new) function that both initializes the target class and
updates all atable references to static fields of that class?

Tom


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