This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
RE: Kill a static constructor in boehm-gc
- To: "'Bryce McKinlay'" <bryce at waitaki dot otago dot ac dot nz>, "Boehm, Hans" <hans_boehm at hp dot com>
- Subject: RE: Kill a static constructor in boehm-gc
- From: "Boehm, Hans" <hans_boehm at hp dot com>
- Date: Mon, 22 Oct 2001 19:07:41 -0700
- Cc: java-patches at gcc dot gnu dot org
> -----Original Message-----
> From: Bryce McKinlay [mailto:bryce@waitaki.otago.ac.nz]
> Boehm, Hans wrote:
>
> I don't really understand the details either, but basically,
> how can the
> GC initialize - eg find the applications static data section,
> when that
> data may not have even been loaded yet? This crash occurs even with
> GC6.1a1 and glibc 2.2.4, so I dont think its a problem neccessarily
> related to shared library registration.
So preloading a shared library runs the constructors before the main program
is loaded, i.e. before all of the symbols have been resolved? It should be
OK if dynamic libararies haven't yet all been loaded.
>
> OK. Here's the patch which I'm checking in.
>
Thanks.
Hans