From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16887 invoked by alias); 1 Sep 2006 16:16:28 -0000 Received: (qmail 16856 invoked by alias); 1 Sep 2006 16:16:27 -0000 Date: Fri, 01 Sep 2006 16:16:00 -0000 Message-ID: <20060901161627.16855.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/msg00261.txt.bz2 List-Id: ------- Comment #38 from tromey at gcc dot gnu dot org 2006-09-01 16:16 ------- Subject: Bug 13212 Author: tromey Date: Fri Sep 1 16:16:15 2006 New Revision: 116631 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116631 Log: PR libgcj/28698: * libgcj_bc.c (DECLARE_PRIM_TYPE): New macro. Declare primitive classes. 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. gcc/java/ChangeLog * jvspec.c (lang_specific_driver): Add -s-bc-abi when needed. libjava/ChangeLog * configure, Makefile.in: Rebuilt. * Makefile.am (toolexeclib_LTLIBRARIES): Add libgcj_bc.la. (libgcj_bc_la_SOURCES): New variable. (libgcj_bc_la_LDFLAGS): Likewise. (libgcj_bc_la_LIBADD): Likewise. (libgcj_bc_la_DEPENDENCIES): Likewise. (libgcj_bc_la_LINK): Likewise. (libgcj_bc_dummy_LINK): Likewise. (libgcj_bc.la): New target. (install-exec-hook): Likewise. * libgcj.spec.in (*lib): Use LIBGCJ_SPEC. * libgcj_bc.c: New file. * configure.ac (LIBGCJ_SPEC): New subst. * configure.host (use_libgcj_bc): New variable. Added: branches/gcj-eclipse/libjava/libgcj_bc.c - copied, changed from r116204, trunk/libjava/libgcj_bc.c Modified: branches/gcj-eclipse/boehm-gc/ChangeLog branches/gcj-eclipse/boehm-gc/configure branches/gcj-eclipse/boehm-gc/configure.ac branches/gcj-eclipse/boehm-gc/dyn_load.c branches/gcj-eclipse/boehm-gc/include/gc.h branches/gcj-eclipse/boehm-gc/include/gc_config.h.in branches/gcj-eclipse/boehm-gc/include/gc_ext_config.h.in branches/gcj-eclipse/boehm-gc/include/gc_pthread_redirects.h branches/gcj-eclipse/boehm-gc/include/private/pthread_support.h branches/gcj-eclipse/boehm-gc/misc.c branches/gcj-eclipse/boehm-gc/os_dep.c branches/gcj-eclipse/boehm-gc/pthread_stop_world.c branches/gcj-eclipse/boehm-gc/pthread_support.c branches/gcj-eclipse/gcc/java/ChangeLog branches/gcj-eclipse/gcc/java/jvspec.c branches/gcj-eclipse/libjava/ChangeLog branches/gcj-eclipse/libjava/Makefile.am branches/gcj-eclipse/libjava/Makefile.in branches/gcj-eclipse/libjava/boehm.cc branches/gcj-eclipse/libjava/configure branches/gcj-eclipse/libjava/configure.ac branches/gcj-eclipse/libjava/configure.host branches/gcj-eclipse/libjava/gcj/Makefile.in branches/gcj-eclipse/libjava/include/Makefile.in branches/gcj-eclipse/libjava/include/boehm-gc.h branches/gcj-eclipse/libjava/java/lang/natThread.cc branches/gcj-eclipse/libjava/libgcj.spec.in branches/gcj-eclipse/libjava/testsuite/Makefile.in -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13212