This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



------- 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


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