diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-09-14 18:06:04 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-09-14 18:06:04 +0000 |
commit | 20950438a89c337d20556f3746e2f2953cb0fdac (patch) | |
tree | e8f3771fa5de2790b3ddfc21a771278d9f7d803c /libjava/boehm.cc | |
parent | 068681139d33dbf58c1d628fb6d33c74257cc5d5 (diff) | |
download | gcc-20950438a89c337d20556f3746e2f2953cb0fdac.tar.gz |
libjava
PR boehm-gc/29068:
* boehm.cc (_Jv_GCAttachThread): Disable on Solaris.
(_Jv_GCDetachThread): Likewise.
boehm-gc
PR boehm-gc/29068.
* misc.c (GC_init_inner): Don't use GC_get_thread_stack_base on
Solaris.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116948 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/boehm.cc')
-rw-r--r-- | libjava/boehm.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libjava/boehm.cc b/libjava/boehm.cc index f96128e191d..2e382959ee4 100644 --- a/libjava/boehm.cc +++ b/libjava/boehm.cc @@ -701,7 +701,8 @@ _Jv_GCAttachThread () { // The registration interface is only defined on posixy systems and // only actually works if pthread_getattr_np is defined. -#ifdef HAVE_PTHREAD_GETATTR_NP + // FIXME: until gc7 it is simpler to disable this on solaris. +#if defined(HAVE_PTHREAD_GETATTR_NP) && !defined(GC_SOLARIS_THREADS) GC_register_my_thread (); #endif } @@ -709,7 +710,7 @@ _Jv_GCAttachThread () void _Jv_GCDetachThread () { -#ifdef HAVE_PTHREAD_GETATTR_NP +#if defined(HAVE_PTHREAD_GETATTR_NP) && !defined(GC_SOLARIS_THREADS) GC_unregister_my_thread (); #endif } |