diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2015-07-07 17:24:37 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2015-07-07 17:24:49 +0200 |
commit | 29a12632278368f197f3270532e2f6c19642512e (patch) | |
tree | bbe9089fc3cd5cdb7e21625443b752d60fbf5567 /winsup/cygwin/child_info.h | |
parent | 606013bcf108716f6a84b574864c26cff74f8a37 (diff) | |
download | cygnal-29a12632278368f197f3270532e2f6c19642512e.tar.gz cygnal-29a12632278368f197f3270532e2f6c19642512e.tar.bz2 cygnal-29a12632278368f197f3270532e2f6c19642512e.zip |
Simplify stack allocation code in child after fork
* child_info.h (CURR_CHILD_INFO_MAGIC): Update.
(child_info_fork::alloc_stack_hard_way): Drop declaration.
* dcrt0.cc (child_info_fork::alloc_stack_hard_way): Fold into
child_info_fork::alloc_stack.
(getstack): Remove.
(child_info_fork::alloc_stack): Simplify check for application-provided
stack in "hard way" code. Don't call getstack for each page, just
reallocate stack immediately as required.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/child_info.h')
-rw-r--r-- | winsup/cygwin/child_info.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/child_info.h b/winsup/cygwin/child_info.h index d9467274f..9a0a2aa91 100644 --- a/winsup/cygwin/child_info.h +++ b/winsup/cygwin/child_info.h @@ -39,7 +39,7 @@ enum child_status #define EXEC_MAGIC_SIZE sizeof(child_info) /* Change this value if you get a message indicating that it is out-of-sync. */ -#define CURR_CHILD_INFO_MAGIC 0x93737edaU +#define CURR_CHILD_INFO_MAGIC 0x4a91a908U #define NPROCS 256 @@ -113,7 +113,6 @@ public: void __reg1 handle_fork (); bool abort (const char *fmt = NULL, ...); void alloc_stack (); - void alloc_stack_hard_way (volatile char *); }; class fhandler_base; |