Skip to content

Commit

Permalink
libjava
Browse files Browse the repository at this point in the history
	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
  • Loading branch information
tromey committed Sep 14, 2006
1 parent 0686811 commit 2095043
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
6 changes: 6 additions & 0 deletions boehm-gc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2006-09-14 Tom Tromey <[email protected]>

PR boehm-gc/29068.
* misc.c (GC_init_inner): Don't use GC_get_thread_stack_base on
Solaris.

2006-08-21 Bryce McKinlay <[email protected]>

PR libgcj/13212:
Expand Down
2 changes: 1 addition & 1 deletion boehm-gc/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ void GC_init_inner()
# if !defined(THREADS) || defined(GC_PTHREADS) || defined(GC_WIN32_THREADS) \
|| defined(GC_SOLARIS_THREADS)
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
a thread that is not the "main" thread. */
GC_stackbottom = GC_get_thread_stack_base();
Expand Down
6 changes: 6 additions & 0 deletions libjava/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2006-09-14 Tom Tromey <[email protected]>

PR boehm-gc/29068:
* boehm.cc (_Jv_GCAttachThread): Disable on Solaris.
(_Jv_GCDetachThread): Likewise.

2006-09-14 Andreas Schwab <[email protected]>

* posix-threads.cc: Include "posix.h".
Expand Down
5 changes: 3 additions & 2 deletions libjava/boehm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -701,15 +701,16 @@ _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
}

void
_Jv_GCDetachThread ()
{
#ifdef HAVE_PTHREAD_GETATTR_NP
#if defined(HAVE_PTHREAD_GETATTR_NP) && !defined(GC_SOLARIS_THREADS)
GC_unregister_my_thread ();
#endif
}

0 comments on commit 2095043

Please sign in to comment.