1 diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_win.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_win.cpp
2 index 7c84cdc22ce4..e13fff03489e 100644
3 --- a/compiler-rt/lib/sanitizer_common/sanitizer_win.cpp
4 +++ b/compiler-rt/lib/sanitizer_common/sanitizer_win.cpp
5 @@ -157,7 +157,8 @@ void UnmapOrDie(void *addr, uptr size) {
6 static void *ReturnNullptrOnOOMOrDie(uptr size, const char *mem_type,
7 const char *mmap_type) {
8 error_t last_error = GetLastError();
9 - if (last_error == ERROR_NOT_ENOUGH_MEMORY)
10 + if (last_error == ERROR_NOT_ENOUGH_MEMORY ||
11 + last_error == ERROR_COMMITMENT_LIMIT)
13 ReportMmapFailureAndDie(size, mem_type, mmap_type, last_error);