This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcj/13212] JNI/CNI AttachCurrentThread does not register thread with garbage collector
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jan 2006 17:41:04 -0000
- Subject: [Bug libgcj/13212] JNI/CNI AttachCurrentThread does not register thread with garbage collector
- References: <bug-13212-7355@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #22 from jakub at gcc dot gnu dot org 2006-01-09 17:41 -------
Just FYI, dlsym (RTLD_NEXT, "pthread_create") is wrong when using glibc.
pthread_create is symbol versioned and there are on most arches 2 different
pthread_create implementations. By using dlsym (RTLD_NEXT, "pthread_create")
you will use the glibc 2.0 compatible one, which will have seriously bad
side-effects. On x86_64 you are lucky because it has just the newer version.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13212