This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/12755] Binary Compatibility: Resolving static methods and classes is not thread safe
- From: "aph at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 May 2004 15:52:29 -0000
- Subject: [Bug java/12755] Binary Compatibility: Resolving static methods and classes is not thread safe
- References: <20031024131706.12755.aph@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From aph at gcc dot gnu dot org 2004-05-06 15:52 -------
We need to study the Java Language Spec, look at the order in which things are
supposed to be done, and do that.
I think the initialization of the otable and otable needs to be done at the same
time as constant pool resolution. We need to reorganize libgcj to do that.
Also, there is a kludge on the gcj-abi-2-dev-branch where we handle the
condition where we load an intepreted class but it hasn't been resolved.
_Jv_Defer_Resolution() in java_interp.h does the work. It would be excellent to
fix things so that this evil is no longer necessary.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12755