Skip to content

Commit ea1d155

Browse files
committed
Fix up other code comment instances of insur* -> ensur*
1 parent d2cc4c7 commit ea1d155

File tree

40 files changed

+56
-56
lines changed

40 files changed

+56
-56
lines changed

docs/design/coreclr/botr/readytorun-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ To allow changes in the runtime, we simply require that the new runtime handle a
117117

118118
### Restrictions on Runtime Evolution
119119

120-
As mentioned previously, when designing for version compatibility we have the choice of either simply disallowing a change (by changing the breaking change rules), or insuring that the format is sufficiently flexible to allow evolution. For example, for managed code we have opted to disallow changes to value type (struct) layout so that codegen for structs can be efficient. In addition, the design also includes a small number of restrictions that affect the flexibility of evolving the runtime itself. They are:
120+
As mentioned previously, when designing for version compatibility we have the choice of either simply disallowing a change (by changing the breaking change rules), or ensuring that the format is sufficiently flexible to allow evolution. For example, for managed code we have opted to disallow changes to value type (struct) layout so that codegen for structs can be efficient. In addition, the design also includes a small number of restrictions that affect the flexibility of evolving the runtime itself. They are:
121121

122122
- The field layout of `System.Object` cannot change. (First, there is a pointer sized field for type information and then the other fields.)
123123
- The field layout of arrays cannot change. (First, there is a pointer sized field for type information, and then a pointer sized field for the length. After these fields is the array data, packed using existing alignment rules.)

src/coreclr/debug/ee/rcthread.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ void DebuggerRCThread::ThreadProc(void)
610610
// This message actually serves a purpose (which is why it is always run)
611611
// The Stress log is run during hijacking, when other threads can be suspended
612612
// at arbitrary locations (including when holding a lock that NT uses to serialize
613-
// all memory allocations). By sending a message now, we insure that the stress
613+
// all memory allocations). By sending a message now, we ensure that the stress
614614
// log will not allocate memory at these critical times an avoid deadlock.
615615
{
616616
SUPPRESS_ALLOCATION_ASSERTS_IN_THIS_SCOPE;

src/coreclr/dlls/mscorpe/pewriter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1185,7 +1185,7 @@ HRESULT PEWriter::link() {
11851185
// NOTE:
11861186
// link() can be called more than once! This is because at least one compiler
11871187
// (the prejitter) needs to know the base addresses of some segments before it
1188-
// builds others. It's up to the caller to insure the layout remains the same
1188+
// builds others. It's up to the caller to ensure the layout remains the same
11891189
// after changes are made, though.
11901190
//
11911191

src/coreclr/ilasm/assem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ BOOL Assembler::AddMethod(Method *pMethod)
328328
unsigned codeSize = m_CurPC;
329329
unsigned codeSizeAligned = codeSize;
330330
if (moreSections)
331-
codeSizeAligned = (codeSizeAligned + 3) & ~3; // to insure EH section aligned
331+
codeSizeAligned = (codeSizeAligned + 3) & ~3; // to ensure EH section aligned
332332

333333
unsigned headerSize = COR_ILMETHOD::Size(&fatHeader, moreSections);
334334
unsigned ehSize = COR_ILMETHOD_SECT_EH::Size(pMethod->m_dwNumExceptions, pMethod->m_ExceptionList);

src/coreclr/inc/ceegen.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ class CCeeGen : public ICeeGenInternal {
275275
// Write the metadata in "emitter" to the default metadata section is "section" is 0
276276
// If 'section != 0, it will put the data in 'buffer'. This
277277
// buffer is assumed to be in 'section' at 'offset' and of size 'buffLen'
278-
// (should use GetSaveSize to insure that buffer is big enough
278+
// (should use GetSaveSize to ensure that buffer is big enough
279279
virtual HRESULT emitMetaData(IMetaDataEmit *emitter,
280280
CeeSection* section=0, DWORD offset=0, BYTE* buffer=0, unsigned buffLen=0);
281281
virtual HRESULT getMethodRVA(ULONG codeOffset, ULONG *codeRVA);

src/coreclr/inc/cordebug.idl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5180,7 +5180,7 @@ interface ICorDebugNativeFrame : ICorDebugFrame
51805180
* coherent state. (Note that even if the frame is in a valid
51815181
* state as far as the runtime is concerned, there still may be
51825182
* problems - e.g. uninitialized local variables, etc. The caller
5183-
* (or perhaps the user) is responsible for insuring coherency of
5183+
* (or perhaps the user) is responsible for ensuring coherency of
51845184
* the running program.)
51855185
*
51865186
* Calling SetIP immediately invalidates all frames and chains for the

src/coreclr/inc/iceefilegen.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ class ICeeFileGen {
149149
// Emit the metadata from "emitter".
150150
// If 'section != 0, it will put the data in 'buffer'. This
151151
// buffer is assumed to be in 'section' at 'offset' and of size 'buffLen'
152-
// (should use GetSaveSize to insure that buffer is big enough
152+
// (should use GetSaveSize to ensure that buffer is big enough
153153
virtual HRESULT EmitMetaDataAt (HCEEFILE ceeFile, IMetaDataEmit *emitter,
154154
HCEESECTION section, DWORD offset,
155155
BYTE* buffer, unsigned buffLen);

src/coreclr/jit/codegencommon.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4963,7 +4963,7 @@ void CodeGen::genFinalizeFrame()
49634963

49644964
// We currently only expect to push/pop consecutive FP registers
49654965
// and these have to be double-sized registers as well.
4966-
// Here we will insure that maskPushRegsFloat obeys these requirements.
4966+
// Here we will ensure that maskPushRegsFloat obeys these requirements.
49674967
//
49684968
if (maskPushRegsFloat != RBM_NONE)
49694969
{

src/coreclr/jit/instr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ void CodeGen::inst_RV_SH(
750750
#elif defined(TARGET_XARCH)
751751

752752
#ifdef TARGET_AMD64
753-
// X64 JB BE insures only encodable values make it here.
753+
// X64 JB BE ensures only encodable values make it here.
754754
// x86 can encode 8 bits, though it masks down to 5 or 6
755755
// depending on 32-bit or 64-bit registers are used.
756756
// Here we will allow anything that is encodable.

src/coreclr/pal/tests/palsuite/common/palsuite.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ mkAbsoluteFilenameW (
154154
sizeFN = wcslen( fileName );
155155
sizeAPN = (sizeDN + 1 + sizeFN + 1);
156156

157-
/* insure ((dirName + DELIM + fileName + \0) =< _MAX_PATH ) */
157+
/* ensure ((dirName + DELIM + fileName + \0) =< _MAX_PATH ) */
158158
if ( sizeAPN > _MAX_PATH )
159159
{
160160
return ( 0 );
@@ -195,7 +195,7 @@ mkAbsoluteFilenameA (
195195
sizeFN = strlen( fileName );
196196
sizeAPN = (sizeDN + 1 + sizeFN + 1);
197197

198-
/* insure ((dirName + DELIM + fileName + \0) =< _MAX_PATH ) */
198+
/* ensure ((dirName + DELIM + fileName + \0) =< _MAX_PATH ) */
199199
if ( sizeAPN > _MAX_PATH )
200200
{
201201
return ( 0 );

0 commit comments

Comments
 (0)