* configure: Rebuilt.
* configure.in: Removed qt threads case.
* dyn_load.c: Don't mention QUICK_THREADS.
* os_dep.c: Don't mention QUICK_THREADS.
* misc.c: Don't mention QUICK_THREADS.
* gcconfig.h: Don't mention QUICK_THREADS.
* gc_priv.h: Removed QUICK_THREADS code.
* quick_threads.c: Removed.
From-SVN: r30394
+1999-11-04 Tom Tromey <tromey@cygnus.com>
+
+ * configure: Rebuilt.
+ * configure.in: Removed qt threads case.
+ * dyn_load.c: Don't mention QUICK_THREADS.
+ * os_dep.c: Don't mention QUICK_THREADS.
+ * misc.c: Don't mention QUICK_THREADS.
+ * gcconfig.h: Don't mention QUICK_THREADS.
+ * gc_priv.h: Removed QUICK_THREADS code.
+ * quick_threads.c: Removed.
+
1999-11-03 Tom Tromey <tromey@cygnus.com>
* gcconfig.h: Merged in local changes from old config.h.
esac
THREADLIB=-lpthread
;;
- qt)
- cat >> confdefs.h <<\EOF
-#define QUICK_THREADS 1
-EOF
-
- INCLUDES="-I${boehm_gc_basedir}/../qthreads"
- THREADLIB=../qthreads/libgcjcoop.la
- ;;
decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
{ echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
;;
esac
THREADLIB=-lpthread
;;
- qt)
- AC_DEFINE(QUICK_THREADS)
- INCLUDES="-I${boehm_gc_basedir}/../qthreads"
- THREADLIB=../qthreads/libgcjcoop.la
- ;;
decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
AC_MSG_ERROR(thread package $THREADS not yet supported)
;;
# if defined(SUNOS4) || defined(SUNOS5DL)
/* Add dynamic library data sections to the root set. */
-# if !defined(PCR) && !defined(SOLARIS_THREADS) \
- && !defined(QUICK_THREADS) && defined(THREADS)
+# if !defined(PCR) && !defined(SOLARIS_THREADS) && defined(THREADS)
# ifndef SRC_M3
--> fix mutual exclusion with dlopen
# endif /* We assume M3 programs don't call dlopen for now */
# define LOCK() EnterCriticalSection(&GC_allocate_ml);
# define UNLOCK() LeaveCriticalSection(&GC_allocate_ml);
# endif
-# ifdef QUICK_THREADS
-# define LOCK()
-# define UNLOCK()
-# endif
# ifndef SET_LOCK_HOLDER
# define SET_LOCK_HOLDER()
# define UNSET_LOCK_HOLDER()
# if defined(PCR) || defined(SRC_M3) || \
defined(SOLARIS_THREADS) || defined(WIN32_THREADS) || \
defined(IRIX_THREADS) || defined(LINUX_THREADS) || \
- defined(IRIX_JDK_THREADS) || defined(HPUX_THREADS) || \
- defined(QUICK_THREADS)
+ defined(IRIX_JDK_THREADS) || defined(HPUX_THREADS)
# define THREADS
# endif
# if defined(HPUX_THREADS)
pthread_mutex_t GC_allocate_ml = PTHREAD_MUTEX_INITIALIZER;
# else
-# if defined(QUICK_THREADS)
- /* Nothing */
-# else
--> declare allocator lock here
-# endif
# endif
# endif
# endif
# endif
# if !defined(THREADS) || defined(SOLARIS_THREADS) || defined(WIN32_THREADS) \
|| defined(IRIX_THREADS) || defined(LINUX_THREADS) \
- || defined(HPUX_THREADS) || defined(QUICK_THREADS)
+ || defined(HPUX_THREADS)
if (GC_stackbottom == 0) {
GC_stackbottom = GC_get_stack_base();
}
# if defined(SOLARIS_THREADS) || defined(WIN32_THREADS) \
|| defined(IRIX_THREADS) || defined(LINUX_THREADS) \
- || defined(IRIX_JDK_THREADS) || defined(HPUX_THREADS) \
- || defined(QUICK_THREADS)
+ || defined(IRIX_JDK_THREADS) || defined(HPUX_THREADS)
extern void GC_push_all_stacks();
+++ /dev/null
-/*
- * Support code for cooperative coop/quick threads.
- * Copyright (c) 1998, 1999 Cygnus Solutions.
- */
-
-#include "gcconfig.h"
-
-#ifdef QUICK_THREADS
-
-#include "gc_priv.h"
-
-#include "coop.h"
-
-void GC_push_all_stacks (void)
-{
- coop_t *t;
- ptr_t lo, hi;
-
- t = coop_first_thread ();
-
- if (t == NULL)
- {
- /* Threads haven't started, so mark the real stack. */
-#ifdef STACK_GROWS_DOWN
- GC_push_all_stack( GC_approx_sp(), GC_stackbottom );
-#else
- GC_push_all_stack( GC_stackbottom, GC_approx_sp() );
-#endif
- }
- else
- {
- for ( ; t != NULL; t = coop_next_thread (t))
- {
- if (t == coop_global_curr)
- lo = GC_approx_sp ();
- else
- {
- lo = t->top;
- /* LO can be NULL when the new thread has not yet been
- used. */
- if (! lo)
- continue;
- }
- hi = t->base;
-
-#ifdef STACK_GROWS_DOWN
- GC_push_all_stack (lo, hi);
-#else
- GC_push_all_stack (hi, lo);
-#endif
- }
- }
-}
-
-#endif /* QUICK_THREADS */