Corinna Vinschen
4889f730c1
Reduce stack pressure throughout Cygwin
...
* dcrt0.cc (initial_env): Reduce size of local path buffers to
PATH_MAX. Allocate debugger_command from process heap.
(init_windows_system_directory): Very early initialize new global
variable global_progname.
* dll_init.cc (dll_list::alloc): Make path buffer static. Explain why.
(dll_list::populate_deps): Use tmp_pathbuf for local path buffer.
* exceptions.cc (debugger_command): Convert to PWCHAR.
(error_start_init): Allocate debugger_command and fill with wide char
strings. Only allocate if NULL.
(try_to_debug): Just check if debugger_command is a NULL pointer to
return. Drop conversion from char to WCHAR and drop local variable
dbg_cmd.
* globals.cc (global_progname): New global variable to store Windows
application path.
* pinfo.cc (pinfo_basic::pinfo_basic): Just copy progname over from
global_progname.
(pinfo::status_exit): Let path_conv create the POSIX path to
avoid local buffer.
* pseudo_reloc.cc (__report_error): Utilize global_progname, drop local
buffer.
* smallprint.cc (__small_vsprintf): Just utilize global_progname for
%P format specifier.
(__small_vswprintf): Ditto.
* strace.cc (PROTECT): Change to reflect x being a pointer. Reformat.
(CHECK): Ditto. Reformat.
(strace::activate): Utilize global_progname, drop local buffer.
Fix formatting.
(strace::vsprntf): Reduce size of local progname buffer to NAME_MAX.
Copy and, if necessary, convert only the last path component to
progname.
(strace_buf_guard): New muto.
(buf): New static pointer.
(strace::vprntf): Use buf under strace_buf_guard lock only. Allocate
buffer space for buf on Windows heap.
* wow64.cc (wow64_respawn_process): Utilize global_progname, drop
local path buffer.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-07-19 22:38:30 +02:00
..
2014-07-14 18:16:16 +00:00
2015-07-17 14:31:12 +02:00
2014-11-06 15:32:21 +00:00
2015-01-13 08:52:26 +00:00
2014-06-23 14:33:55 +00:00
2015-07-17 14:31:12 +02:00
2013-04-30 23:43:08 +00:00
2013-04-23 09:44:36 +00:00
2013-11-24 12:13:36 +00:00
2012-11-23 13:22:47 +00:00
2015-07-04 22:49:30 +02:00
2013-04-23 09:44:36 +00:00
2014-11-25 11:27:12 +00:00
2015-07-19 22:38:30 +02:00
2012-01-01 16:57:25 +00:00
2013-01-02 18:34:06 +00:00
2014-01-04 23:58:32 +00:00
2015-01-07 21:27:22 +00:00
2013-04-23 09:44:36 +00:00
2015-07-07 17:24:49 +02:00
2012-02-13 13:12:37 +00:00
2015-07-17 14:31:12 +02:00
2014-08-15 21:21:59 +00:00
2014-08-15 21:21:59 +00:00
2014-08-11 12:03:18 +00:00
2013-01-21 04:38:31 +00:00
2014-08-15 13:50:53 +00:00
2014-02-10 20:15:58 +00:00
2014-12-02 09:59:53 +00:00
2015-04-23 21:57:07 +02:00
2013-01-21 04:38:31 +00:00
2013-04-23 09:44:36 +00:00
2013-04-23 09:44:36 +00:00
2012-03-19 17:49:40 +00:00
2015-01-19 17:42:04 +00:00
2013-01-21 04:38:31 +00:00
2015-02-23 20:51:12 +00:00
2013-01-21 04:38:31 +00:00
2013-01-21 04:38:31 +00:00
2014-03-12 17:36:56 +00:00
2013-04-23 09:44:36 +00:00
2013-01-21 04:34:52 +00:00
2015-07-07 20:45:06 +02:00
2015-07-07 20:45:06 +02:00
2015-02-23 13:56:01 +00:00
2015-02-23 13:56:01 +00:00
2014-11-26 19:46:59 +00:00
2014-04-08 14:13:59 +00:00
2013-01-21 04:38:31 +00:00
2013-01-21 04:38:31 +00:00
2015-07-19 22:38:30 +02:00
2013-01-21 04:34:52 +00:00
2013-04-23 09:44:36 +00:00
2015-04-23 21:57:12 +02:00
2013-07-15 13:54:27 +00:00
2015-04-23 21:57:12 +02:00
2014-04-26 17:38:22 +00:00
2014-08-22 09:21:33 +00:00
2015-02-11 13:15:59 +00:00
2015-07-19 22:38:30 +02:00
2013-04-23 09:44:36 +00:00
2013-01-21 04:38:31 +00:00
2015-02-15 08:59:55 +00:00
2014-01-27 20:04:35 +00:00
2015-01-14 10:40:03 +00:00
2014-12-02 10:16:03 +00:00
2014-08-15 13:50:53 +00:00
2015-07-07 20:45:06 +02:00
2015-07-19 22:38:30 +02:00
2015-02-11 13:15:59 +00:00
2015-04-23 21:57:10 +02:00
2014-08-22 09:21:33 +00:00
2013-04-23 09:44:36 +00:00
2013-12-10 21:05:23 +00:00
2014-05-09 14:28:48 +00:00
2013-10-31 14:26:42 +00:00
2015-04-23 21:57:12 +02:00
2015-04-23 21:57:13 +02:00
2013-05-01 01:20:37 +00:00
2014-05-20 10:25:32 +00:00
2013-05-01 01:20:37 +00:00
2014-08-19 08:41:40 +00:00
2012-04-04 12:45:24 +00:00
2015-02-06 11:41:56 +00:00
2015-07-05 12:53:30 +02:00
2014-10-09 13:24:37 +00:00
2014-10-09 17:45:27 +00:00
2014-10-09 13:24:37 +00:00
2014-08-11 12:03:18 +00:00
2013-10-26 13:23:54 +00:00
2015-02-15 08:59:55 +00:00
2014-10-20 14:30:35 +00:00
2015-06-15 18:29:56 +02:00
2015-02-25 17:50:13 +00:00
2015-04-23 21:57:07 +02:00
2015-06-08 14:07:42 +02:00
2013-10-31 14:26:42 +00:00
2014-10-09 13:24:37 +00:00
2013-11-24 12:13:36 +00:00
2013-10-24 17:51:41 +00:00
2015-02-24 11:05:02 +00:00
2015-04-23 22:04:24 +02:00
2015-02-11 21:45:47 +00:00
2015-07-07 17:05:20 +02:00
2013-06-18 09:45:37 +00:00
2015-07-18 14:48:32 +02:00
2012-04-02 20:41:46 +00:00
2013-07-10 20:58:33 +00:00
2015-03-03 12:58:34 +00:00
2015-07-19 22:38:30 +02:00
2013-06-18 10:01:33 +00:00
2014-05-22 10:25:45 +00:00
2015-04-23 22:01:53 +02:00
2013-08-31 10:21:48 +00:00
2013-01-21 04:38:31 +00:00
2013-06-14 09:09:41 +00:00
2013-04-23 09:44:36 +00:00
2015-02-15 09:13:03 +00:00
2014-11-21 21:41:37 +00:00
2013-04-23 09:44:36 +00:00
2013-04-23 09:44:36 +00:00
2014-08-27 10:44:50 +00:00
2013-08-19 16:21:29 +00:00
2015-02-26 17:27:59 +00:00
2015-02-24 20:52:57 +00:00
2013-04-23 09:44:36 +00:00
2015-04-23 21:57:08 +02:00
2015-06-18 22:04:58 +02:00
2015-01-16 16:19:37 +00:00
2014-08-14 17:36:24 +00:00
2013-06-18 09:45:37 +00:00
2013-06-18 09:45:37 +00:00
2015-07-05 15:51:37 +02:00
2015-01-16 16:19:37 +00:00
2012-03-19 17:49:40 +00:00
2013-04-23 09:44:36 +00:00
2013-05-21 19:04:49 +00:00
2015-02-03 13:15:49 +00:00
2013-01-21 04:38:31 +00:00
2013-10-15 08:13:42 +00:00
2014-11-27 16:49:41 +00:00
2014-11-27 16:49:41 +00:00
2015-03-03 17:09:30 +00:00
2013-08-26 16:14:40 +00:00
2015-06-17 11:11:02 +02:00
2013-04-23 09:44:36 +00:00
2013-04-23 09:44:36 +00:00
2013-11-26 17:27:25 +00:00
2015-07-17 14:31:12 +02:00
2014-08-27 09:39:44 +00:00
2015-04-23 22:01:53 +02:00
2015-07-06 15:18:09 -05:00
2015-04-23 22:04:59 +02:00
2013-04-23 09:44:36 +00:00
2015-07-19 22:38:30 +02:00
2013-12-18 04:28:46 +00:00
2015-02-15 08:59:55 +00:00
2014-10-11 12:14:29 +00:00
2015-02-26 17:19:27 +00:00
2013-06-18 09:45:37 +00:00
2013-06-18 09:45:37 +00:00
2015-07-19 22:38:30 +02:00
2013-09-25 14:44:45 +00:00
2015-04-23 22:01:53 +02:00
2015-04-23 21:57:12 +02:00
2014-12-02 10:49:47 +00:00
2014-12-02 10:49:47 +00:00
2013-04-23 09:44:36 +00:00
2015-07-05 15:51:37 +02:00
2014-05-20 10:21:34 +00:00
2013-04-23 09:44:36 +00:00
2015-04-23 21:57:12 +02:00
2015-03-18 17:15:27 +01:00
2015-03-18 17:15:27 +01:00
2015-04-30 17:26:55 +02:00
2015-03-18 17:15:27 +01:00
2015-04-23 22:04:24 +02:00
2013-04-23 09:44:36 +00:00
2015-03-03 17:09:30 +00:00
2014-03-28 20:34:04 +00:00
2014-10-17 14:36:59 +00:00
2014-11-27 16:49:41 +00:00
2015-04-23 21:59:49 +02:00
2015-06-30 20:43:50 +02:00
2014-11-28 20:46:13 +00:00
2014-03-17 04:41:35 +00:00
2015-07-19 22:38:30 +02:00
2015-03-17 11:40:12 +01:00
2013-04-23 09:44:36 +00:00
2013-05-22 16:55:55 +00:00
2015-07-19 22:38:30 +02:00
2013-11-25 11:38:08 +00:00
2014-08-18 18:24:06 +00:00
2013-04-23 09:44:36 +00:00
2013-04-23 09:44:36 +00:00
2013-04-23 09:44:36 +00:00
2015-04-23 22:04:59 +02:00
2013-04-23 09:44:36 +00:00
2013-04-23 09:44:36 +00:00
2013-04-23 09:44:36 +00:00
2014-11-25 11:27:12 +00:00
2013-04-23 09:44:36 +00:00
2015-07-05 15:51:37 +02:00
2015-07-05 15:51:37 +02:00
2014-08-22 09:21:33 +00:00
2015-02-20 15:13:46 +00:00
2014-08-25 14:53:49 +00:00
2014-08-25 14:53:49 +00:00
2015-07-04 22:49:30 +02:00
2015-07-04 22:49:30 +02:00
2015-04-23 21:57:07 +02:00
2015-04-23 22:04:24 +02:00
2015-04-23 22:01:53 +02:00
2015-01-24 19:56:42 +00:00
2013-07-31 15:19:18 +00:00
2015-02-24 20:52:57 +00:00
2013-04-23 09:44:36 +00:00
2013-01-21 04:34:52 +00:00
2013-04-23 09:44:36 +00:00
2015-07-05 12:53:30 +02:00
2015-07-05 12:53:30 +02:00
2013-11-24 12:13:36 +00:00
2015-02-11 13:15:59 +00:00
2015-02-11 13:15:59 +00:00
2013-01-21 04:34:52 +00:00
2014-12-02 10:16:03 +00:00
2015-02-23 12:40:01 +00:00
2015-02-03 13:15:49 +00:00
2015-07-19 22:38:30 +02:00
2013-04-23 09:44:36 +00:00
2013-05-13 19:25:35 +00:00