From: Vladimir Sadov Date: Tue, 17 Aug 2021 17:21:27 +0000 (-0700) Subject: commenting out an assert that could be triggered on Win7 (#57524) X-Git-Tag: accepted/tizen/unified/20220110.054933~325 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f7cd0c6b5cc315b1a3105565ecceca5eb656c1bb;p=platform%2Fupstream%2Fdotnet%2Fruntime.git commenting out an assert that could be triggered on Win7 (#57524) --- diff --git a/src/coreclr/vm/threadsuspend.cpp b/src/coreclr/vm/threadsuspend.cpp index 8359706..57318e2 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];