summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/gc/gc.h14
-rw-r--r--include/private/gcconfig.h2
-rw-r--r--include/private/pthread_support.h3
3 files changed, 9 insertions, 10 deletions
diff --git a/include/gc/gc.h b/include/gc/gc.h
index 811add18..bf64d2d9 100644
--- a/include/gc/gc.h
+++ b/include/gc/gc.h
@@ -382,11 +382,15 @@ GC_API GC_ATTR_DEPRECATED char *GC_stackbottom;
/* potentially some signals that can */
/* confuse debuggers. Otherwise the */
/* collector attempts to set it */
- /* automatically. */
- /* For multi-threaded code, this is the */
- /* cold end of the stack for the */
- /* primordial thread. Portable clients */
- /* should use GC_get_stack_base(), */
+ /* automatically. For multi-threaded */
+ /* code, this is the cold end of the */
+ /* stack for the primordial thread. */
+ /* For multi-threaded code, altering */
+ /* GC_stackbottom value directly after */
+ /* GC initialization has no effect. */
+ /* Portable clients should use */
+ /* GC_set_stackbottom(), */
+ /* GC_get_stack_base(), */
/* GC_call_with_gc_active() and */
/* GC_register_my_thread() instead. */
diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h
index 839f0ef1..1f25e5c1 100644
--- a/include/private/gcconfig.h
+++ b/include/private/gcconfig.h
@@ -1851,7 +1851,6 @@ EXTERN_C_BEGIN
/* address minus one page. */
# define BACKING_STORE_DISPLACEMENT 0x1000000
# define BACKING_STORE_ALIGNMENT 0x1000
-# define BACKING_STORE_BASE GC_register_stackbottom
/* Known to be wrong for recent HP/UX versions!!! */
# endif
# ifdef LINUX
@@ -1861,7 +1860,6 @@ EXTERN_C_BEGIN
/* TODO: LINUX_STACKBOTTOM does not work on NUE. */
/* We also need the base address of the register stack */
/* backing store. */
-# define BACKING_STORE_BASE GC_register_stackbottom
# define SEARCH_FOR_DATA_START
# ifdef __GNUC__
# define DYNAMIC_LOADING
diff --git a/include/private/pthread_support.h b/include/private/pthread_support.h
index dab3738b..091e153e 100644
--- a/include/private/pthread_support.h
+++ b/include/private/pthread_support.h
@@ -184,9 +184,6 @@ typedef struct GC_Thread_Rep {
/* it unregisters itself, since it */
/* may not return a GC pointer. */
# endif
-# ifndef GC_WIN32_THREADS
-# define MAIN_THREAD 0x4 /* True for the original thread only. */
-# endif
# if (defined(GC_HAVE_PTHREAD_EXIT) || !defined(GC_NO_PTHREAD_CANCEL)) \
&& defined(GC_PTHREADS)
# define DISABLED_GC 0x10 /* Collections are disabled while the */