summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2013-08-16 14:33:07 +0000
committerAaron Ballman <aaron@aaronballman.com>2013-08-16 14:33:07 +0000
commit2328cf155a191b226aa5766ff6110c482bc08519 (patch)
tree58ee5efe53c0d1fadd05ed56b297c7523e6e6a3c /lib
parent671aea08f8dfb09a0191e7b9e266c2884efd3252 (diff)
downloadllvm-2328cf155a191b226aa5766ff6110c482bc08519.tar.gz
llvm-2328cf155a191b226aa5766ff6110c482bc08519.tar.bz2
llvm-2328cf155a191b226aa5766ff6110c482bc08519.tar.xz
Updating function comments; no functional changes intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188554 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Support/Windows/Process.inc17
1 files changed, 12 insertions, 5 deletions
diff --git a/lib/Support/Windows/Process.inc b/lib/Support/Windows/Process.inc
index 359b99f513..e47c4c08c7 100644
--- a/lib/Support/Windows/Process.inc
+++ b/lib/Support/Windows/Process.inc
@@ -130,12 +130,19 @@ int Process::GetCurrentGroupId()
}
// Some LLVM programs such as bugpoint produce core files as a normal part of
-// their operation. To prevent the disk from filling up, this configuration item
-// does what's necessary to prevent their generation.
+// their operation. To prevent the disk from filling up, this configuration
+// item does what's necessary to prevent their generation.
void Process::PreventCoreFiles() {
- // Windows doesn't do core files, but it does do modal pop-up message
- // boxes. As this method is used by bugpoint, preventing these pop-ups
- // is the moral equivalent of suppressing core files.
+ // Windows does have the concept of core files, called minidumps. However,
+ // disabling minidumps for a particular application extends past the lifetime
+ // of that application, which is the incorrect behavior for this API.
+ // Additionally, the APIs require elevated privileges to disable and re-
+ // enable minidumps, which makes this untenable. For more information, see
+ // WerAddExcludedApplication and WerRemoveExcludedApplication (Vista and
+ // later).
+ //
+ // Windows also has modal pop-up message boxes. As this method is used by
+ // bugpoint, preventing these pop-ups is additionally important.
SetErrorMode(SEM_FAILCRITICALERRORS |
SEM_NOGPFAULTERRORBOX |
SEM_NOOPENFILEERRORBOX);