summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/miscfuncs.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2012-02-10 20:56:22 +0000
committerCorinna Vinschen <corinna@vinschen.de>2012-02-10 20:56:22 +0000
commit793371f584d847db11cfbd9a900cb4bae0f234cf (patch)
tree2bdd36f2bd3dd43d4a0bfc5eb159dff4fd0af38b /winsup/cygwin/miscfuncs.cc
parentc38a2d83730311cad68d3c2d4759dfc18a3c64f3 (diff)
downloadcygnal-793371f584d847db11cfbd9a900cb4bae0f234cf.tar.gz
cygnal-793371f584d847db11cfbd9a900cb4bae0f234cf.tar.bz2
cygnal-793371f584d847db11cfbd9a900cb4bae0f234cf.zip
* 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.cc3
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,