This is the mail archive of the java@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]

Re: Calling java code from C/C++ code.


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 ]



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