#endif
void GC_suspend_handler_inner(ptr_t sig_arg);
-int cacao_suspendhandler(void *);
+/* int cacao_suspendhandler(void *); */
#if defined(IA64) || defined(HP_PA)
extern void GC_with_callee_saves_pushed();
{
int old_errno = errno;
- if (cacao_suspendhandler(uctx))
- return;
+/* if (cacao_suspendhandler(uctx)) */
+/* return; */
GC_suspend_handler_inner((ptr_t)(word)sig);
errno = old_errno;
# endif
}
+#endif
+
/* Added for cacao */
int GC_signum1()
{
return SIG_THR_RESTART;
}
/* cacao END */
-
-#endif
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
- $Id: threads.c 7966 2007-05-25 12:41:03Z pm $
+ $Id: threads.c 7981 2007-05-30 19:43:36Z twisti $
*/
static pthread_mutex_t mutex_join;
static pthread_cond_t cond_join;
+/* XXX We disable that whole bunch of code until we have the exact-GC
+ running. */
+
+#if 0
+
/* this is one of the STOPWORLD_FROM_ constants, telling why the world is */
/* being stopped */
static volatile int stopworldwhere;
static pthread_cond_t suspend_cond = PTHREAD_COND_INITIALIZER;
#endif
+#endif /* 0 */
+
/* mutexes used by the fake atomic instructions */
#if defined(USE_FAKE_ATOMIC_INSTRUCTIONS)
pthread_mutex_t _atomic_add_lock = PTHREAD_MUTEX_INITIALIZER;
void lock_stopworld(int where)
{
pthread_mutex_lock(&stopworldlock);
- stopworldwhere = where;
+/* stopworldwhere = where; */
}
void unlock_stopworld(void)
{
- stopworldwhere = 0;
+/* stopworldwhere = 0; */
pthread_mutex_unlock(&stopworldlock);
}
+/* XXX We disable that whole bunch of code until we have the exact-GC
+ running. */
+
+#if 0
+
#if !defined(__DARWIN__)
/* Caller must hold threadlistlock */
static s4 threads_cast_sendsignals(s4 sig)
#endif
}
+#endif
+
+
/* This function is called from Boehm GC code. */
int cacao_suspendhandler(ucontext_t *_uc)
threads_sigsuspend_handler(_uc);
return 1;
}
-#endif
#endif /* DISABLE_GC */
+#endif /* 0 */
+
/* threads_set_current_threadobject ********************************************
pthread_key_create(&threads_current_threadobject_key, NULL);
#endif
- threads_sem_init(&suspend_ack, 0, 0);
+/* threads_sem_init(&suspend_ack, 0, 0); */
}