]> granicus.if.org Git - gc/commitdiff
Prevent DATASTART redefinition for NaCl
authorIvan Maidanski <ivmai@mail.ru>
Mon, 15 Jan 2018 23:22:37 +0000 (02:22 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 16 Jan 2018 21:39:31 +0000 (00:39 +0300)
(backport of commit 331e3944 from 'master')

* include/private/gcconfig.h [NACL] (NO_PTHREAD_GETATTR_NP): Define.
* include/private/gcconfig.h [I386 && NACL] (OS_TYPE, etext, DATASTART,
_end, DATAEND, STACK_GRAN, HEURISTIC1, NO_PTHREAD_GETATTR_NP,
GETPAGESIZE, MAX_NACL_GC_THREADS): Remove.

include/private/gcconfig.h

index bec8a681572106f35be8f2b581f7eece564f441e..f77c9a861071e4867e8a30c893a7db2fd9d545cb 100644 (file)
 #   undef STACK_GRAN
 #   define STACK_GRAN 0x10000
 #   define HEURISTIC1
+#   define NO_PTHREAD_GETATTR_NP
 #   define USE_MMAP
 #   define USE_MUNMAP
 #   define USE_MMAP_ANON
 #         define HEAP_START DATAEND
 #       endif
 #   endif /* DGUX */
-
-#   ifdef NACL
-#      define OS_TYPE "NACL"
-       extern int etext[];
-/* #define DATASTART ((ptr_t)((((word) (etext)) + 0xfff) & ~0xfff)) */
-#      define DATASTART ((ptr_t)0x10000000)
-       extern int _end[];
-#      define DATAEND ((ptr_t)_end)
-#      undef STACK_GRAN
-#      define STACK_GRAN 0x10000
-#      define HEURISTIC1
-#      define NO_PTHREAD_GETATTR_NP
-#      define GETPAGESIZE() 65536
-#      ifndef MAX_NACL_GC_THREADS
-#        define MAX_NACL_GC_THREADS 1024
-#      endif
-#   endif /* NACL */
-
 #   ifdef LINUX
 #       define OS_TYPE "LINUX"
 #       define LINUX_STACKBOTTOM