From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22465 invoked by alias); 9 Jan 2006 17:41:04 -0000 Received: (qmail 22438 invoked by uid 48); 9 Jan 2006 17:41:02 -0000 Date: Mon, 09 Jan 2006 17:41:00 -0000 Message-ID: <20060109174102.22437.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libgcj/13212] JNI/CNI AttachCurrentThread does not register thread with garbage collector In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: java-prs@gcc.gnu.org From: "jakub at gcc dot gnu dot org" Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org X-SW-Source: 2006-q1/txt/msg00030.txt.bz2 List-Id: ------- 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