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



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