This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcj/20699] gij -ms segfaults
- From: "Hans dot Boehm at hp dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Apr 2005 00:18:17 -0000
- Subject: [Bug libgcj/20699] gij -ms segfaults
- References: <20050331020118.20699.fitzsim@redhat.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From Hans dot Boehm at hp dot com 2005-04-08 00:18 -------
The problem here is that _Jv_InitGC is called to late, and hence
GC_all_interior_pointers is cleared after the GC has been run. This is
documented not to work in gc.h.
In particular _Jv_GCSetInitialHeapSize (which turns into GC_expand_hp) is
called earlier.
If things are always done in this order, it may make sense to have
_Jv_GCSetInitialHeapSize just set a variable, and have _Jv_InitGC do the
expansion.
I'll be travelling next week, and thus won't get a chance to generate a patch
soon.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20699