newlib/winsup/cygwin/release
Corinna Vinschen a54bc198b1 Implement correct RLIMIT_STACK handling
* miscfuncs.cc (struct pthread_wrapper_arg): Add member guardsize.
        (pthread_wrapper): Set thread stack guarantee according to guardsize.
        Tweak assembler code so that $rax/$eax is not required by GCC to
        prepare the wrapper_arg value.
        (CygwinCreateThread): Fix deadzone handling.  Drop setting a "POSIX"
        guardpage (aka page w/ PAGE_NOACCESS).  Always use Windows guard
        pages instead.  On post-XP systems (providing SetThreadStackGuarantee)
        always set up stack Windows like with reserved/commited areas and
        movable guard pages.  Only on XP set up stack fully commited if the
        guardpage size is not the default system guardpage size.
        Fill out pthread_wrapper_arg::guardsize.  Improve comments.
        * resource.cc: Implement RSTACK_LIMIT Linux-like.
        (DEFAULT_STACKSIZE): New macro.
        (DEFAULT_STACKGUARD): Ditto.
        (rlimit_stack_guard): New muto.
        (rlimit_stack): New global variable holding current RSTACK_LIMIT values.
        (__set_rlimit_stack): Set rlimit_stack under lock.
        (__get_rlimit_stack): Initialize rlimit_stack from executable header
        and return rlimit_stack values under lock.
        (get_rlimit_stack): Filtering function to return useful default
        stacksize from rlimit_stack.rlim_cur value.
        (getrlimit): Call __get_rlimit_stack in RLIMIT_STACK case.
        (setrlimit): Call __set_rlimit_stack in RLIMIT_STACK case.
        * thread.cc (pthread::create): Fetch default stacksize calling
        get_rlimit_stack.
        (pthread_attr::pthread_attr): Fetch default guardsize calling
        wincap.def_guard_page_size.
        (pthread_attr_getstacksize): Fetch default stacksize calling
        get_rlimit_stack.
        * thread.h (PTHREAD_DEFAULT_STACKSIZE): Remove.
        (PTHREAD_DEFAULT_GUARDSIZE): Remove.
        (get_rlimit_stack): Declare.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-07-05 15:51:37 +02:00
..
1.7.10
1.7.11
1.7.12
1.7.13
1.7.14
1.7.15
1.7.16
1.7.17
1.7.18
1.7.19
1.7.20
1.7.21
1.7.22
1.7.23
1.7.24
1.7.25
1.7.26
1.7.27
1.7.28 *** empty log message *** 2014-01-27 21:25:39 +00:00
1.7.29 release/1.7.29 2014-04-07 11:41:49 +00:00
1.7.30 *** empty log message *** 2014-05-23 07:15:30 +00:00
1.7.31 *** empty log message *** 2014-07-18 12:28:00 +00:00
1.7.32 * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 33. 2014-08-13 17:38:47 +00:00
1.7.33 * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 34. 2014-11-13 13:10:26 +00:00
1.7.34 * common.din (wcstold): Export. 2015-02-04 11:03:36 +00:00
1.7.35 * msg.cc: Throughout, drop raising SIGSYS if cygserver is not running. 2015-03-03 17:09:30 +00:00
2.0.0 Document previous unlink patch 2015-04-23 22:04:59 +02:00
2.0.1 Bump minor DLL version to 1 2015-04-30 17:53:15 +02:00
2.0.3 Add Cygwin 2.0.3 release file 2015-06-03 13:38:19 +02:00
2.0.4 Evaluate /proc/$PID/{root,cwd,cmdline} for native processes 2015-06-08 21:48:13 +02:00
2.1.0 Implement correct RLIMIT_STACK handling 2015-07-05 15:51:37 +02:00