Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/libgc
diff options
context:
space:
mode:
authorRodrigo Kumpera <kumpera@gmail.com>2012-03-13 02:50:48 +0400
committerRodrigo Kumpera <kumpera@gmail.com>2012-03-13 02:51:49 +0400
commit5d805d1305ed63de7bd2714b6273152215404431 (patch)
treeb76e1c1b8922b2d9d60cbf33fe5c14c0e120c9ab /libgc
parent19ae91d1604c6f27381c39b13fc309038f1dc901 (diff)
Properly handle ASLR randomization of the main thread stack on darwin.
Diffstat (limited to 'libgc')
-rw-r--r--libgc/include/private/gcconfig.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgc/include/private/gcconfig.h b/libgc/include/private/gcconfig.h
index 16627ca8943..4f7a080e999 100644
--- a/libgc/include/private/gcconfig.h
+++ b/libgc/include/private/gcconfig.h
@@ -325,7 +325,7 @@
These aren't used when dyld support is enabled (it is by default) */
# define DATASTART ((ptr_t) get_etext())
# define DATAEND ((ptr_t) get_end())
-# define STACKBOTTOM ((ptr_t) 0xc0000000)
+# define STACKBOTTOM ((ptr_t) pthread_get_stackaddr_np(pthread_self()))
# define USE_MMAP
# define USE_MMAP_ANON
# define USE_ASM_PUSH_REGS