Calling java code from C/C++ code.

Bryce McKinlay bryce@albatross.co.nz
Tue Feb 27 14:01:00 GMT 2001


Tom Tromey wrote:
> >>>>> "Bryce" == Bryce McKinlay <bryce@albatross.co.nz> writes:
>> Bryce> So, I wrote a patch to remove all the static initializers from
> Bryce> libgcj. It still didn't allow me to profile (There seems to be
> Bryce> another problem. I can profile the GC, and arbitrary Java
> Bryce> .so's, but not libgcj itself. Weird.)
>> I thought gcj also generated static initializers that call
> _Jv_RegisterClass. Maybe this could account for your problem?

It does, but with the patch, _Jv_RegisterClass doesn't do anything that
might result in an allocation.
regards
 [ bryce ]


More information about the Java mailing list

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