This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Calling java code from C/C++ code.
- To: twall at oculustech dot com
- Subject: Re: Calling java code from C/C++ code.
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- Date: Sat, 03 Mar 2001 15:22:55 +1300
- CC: Bryce McKinlay <bryce at albatross dot co dot nz>, tromey at redhat dot com, java at gcc dot gnu dot org
- References: <3A9BE61C.3F2936FC@cygnus.com> <87u25grna6.fsf@creche.redhat.com> <3A9BFC3A.800ADB7C@oculustech.com> <3A9C18C6.DA0EF9E4@albatross.co.nz> <3A9FF5C5.9BC6DB6F@oculustech.com> <3AA00B3A.EB219691@albatross.co.nz> <3AA04FE6.73E154D@oculustech.com>
Timothy Wall wrote:
> Here's the result, with the patch, and GC_dump output.
Are you sure you applied the patch correctly? From your stack trace, it looks like static
initializers are still being run in natClass.cc:
> #9 0x403260b7 in _Z17_Jv_makeUtf8ConstPci (s=0x40467398 "()V", len=3)
> at ../../../gcc/libjava/prims.cc:252
> #10 0x4034048a in __static_initialization_and_destruction_0 (__initialize_p=1,
> __priority=65535) at ../../../gcc/libjava/java/lang/natClass.cc:70
> #11 0x403404b2 in global constructors keyed to
> _ZN4java4lang5Class7forNameEPNS0_6StringEPNS0_11ClassLoaderE ()
> at ../../../gcc/libjava/java/lang/natClass.cc:316
> #12 0x404605c7 in __do_global_ctors_aux ()
> at ../../../../gcc/libstdc++-v3/libsupc++/vec.cc:59
regards
[ bryce ]