Calling java code from C/C++ code.

Bryce McKinlay bryce@waitaki.otago.ac.nz
Fri Mar 2 18:14:00 GMT 2001


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 ]


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /