[Bug libgcj/13212] JNI/CNI AttachCurrentThread does not register thread with garbage collector

rguenth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Mar 24 15:35:00 GMT 2006



------- Comment #27 from rguenth at gcc dot gnu dot org  2006-03-24 15:35 -------
Created an attachment (id=11115)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11115&action=view)
patch fixing OO problems with LD_PRELOAD of libgcj

One problem with LD_PRELOADing of libgcj.so is that boehm starts with
GC_all_interior_pointers == 1 and libgcj sets it to 0 after startup, so we
segfault because in GC_bl_init we did not properly initialize GC_old_normal_bl.

Changing the boehm default config and exporting pthread_create with the glibc
versioning makes OO work with LD_PRELOADing of libgcj.so.  This is what the
patch does.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13212



More information about the Java-prs mailing list