* 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.
This commit is contained in:
Corinna Vinschen
2012-02-10 20:56:22 +00:00
parent c38a2d8373
commit 793371f584
4 changed files with 51 additions and 14 deletions

View File

@ -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,