From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22995 invoked by alias); 21 Aug 2006 22:07:45 -0000 Received: (qmail 22970 invoked by alias); 21 Aug 2006 22:07:43 -0000 Date: Mon, 21 Aug 2006 22:07:00 -0000 Message-ID: <20060821220743.22969.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: "tromey 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-q3/txt/msg00219.txt.bz2 List-Id: ------- Comment #36 from tromey at gcc dot gnu dot org 2006-08-21 22:07 ------- Subject: Bug 13212 Author: tromey Date: Mon Aug 21 22:07:30 2006 New Revision: 116313 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116313 Log: boehm-gc PR libgcj/13212: * configure.ac: Check for pthread_getattr_np(). Remove GC_PTHREAD_SYM_VERSION detection. * include/gc.h (GC_register_my_thread, GC_unregister_my_thread, GC_get_thread_stack_base): New declarations. * pthread_support.c (GC_register_my_thread, GC_unregister_my_thread, GC_get_thread_stack_base): New functions. (GC_delete_thread): Don't try to free the first_thread. * misc.c (GC_init_inner): Use GC_get_thread_stack_base() if possible. (pthread_create_, constr): Removed. (pthread_create): Don't rename. * include/gc_ext_config.h.in: Rebuilt. * include/gc_pthread_redirects.h (pthread_create): Define unconditionally. * include/gc_config.h.in: Rebuilt. * configure: Rebuilt. libjava * java/lang/natThread.cc (_Jv_AttachCurrentThread): Attach thread to GC. (_Jv_DetachCurrentThread): Detach thread from GC. * include/boehm-gc.h (_Jv_GCAttachThread, _Jv_GCDetachThread): Declare. * boehm.cc (_Jv_GCAttachThread): New function. (_Jv_GCDetachThread): Likewise. Modified: trunk/boehm-gc/ChangeLog trunk/boehm-gc/configure trunk/boehm-gc/configure.ac trunk/boehm-gc/include/gc.h trunk/boehm-gc/include/gc_config.h.in trunk/boehm-gc/include/gc_ext_config.h.in trunk/boehm-gc/include/gc_pthread_redirects.h trunk/boehm-gc/misc.c trunk/boehm-gc/pthread_support.c trunk/libjava/ChangeLog trunk/libjava/boehm.cc trunk/libjava/include/boehm-gc.h trunk/libjava/java/lang/natThread.cc -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13212