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: "arno at heho dot snv dot jussieu dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Oct 2005 20:58:24 -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 #13 from arno at heho dot snv dot jussieu dot fr 2005-10-22 20:58 -------
Shouldn't part of boehm-gc .h and config files be installed and picked up by
#include <gcj/cni.h> ?
Especially boehm-gc doc says pthread_create (and some other thread-functions)
should not be called directly, but rather by including gc.h, which redefines
them.
And those redefinitions depend on values from gc_config.h (especially
GC_<arch>_THREADS).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13212