From 6d6cfa4840b66c2dc152e7eab915a8ac9c10ef71 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 16 May 2011 09:55:18 +0000 Subject: * dcrt0.cc (child_info_fork::alloc_stack_hard_way): Check if the requested stack is application-provided within the user heap or an mmapped region. If so, just use it. Add comment to explain why. * miscfuncs.cc (thread_wrapper): If an application-provided stack has been given, implement cygtls area at the stackbase. Fix comment. * mmap.cc (is_mmapped_region): New function. * winsup.h (is_mmapped_region): Declare. --- winsup/cygwin/winsup.h | 1 + 1 file changed, 1 insertion(+) (limited to 'winsup/cygwin/winsup.h') diff --git a/winsup/cygwin/winsup.h b/winsup/cygwin/winsup.h index 087da61f4..44f00339b 100644 --- a/winsup/cygwin/winsup.h +++ b/winsup/cygwin/winsup.h @@ -270,6 +270,7 @@ enum mmap_region_status MMAP_NORESERVE_COMMITED }; mmap_region_status mmap_is_attached_or_noreserve (void *addr, size_t len); +bool is_mmapped_region (caddr_t start_addr, caddr_t end_address); inline bool flush_file_buffers (HANDLE h) { -- cgit v1.2.3