From f20b582bffe04e842272b9735593f3eaee3bcd71 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Tue, 14 Feb 2012 08:41:56 +0400 Subject: [PATCH] Remove unsupported MMAP_STACKS (specific to Solaris threads) * doc/README.macros (MMAP_STACKS): Remove. * dyn_load.c (GC_register_dynamic_libraries): Remove check of MMAP_STACKS since GC_is_thread_stack is missing since removal of Solaris threads support (IRIX5). --- doc/README.macros | 3 --- dyn_load.c | 3 --- 2 files changed, 6 deletions(-) diff --git a/doc/README.macros b/doc/README.macros index 195969cb..1136f3aa 100644 --- a/doc/README.macros +++ b/doc/README.macros @@ -291,9 +291,6 @@ GC_FORCE_UNMAP_ON_GCOLLECT Set "unmap as much as possible on explicit GC" unless unmapping is turned on. Has no effect on implicitly-initiated garbage collections. -MMAP_STACKS (for Solaris threads) Use mmap from /dev/zero rather than - GC_scratch_alloc() to get stack memory. - PRINT_BLACK_LIST Whenever a black list entry is added, i.e. whenever the garbage collector detects a value that looks almost, but not quite, like a pointer, print both the address containing the value, and the diff --git a/dyn_load.c b/dyn_load.c index fefb300a..62cb6ed0 100644 --- a/dyn_load.c +++ b/dyn_load.c @@ -772,9 +772,6 @@ GC_INNER void GC_register_dynamic_libraries(void) if (GC_roots_present(start)) goto irrelevant; if (start < heap_end && start >= heap_start) goto irrelevant; -# ifdef MMAP_STACKS - if (GC_is_thread_stack(start)) goto irrelevant; -# endif /* MMAP_STACKS */ limit = start + addr_map[i].pr_size; /* The following seemed to be necessary for very old versions */ -- 2.40.0