aboutsummaryrefslogtreecommitdiff
path: root/boehm-gc/pthread_support.c
AgeCommit message (Collapse)AuthorFilesLines
2007-10-11re PR boehm-gc/33442 (1938 unexpected fails in libjava testsuite)John David Anglin1-1/+1
PR boehm-gc/33442 * pthread_support.c (GC_PTR GC_get_thread_stack_base): If stack grows up, return stack_addr instead of stack_addr - stack_size. From-SVN: r129224
2007-07-02re PR boehm-gc/21940 (boehm-gc gctest fails on Solaris 10/x86)Rainer Orth1-1/+2
PR boehm-gc/21940 PR boehm-gc/21942 * configure.ac (GC_SOLARIS_THREADS): Don't define on *-*-solaris*. Use alternate thread library in /usr/lib/lwp. * configure: Regenerate. * dyn_load.c: Use GC_SOLARIS_PTHREADS. * include/gc_config_macros.h (GC_SOLARIS_THREADS): Don't define. * include/private/gcconfig.h: Handle 64-bit Solaris 2/x86. (GC_SOLARIS_THREADS): Don't define. * include/private/solaris_threads.h: Remove. * pthread_support.c (GC_thr_init) [GC_SOLARIS_PTHREADS]: Determine GC_nprocs via sysconf(). * Makefile.am (libgcjgc_la_SOURCES): Remove solaris_pthreads.c and solaris_threads.c. (gctest_LDADD): Use THREADLIBS instead of THREADDLLIBS. * Makefile.in: Regenerate. * solaris_pthreads.c: Remove. * solaris_threads.c: Remove. From-SVN: r126211
2007-06-22pthread_support.c (GC_get_thread_stack_base): Handle pthread_getattr_np ↵Jakub Jelinek1-1/+7
failures. * pthread_support.c (GC_get_thread_stack_base): Handle pthread_getattr_np failures. From-SVN: r125957
2006-08-21re PR libgcj/13212 (JNI/CNI AttachCurrentThread does not register thread ↵Bryce McKinlay1-32/+106
with garbage collector) 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. From-SVN: r116313
2006-02-10* pthread_support.c: Conditionally include dlfcn.h.Tom Tromey1-0/+4
From-SVN: r110832
2006-02-07gc_ext_config.h.in: Added GC_PTHREAD_SYM_VERSION.Jakub Jelinek1-2/+34
2006-02-06 Jakub Jelinek <jakub@redhat.com> Anthony Green <green@redhat.com> Tom Tromey <tromey@redhat.com> * include/gc_ext_config.h.in: Added GC_PTHREAD_SYM_VERSION. * include/gc_config.h.in: Rebuilt. * include/gc_pthread_redirects.h (pthread_create): Conditionally define. * pthread_support.c (pthread_create_): New global. (constr): New function. (pthread_create): Conditionally renamed. * configure: Rebuilt. * configure.ac (GC_PTHREAD_SYM_VERSION): Define. Co-Authored-By: Anthony Green <green@redhat.com> Co-Authored-By: Tom Tromey <tromey@redhat.com> From-SVN: r110682
2006-01-25Import Boehm GC version 6.6.Bryce McKinlay1-18/+23
From-SVN: r110204
2004-08-14configure.in (GCINCS): Don't use "boehm-cflags".Bryce McKinlay1-0/+1
libjava: 2004-08-13 Bryce McKinlay <mckinlay@redhat.com> * configure.in (GCINCS): Don't use "boehm-cflags". Instead, -I boehm-gc's include dirs. * configure: Rebuilt. * include/boehm-gc.h: Include gc_config.h. boehm-gc: 2004-08-13 Bryce McKinlay <mckinlay@redhat.com> * configure.ac (gc_cflags): Add -Iinclude. (AC_CONFIG_HEADERS): New. Configure gc_config.h header. Don't write DEFS to boehm-cflags file. * configure: Rebuilt. * gcj_mlc.c: Check #ifdef GC_GCJ_SUPPORT after including headers. * specific.c: Check #ifdef GC_LINUX_THREADS after including headers. * include/gc_config_macros.h: Remove backward-compatibility redefinitions of GC_ names. * include/gc.h: Include <gc_config.h>. 2004-08-13 Bryce McKinlay <mckinlay@redhat.com> Import Boehm GC version 6.3. From-SVN: r85972
2004-08-12This commit was generated by cvs2svn to compensate for changes in r85899,Bryce McKinlay1-26/+48
which included commits to RCS files with non-trunk default branches. From-SVN: r85900
2003-07-28Initial revisionJeff Sturm1-0/+1570
From-SVN: r69872