From d1a8bdbe2c9df1079e70342e020fe00a80e3d7c3 Mon Sep 17 00:00:00 2001 From: Patrik Nyblom Date: Wed, 16 Nov 2011 14:58:58 +0100 Subject: Remove ancient WaitForInputIdle workaround --- erts/emulator/sys/win32/sys.c | 11 ----------- 1 file changed, 11 deletions(-) mode change 100644 => 100755 erts/emulator/sys/win32/sys.c (limited to 'erts/emulator/sys/win32/sys.c') diff --git a/erts/emulator/sys/win32/sys.c b/erts/emulator/sys/win32/sys.c old mode 100644 new mode 100755 index 6f33ef7ad6..a49fa8ca34 --- a/erts/emulator/sys/win32/sys.c +++ b/erts/emulator/sys/win32/sys.c @@ -1634,17 +1634,6 @@ create_child_process WaitForSingleObject(hProcess, 50); } - /* - * When an application spawns a process repeatedly, a new thread - * instance will be created for each process but the previous - * instances may not be cleaned up. This results in a significant - * virtual memory loss each time the process is spawned. If there - * is a WaitForInputIdle() call between CreateProcess() and - * CloseHandle(), the problem does not occur. PSS ID Number: Q124121 - */ - - WaitForInputIdle(piProcInfo.hProcess, 5000); - return ok; } -- cgit v1.2.3