[Bug libgcj/13212] JNI/CNI AttachCurrentThread does not register thread with garbage collector
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Jan 9 17:41:00 GMT 2006
------- 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
More information about the Gcc-bugs
mailing list