Commit 975147a4 by Tom Tromey Committed by Tom Tromey

re PR boehm-gc/29068 (Bootstrap fails building libjava on SPARC/Solaris)

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.

From-SVN: r116948
parent 351272b9
2006-09-14 Tom Tromey <tromey@redhat.com>
PR boehm-gc/29068.
* misc.c (GC_init_inner): Don't use GC_get_thread_stack_base on
Solaris.
2006-08-21 Bryce McKinlay <mckinlay@redhat.com> 2006-08-21 Bryce McKinlay <mckinlay@redhat.com>
PR libgcj/13212: PR libgcj/13212:
......
...@@ -674,7 +674,7 @@ void GC_init_inner() ...@@ -674,7 +674,7 @@ void GC_init_inner()
# if !defined(THREADS) || defined(GC_PTHREADS) || defined(GC_WIN32_THREADS) \ # if !defined(THREADS) || defined(GC_PTHREADS) || defined(GC_WIN32_THREADS) \
|| defined(GC_SOLARIS_THREADS) || defined(GC_SOLARIS_THREADS)
if (GC_stackbottom == 0) { if (GC_stackbottom == 0) {
# ifdef GC_PTHREADS # if defined(GC_PTHREADS) && ! defined(GC_SOLARIS_THREADS)
/* Use thread_stack_base if available, as GC could be initialized from /* Use thread_stack_base if available, as GC could be initialized from
a thread that is not the "main" thread. */ a thread that is not the "main" thread. */
GC_stackbottom = GC_get_thread_stack_base(); GC_stackbottom = GC_get_thread_stack_base();
......
2006-09-14 Tom Tromey <tromey@redhat.com>
PR boehm-gc/29068:
* boehm.cc (_Jv_GCAttachThread): Disable on Solaris.
(_Jv_GCDetachThread): Likewise.
2006-09-14 Andreas Schwab <schwab@suse.de> 2006-09-14 Andreas Schwab <schwab@suse.de>
* posix-threads.cc: Include "posix.h". * posix-threads.cc: Include "posix.h".
......
...@@ -701,7 +701,8 @@ _Jv_GCAttachThread () ...@@ -701,7 +701,8 @@ _Jv_GCAttachThread ()
{ {
// The registration interface is only defined on posixy systems and // The registration interface is only defined on posixy systems and
// only actually works if pthread_getattr_np is defined. // 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 (); GC_register_my_thread ();
#endif #endif
} }
...@@ -709,7 +710,7 @@ _Jv_GCAttachThread () ...@@ -709,7 +710,7 @@ _Jv_GCAttachThread ()
void void
_Jv_GCDetachThread () _Jv_GCDetachThread ()
{ {
#ifdef HAVE_PTHREAD_GETATTR_NP #if defined(HAVE_PTHREAD_GETATTR_NP) && !defined(GC_SOLARIS_THREADS)
GC_unregister_my_thread (); GC_unregister_my_thread ();
#endif #endif
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment