diff --git a/src/coreclr/vm/threadsuspend.cpp b/src/coreclr/vm/threadsuspend.cpp index 8359706d948f7..57318e29e898d 100644 --- a/src/coreclr/vm/threadsuspend.cpp +++ b/src/coreclr/vm/threadsuspend.cpp @@ -1985,7 +1985,9 @@ CONTEXT* AllocateOSContextHelper(BYTE** contextBuffer) pfnInitializeContext2(NULL, context, NULL, &contextSize, xStateCompactionMask) : InitializeContext(NULL, context, NULL, &contextSize); - _ASSERTE(!success && GetLastError() == ERROR_INSUFFICIENT_BUFFER); + // The following assert is valid, but gets triggered in some Win7 runs with no impact on functionality. + // commenting this out to reduce noise, as long as Win7 is supported. + // _ASSERTE(!success && GetLastError() == ERROR_INSUFFICIENT_BUFFER); // So now allocate a buffer of that size and call InitializeContext again BYTE* buffer = new (nothrow)BYTE[contextSize];