diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2012-02-11 00:56:22 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2012-02-11 00:56:22 +0400 |
commit | 793371f584d847db11cfbd9a900cb4bae0f234cf (patch) | |
tree | 2bdd36f2bd3dd43d4a0bfc5eb159dff4fd0af38b /winsup/cygwin/miscfuncs.cc | |
parent | c38a2d83730311cad68d3c2d4759dfc18a3c64f3 (diff) |
* miscfuncs.cc (DEFAULT_STACKSIZE): Set to 1 Megs. Drop comment about
RLIMIT_STACK.
* registry.cc (get_registry_hive_path): Expect the user hive path to
be never longer than MAX_PATH. Don't prepend native NT path prefix
here. Add comment.
(load_registry_hive): Prepend native NT path prefix here. Additionally
try to load user's classes hive.
* uinfo.cc (cygheap_user::env_userprofile): Reduce size of
userprofile_env_buf to MAX_PATH. Add comment.
Diffstat (limited to 'winsup/cygwin/miscfuncs.cc')
-rw-r--r-- | winsup/cygwin/miscfuncs.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/miscfuncs.cc b/winsup/cygwin/miscfuncs.cc index c6e37942d..85507da04 100644 --- a/winsup/cygwin/miscfuncs.cc +++ b/winsup/cygwin/miscfuncs.cc @@ -549,8 +549,7 @@ thread_wrapper (VOID *arg) ExitThread (0); } -/* FIXME: This should be settable via setrlimit (RLIMIT_STACK). */ -#define DEFAULT_STACKSIZE (512 * 1024) +#define DEFAULT_STACKSIZE (1024 * 1024) HANDLE WINAPI CygwinCreateThread (LPTHREAD_START_ROUTINE thread_func, PVOID thread_arg, |