Adjust some terms (#24351)
authorDan Moseley <danmose@microsoft.com>
Thu, 2 May 2019 05:49:50 +0000 (22:49 -0700)
committerJan Kotas <jkotas@microsoft.com>
Thu, 2 May 2019 05:49:49 +0000 (22:49 -0700)
24 files changed:
src/System.Private.CoreLib/shared/System/IO/PathHelper.Windows.cs
src/System.Private.CoreLib/src/System/Reflection/Emit/SignatureHelper.cs
src/ToolBox/SOS/SOSAndICorDebug.md
src/debug/di/process.cpp
src/debug/ee/debugger.cpp
src/inc/corinfo.h
src/inc/sstring.h
src/jit/compiler.hpp
src/jit/utils.cpp
src/md/ceefilegen/cceegen.cpp
src/pal/tests/palsuite/c_runtime/_vsnprintf_s/_vsnprintf_s.h
src/pal/tests/palsuite/c_runtime/_vsnwprintf_s/_vsnwprintf_s.h
src/pal/tests/palsuite/c_runtime/vsprintf/vsprintf.h
src/pal/tests/palsuite/c_runtime/vswprintf/vswprintf.h
src/palrt/path.cpp
src/vm/ceeload.cpp
src/vm/excep.cpp
src/vm/excep.h
src/vm/i386/stublinkerx86.cpp
src/vm/instmethhash.cpp
src/vm/profattach.cpp
src/vm/profattachclient.cpp
src/vm/syncblk.cpp
src/vm/threadsuspend.cpp

index f494412..83618cf 100644 (file)
@@ -130,7 +130,7 @@ namespace System.IO
         internal static string TryExpandShortFileName(ref ValueStringBuilder outputBuilder, string? originalPath)
         {
             // We guarantee we'll expand short names for paths that only partially exist. As such, we need to find the part of the path that actually does exist. To
-            // avoid allocating like crazy we'll create only one input array and modify the contents with embedded nulls.
+            // avoid allocating a lot we'll create only one input array and modify the contents with embedded nulls.
 
             Debug.Assert(!PathInternal.IsPartiallyQualified(outputBuilder.AsSpan()), "should have resolved by now");
 
index 89c000f..fe0f39d 100644 (file)
@@ -705,7 +705,7 @@ namespace System.Reflection.Emit
 
                 // If we have more than 128 variables, we can't just set the length, we need 
                 // to compress it.  Unfortunately, this means that we need to copy the entire 
-                // array.  Bummer, eh?
+                // array.
                 SetNumberOfSignatureElements(false);
             }
 
index 725d018..7398f63 100644 (file)
@@ -12,7 +12,7 @@ Note: Use of the name “windbg” in this document is meant to actually indicat
 ### What’s checked in - suboptimal
 
 For MQ, SOS activates mscordbi.dll via the “typical” mechanism of calling into mscoree.dll to get the ICLRDebugging interface, on which SOS calls OpenVirtualProcess.
-Although this works, it sucks. 
+Although this works, it is not ideal.
 It assumes the CLR you want to debug has been formally installed onto the debugging machine (complete with mscoree.dll in your system32 / syswow64 directory).
 
 ### Recommendation
index 36b4b3a..ae1dd03 100644 (file)
@@ -12225,7 +12225,7 @@ Reaction CordbProcess::TriageExcep1stChanceAndInit(CordbUnmanagedThread * pUnman
     LOG((LF_CORDB, LL_INFO1000, "CP::TE1stCAI: Enter\n"));
 
 #ifdef _DEBUG
-    // Some Interop bugs involve threads that land at a crazy IP. Since we're interop-debugging, we can't
+    // Some Interop bugs involve threads that land at a bad IP. Since we're interop-debugging, we can't
     // attach a debugger to the LS. So we have some debug mode where we enable the SS flag and thus
     // produce a trace of where a thread is going.
     if (pUnmanagedThread->IsDEBUGTrace() && (dwExCode == STATUS_SINGLE_STEP))
@@ -12784,7 +12784,7 @@ void CordbProcess::HandleDebugEventForInteropDebugging(const DEBUG_EVENT * pEven
         STRESS_LOG1(LF_CORDB, LL_INFO1000, "W32ET::W32EL: Thread 0x%x is suspended\n", pEvent->dwThreadId);
     }
 
-    // For debugging crazy races in retail, we'll keep a rolling queue of win32 debug events.
+    // For debugging races in retail, we'll keep a rolling queue of win32 debug events.
     this->DebugRecordWin32Event(pEvent, pUnmanagedThread);
 
 
@@ -13390,7 +13390,7 @@ DWORD GetDbgContinueFlag()
 }
 
 
-// Some Interop bugs involve threads that land at a crazy IP. Since we're interop-debugging, we can't
+// Some Interop bugs involve threads that land at a bad IP. Since we're interop-debugging, we can't
 // attach a debugger to the LS. So we have some debug mode where we enable the SS flag and thus
 // produce a trace of where a thread is going.
 #ifdef _DEBUG
index e8e8de9..235a937 100644 (file)
@@ -261,7 +261,7 @@ bool IsGuardPageGone()
 
     // We're not going to be called for a unmanaged exception.
     // Should always have a managed thread, but just in case something really
-    // crazy happens, it's not worth an AV. (since this is just being used as a hint)
+    // strange happens, it's not worth an AV. (since this is just being used as a hint)
     if (pThread == NULL)
     {
         return false;
@@ -13171,7 +13171,7 @@ HRESULT Debugger::UpdateNotYetLoadedFunction(mdMethodDef token, Module * pModule
     HRESULT hr = pModule->GetMDImport()->GetParentToken(token, &classToken);
     if (FAILED(hr))
     {
-        // We never expect this to actually fail, but just in case it does for some other crazy reason,
+        // We never expect this to actually fail, but just in case it does for some other strange reason,
         // we'll return before we AV.
         CONSISTENCY_CHECK_MSGF(false, ("Class lookup failed:mdToken:0x%08x, pModule=%p. hr=0x%08x\n", token, pModule, hr));
         return hr;
index ae6ee20..df6adfe 100644 (file)
@@ -330,7 +330,7 @@ struct SYSTEMV_AMD64_CORINFO_STRUCT_REG_PASSING_DESCRIPTOR
     //     returns true if we the eightbyte at index slotIndex is of SSE type.
     // 
     // Follows the rules of the AMD64 System V ABI specification at www.x86-64.org/documentation/abi.pdf.
-    // Please reffer to it for definitions/examples.
+    // Please refer to it for definitions/examples.
     //
     bool IsSseSlot(unsigned slotIndex) const
     {
index bfbaa81..267912a 100644 (file)
@@ -674,7 +674,7 @@ private:
 
     // WARNING: The MBCS version of printf function are factory for globalization
     // issues when used to format Unicode strings (%S). The Unicode versions are
-    // preffered in this case.
+    // preferred in this case.
     void Printf(const CHAR *format, ...);
     void VPrintf(const CHAR *format, va_list args);
 
index d6894a5..fb6b295 100644 (file)
@@ -2687,7 +2687,7 @@ inline bool Compiler::fgIsThrowHlpBlk(BasicBlock* block)
     }
 
     // We can get to this point for blocks that we didn't create as throw helper blocks
-    // under stress, with crazy flow graph optimizations. So, walk the fgAddCodeList
+    // under stress, with implausible flow graph optimizations. So, walk the fgAddCodeList
     // for the final determination.
 
     for (AddCodeDsc* add = fgAddCodeList; add; add = add->acdNext)
index 029ba03..60f5cee 100644 (file)
@@ -736,7 +736,7 @@ void ConfigMethodRange::InitRanges(const wchar_t* rangeStr, unsigned capacity)
     assert(m_ranges == nullptr);
     assert(m_lastRange == 0);
 
-    // Flag any crazy-looking requests
+    // Flag any strange-looking requests
     assert(capacity < 100000);
 
     if (rangeStr == nullptr)
index bd69c8d..4145143 100644 (file)
@@ -513,7 +513,7 @@ HRESULT CCeeGen::getSectionCreate (const char *name, DWORD flags, CeeSection **s
     HRESULT hr = m_peSectionMan->getSectionCreate(name, flags, &pewSect);
     TESTANDRETURNHR(hr);
     CeeSection *newSect = new CeeSection(*this, *pewSect);
-    // if this fails, the PESection will get nuked in the destructor for CCeeGen
+    // if this fails, the PESection will get zapped in the destructor for CCeeGen
     if (newSect == NULL)
     {
         return E_OUTOFMEMORY;
index 7c81136..d549bbe 100644 (file)
@@ -14,7 +14,7 @@
 #ifndef __STRINGTEST_H__
 #define __STRINGTEST_H__
 
-/* These functions leaks memory like crazy. C'est la vie. */
+/* These functions leaks memory a lot. C'est la vie. */
 int Testvsnprintf(char* buf, size_t count, const char* format, ...)
 {
     int retVal;
index 34cf411..3e81bb2 100644 (file)
@@ -14,7 +14,7 @@
 #ifndef ___VSNWPRINTF_H__
 #define ___VSNWPRINTF_H__
 
-/* These functions leaks memory like crazy. C'est la vie. */
+/* These functions leaks memory a lot. C'est la vie. */
 int TestVsnwprintf_s(wchar_t* buf, size_t count, const wchar_t* format, ...)
 {
     int retVal = 0;
index 22bf53e..d027562 100644 (file)
@@ -13,7 +13,7 @@
 #ifndef __VSPRINTF_H__
 #define __VSPRINTF_H__
 
-/* These functions leaks memory like crazy. C'est la vie. */
+/* These functions leaks memory a lot. C'est la vie. */
 int testvsp(char* buf, size_t buffSize, const char* format, ...)
 {
     int retVal;
index 36895d2..ac96260 100644 (file)
@@ -14,7 +14,7 @@
 #ifndef __vswprintf_H__
 #define __vswprintf_H__
 
-/* These functions leaks memory like crazy. C'est la vie. */
+/* These functions leaks memory a lot. C'est la vie. */
 int testvswp(wchar_t* buf, size_t buffSize, const wchar_t* format, ...)
 {
        int retVal = 0;
index 3d6c7a6..0560f6c 100644 (file)
@@ -467,7 +467,7 @@ STDAPI_(LPWSTR) PathCombineW(LPWSTR lpszDest, LPCWSTR lpszDir, LPCWSTR lpszFile)
                 {
                     // Skip the backslash when copying
                     // Note: We don't support strings longer than 4GB, but that's
-                    // okay because we already barf at MAX_PATH
+                    // okay because we already fail at MAX_PATH
                     int iRemaining = (int)(ARRAYSIZE(szTemp) - (pszT - szTemp));
                     StringCchCopyNW(pszT, iRemaining, lpszFile+1, iRemaining);
                 }
index fc91786..e1f2b2b 100644 (file)
@@ -1519,7 +1519,7 @@ PTR_Module Module::ComputePreferredZapModule(Module * pDefinitionModule,
 }
 
 //
-// Is pModule likely a dependency of pOtherModule? Heuristic used by preffered zap module algorithm.
+// Is pModule likely a dependency of pOtherModule? Heuristic used by preferred zap module algorithm.
 // It can return both false positives and negatives.
 //
 static bool IsLikelyDependencyOf(Module * pModule, Module * pOtherModule)
index 0e99239..b19e1e4 100644 (file)
@@ -12821,7 +12821,7 @@ VOID DECLSPEC_NORETURN RealCOMPlusThrow(RuntimeExceptionKind reKind, LPCWSTR wsz
 //
 // - Can be called with gc enabled or disabled.
 //   This allows a catch-all error path to post a generic catchall error
-//   message w/out bonking more specific error messages posted by inner functions.
+//   message w/out overwriting more specific error messages posted by inner functions.
 //==========================================================================
 VOID DECLSPEC_NORETURN ThrowTypeLoadException(LPCWSTR pFullTypeName,
                                               LPCWSTR pAssemblyName,
@@ -12960,7 +12960,7 @@ VOID DECLSPEC_NORETURN RealCOMPlusThrowArgumentException(LPCWSTR argName, LPCWST
 //
 // - Can be called with gc enabled or disabled.
 //   This allows a catch-all error path to post a generic catchall error
-//   message w/out bonking more specific error messages posted by inner functions.
+//   message w/out overwriting more specific error messages posted by inner functions.
 //==========================================================================
 VOID DECLSPEC_NORETURN ThrowTypeLoadException(LPCUTF8 pszNameSpace,
                                               LPCUTF8 pTypeName,
index cc4e97f..9d8e5d2 100644 (file)
@@ -579,7 +579,7 @@ void COMPlusThrowBoot(HRESULT hr);
 //
 // - Can be called with gc enabled or disabled.
 //   This allows a catch-all error path to post a generic catchall error
-//   message w/out bonking more specific error messages posted by inner functions.
+//   message w/out overwriting more specific error messages posted by inner functions.
 //==========================================================================
 VOID DECLSPEC_NORETURN ThrowTypeLoadException(LPCUTF8 pNameSpace, LPCUTF8 pTypeName,
                            LPCWSTR pAssemblyName, LPCUTF8 pMessageArg,
index c1fbd4d..bb674c2 100644 (file)
@@ -5840,7 +5840,7 @@ static void EncodeOneGCOffset(CPUSTUBLINKER *pSl, ULONG delta, BOOL maybeInterio
     // by shifting and gaining a free high-bit.
     ULONG encodedDelta = delta >> 1;
 #else
-    // For 32-bit, we just limit our frame size to <2GB. (I know, such a bummer!)
+    // For 32-bit, we just limit our frame size to <2GB.
     ULONG encodedDelta = delta;
 #endif
     _ASSERTE((encodedDelta & 0x80000003) == 0);
index 05378b4..f675e43 100644 (file)
@@ -147,7 +147,7 @@ MethodDesc* InstMethodHashTable::FindMethodDesc(TypeHandle declaringType,
 
         // We temporarily disable IBC logging here
         // because the pMD that we search through may not be restored
-        // and ComputePrefferedZapModule will assert on finding an
+        // and ComputePreferredZapModule will assert on finding an
         // encode fixup pointer
         // 
         IBCLoggingDisabler disableIbcLogging;
index 9064fd9..cae073c 100644 (file)
@@ -391,7 +391,7 @@ static HRESULT GetIntegritySidString(__out LPWSTR * pwszIntegritySidString)
     //         "security feature". It's mainly useful as defense-in-depth or to protect
     //         IE users and admins from themselves in most cases.
     //     * It's impossible to spawn a system integrity trigger process outside of
-    //         session 0 services. So profiling ASP.NET would be crazy hard without this
+    //         session 0 services. So profiling ASP.NET would be really hard without this
     //         policy.
     DWORD * pdwIntegrityLevel = SecurityUtil::GetIntegrityLevelFromMandatorySID(ptml->Label.Sid);
     if (*pdwIntegrityLevel > SECURITY_MANDATORY_HIGH_RID)
index 4537017..7852a7b 100644 (file)
@@ -189,7 +189,7 @@ HRESULT ProfilingAPIAttachClient::AttachProfiler(
 
     HRESULT hr;
 
-    // Is cbClientData just crazy-sick-overflow big?
+    // Is cbClientData just huge?
     if (cbClientData >= 0xFFFFffffUL - sizeof(AttachRequestMessage))
     {
         return E_OUTOFMEMORY;
index 9aea18f..7afdc16 100644 (file)
@@ -2250,7 +2250,7 @@ SyncBlock *ObjHeader::GetSyncBlock()
 
                 SyncTableEntry::GetSyncTableEntry() [indx].m_SyncBlock = syncBlock;
 
-                // in order to avoid a race where some thread tries to get the AD index and we've already nuked it,
+                // in order to avoid a race where some thread tries to get the AD index and we've already zapped it,
                 // make sure the syncblock etc is all setup with the AD index prior to replacing the index
                 // in the header
                 if (GetHeaderSyncBlockIndex() == 0)
index 9760fe4..36d1621 100644 (file)
@@ -6685,7 +6685,7 @@ retry_for_debugger:
                 }
                 EX_CATCH
                 {
-                    // Bummer... couldn't init the abort event. Its a shame, but not fatal. We'll simply not use it
+                    // Couldn't init the abort event. Its a shame, but not fatal. We'll simply not use it
                     // on this iteration and try again next time.
                     if (pEvent) {
                         _ASSERTE(!pEvent->IsValid());