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.


> -----Original Message-----
> From: Timothy Wall [mailto:twall@oculustech.com]
> (gdb) p GC_dump()
> ***Static roots:
> From 0x0 to 0x804a1d8
> 
...
There's the problem.  The collector thinks that static data for the main
program starts at location 0, and hence it's trying to scan memory from 0x0
to 0x804a1d8.  Most of that isn't mapped.

I assume your gcj installation works with a simple 100% Java program?  This
is Linux/X86?  Which distribution?

Does the garbage collector itself get loaded with a dlopen?  Does that
affect processing of the weak references to __data_start and data_start?

Hans



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