Fix typos (#69537)
authorAdeel Mujahid <3840695+am11@users.noreply.github.com>
Mon, 23 May 2022 17:14:58 +0000 (20:14 +0300)
committerGitHub <noreply@github.com>
Mon, 23 May 2022 17:14:58 +0000 (10:14 -0700)
* Fix typos

* Fix typo: seperate -> separate

* Rename ApplicationNameSetFromArgument

* Update src/coreclr/vm/methodtablebuilder.cpp

* Update docs/coding-guidelines/clr-code-guide.md

Co-authored-by: Dan Moseley <danmose@microsoft.com>
* Update src/mono/mono/tests/verifier/make_tests.sh

Co-authored-by: Dan Moseley <danmose@microsoft.com>
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
351 files changed:
.devcontainer/Dockerfile
docs/coding-guidelines/clr-code-guide.md
docs/design/coreclr/botr/readytorun-overview.md
docs/design/coreclr/botr/xplat-minidump-generation.md
docs/design/coreclr/jit/object-stack-allocation.md
docs/design/coreclr/profiling/Profiler Loading.md
docs/design/coreclr/profiling/ReJIT on Attach.md
docs/design/coreclr/profiling/davbr-blog-archive/Attach2.md
docs/design/features/COM-activation.md
docs/design/features/crossgen2-compilation-structure-enhancements.md
docs/design/features/source-generator-com.md
docs/design/mono/components.md
docs/project/glossary.md
eng/native/configurecompiler.cmake
eng/packaging.targets
eng/pipelines/mono/templates/xplat-pipeline-job.yml
src/coreclr/System.Private.CoreLib/src/System/Reflection/LoaderAllocator.cs
src/coreclr/classlibnative/bcltype/objectnative.cpp
src/coreclr/classlibnative/bcltype/varargsnative.cpp
src/coreclr/debug/createdump/crashreportwriter.cpp
src/coreclr/debug/createdump/crashreportwriter.h
src/coreclr/debug/daccess/daccess.cpp
src/coreclr/debug/daccess/enummem.cpp
src/coreclr/debug/daccess/inspect.cpp
src/coreclr/debug/daccess/request.cpp
src/coreclr/debug/di/divalue.cpp
src/coreclr/debug/di/module.cpp
src/coreclr/debug/di/process.cpp
src/coreclr/debug/di/rsfunction.cpp
src/coreclr/debug/di/rsmain.cpp
src/coreclr/debug/di/rsthread.cpp
src/coreclr/debug/di/shimprocess.cpp
src/coreclr/debug/ee/controller.cpp
src/coreclr/debug/ee/debugger.cpp
src/coreclr/debug/ee/debugger.h
src/coreclr/debug/ee/funceval.cpp
src/coreclr/gc/gc.cpp
src/coreclr/gc/gcscan.h
src/coreclr/gc/unix/gcenv.unix.cpp
src/coreclr/hosts/coreshim/CoreShim.cpp
src/coreclr/ilasm/writer.cpp
src/coreclr/ildasm/dasm.cpp
src/coreclr/ildasm/dis.cpp
src/coreclr/inc/bitvector.h
src/coreclr/inc/clrinternal.idl
src/coreclr/inc/clrnt.h
src/coreclr/inc/contract.h
src/coreclr/inc/cordebug.idl
src/coreclr/inc/corinfo.h
src/coreclr/inc/corjit.h
src/coreclr/inc/corprof.idl
src/coreclr/inc/corsym.idl
src/coreclr/inc/dacprivate.h
src/coreclr/inc/metadata.h
src/coreclr/inc/staticcontract.h
src/coreclr/jit/compiler.h
src/coreclr/jit/compiler.hpp
src/coreclr/jit/fgprofile.cpp
src/coreclr/jit/gcencode.cpp
src/coreclr/jit/gentree.cpp
src/coreclr/jit/gentree.h
src/coreclr/jit/importer.cpp
src/coreclr/jit/lowerxarch.cpp
src/coreclr/jit/lsra.cpp
src/coreclr/jit/lsra.h
src/coreclr/jit/lsraarm.cpp
src/coreclr/jit/lsraarm64.cpp
src/coreclr/jit/lsraloongarch64.cpp
src/coreclr/jit/lsraxarch.cpp
src/coreclr/jit/morph.cpp
src/coreclr/jit/morphblock.cpp
src/coreclr/jit/optcse.cpp
src/coreclr/jit/simdintrinsiclist.h
src/coreclr/jit/smallhash.h
src/coreclr/jit/valuenum.h
src/coreclr/md/compiler/regmeta_emit.cpp
src/coreclr/md/enc/metamodelrw.cpp
src/coreclr/md/inc/mdinternalrw.h
src/coreclr/md/inc/verifylayouts.h
src/coreclr/md/runtime/mdinternalro.h
src/coreclr/nativeaot/System.Private.CoreLib/src/System/Array.NativeAot.cs
src/coreclr/nativeaot/System.Private.TypeLoader/src/Internal/Runtime/TypeLoader/CallConverterThunk.cs
src/coreclr/nativeaot/System.Private.TypeLoader/src/Internal/Runtime/TypeLoader/LazyVtableResolverThunk.cs
src/coreclr/nativeaot/System.Private.TypeLoader/src/Internal/Runtime/TypeLoader/ReferenceSource/amd64/cGenCpu.h
src/coreclr/nativeaot/System.Private.TypeLoader/src/Internal/Runtime/TypeLoader/ReferenceSource/i386/asmhelpers.asm
src/coreclr/nativeaot/System.Private.TypeLoader/src/Internal/Runtime/TypeLoader/TypeLoaderEnvironment.ConstructedGenericsRegistration.cs
src/coreclr/nativeaot/System.Private.TypeLoader/src/Internal/Runtime/TypeLoader/TypeLoaderEnvironment.FieldAccess.cs
src/coreclr/nativeaot/System.Private.TypeLoader/src/Internal/Runtime/TypeLoader/TypeLoaderEnvironment.cs
src/coreclr/nativeaot/System.Private.TypeLoader/src/Internal/TypeSystem/TypeDesc.Runtime.cs
src/coreclr/nativeresources/resourcestring.cpp
src/coreclr/pal/inc/pal.h
src/coreclr/pal/src/cruntime/filecrt.cpp
src/coreclr/pal/src/cruntime/printf.cpp
src/coreclr/pal/src/cruntime/printfcpp.cpp
src/coreclr/pal/src/file/file.cpp
src/coreclr/pal/src/include/pal/init.h
src/coreclr/pal/src/include/pal/palinternal.h
src/coreclr/pal/src/init/pal.cpp
src/coreclr/pal/src/misc/sysinfo.cpp
src/coreclr/pal/src/safecrt/tsplitpath_s.inl
src/coreclr/pal/src/thread/context.cpp
src/coreclr/pal/tests/palsuite/CMakeLists.txt
src/coreclr/pal/tests/palsuite/c_runtime/isxdigit/test1/test1.cpp
src/coreclr/pal/tests/palsuite/c_runtime/wcscat/test1/test1.cpp
src/coreclr/pal/tests/palsuite/composite/synchronization/criticalsection/mainWrapper.cpp
src/coreclr/pal/tests/palsuite/composite/threading/threadsuspension/mainWrapper.cpp
src/coreclr/pal/tests/palsuite/composite/threading/threadsuspension_switchthread/mainWrapper.cpp
src/coreclr/pal/tests/palsuite/composite/wfmo/main.cpp
src/coreclr/pal/tests/palsuite/file_io/GetFullPathNameA/test3/test3.cpp
src/coreclr/pal/tests/palsuite/file_io/GetFullPathNameA/test4/test4.cpp
src/coreclr/pal/tests/palsuite/file_io/GetFullPathNameW/test3/test3.cpp
src/coreclr/pal/tests/palsuite/file_io/GetFullPathNameW/test4/test4.cpp
src/coreclr/pal/tests/palsuite/threading/CreateThread/test1/test1.cpp
src/coreclr/pal/tests/palsuite/threading/ExitThread/test1/test1.cpp
src/coreclr/pal/tests/palsuite/threading/WaitForMultipleObjectsEx/test5/test5.cpp
src/coreclr/scripts/genEventing.py
src/coreclr/tools/Common/Compiler/CompilerTypeSystemContext.Validation.cs
src/coreclr/tools/Common/JitInterface/CorInfoImpl.cs
src/coreclr/tools/Common/TypeSystem/Common/ArrayOfTRuntimeInterfacesAlgorithm.cs
src/coreclr/tools/Common/TypeSystem/Common/ExplicitLayoutValidator.cs
src/coreclr/tools/Common/TypeSystem/Common/MetadataVirtualMethodAlgorithm.cs
src/coreclr/tools/Common/TypeSystem/Interop/IL/Marshaller.cs
src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/AnalysisBasedInteropStubManager.cs
src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/Compilation.cs
src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/CodeBasedDependencyAlgorithm.cs
src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/EmptyInteropStubManager.cs
src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/InteropStubManager.cs
src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/UsageBasedInteropStubManager.cs
src/coreclr/tools/aot/ILCompiler.Compiler/IL/ILImporter.Scanner.cs
src/coreclr/tools/aot/ILCompiler.DependencyAnalysisFramework/DependencyAnalyzer.cs
src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/ReadyToRunCompilationModuleGroupBase.cs
src/coreclr/tools/aot/ILCompiler.ReadyToRun/JitInterface/CorInfoImpl.ReadyToRun.cs
src/coreclr/tools/aot/ILCompiler.RyuJit/JitInterface/CorInfoImpl.RyuJit.cs
src/coreclr/tools/dotnet-pgo/Microsoft.Diagnostics.JitTrace/JitTraceRuntime.cs
src/coreclr/tools/dotnet-pgo/Program.cs
src/coreclr/tools/superpmi/superpmi-shared/compileresult.cpp
src/coreclr/tools/superpmi/superpmi-shared/methodcontext.cpp
src/coreclr/tools/superpmi/superpmi-shim-collector/icorjitinfo.cpp
src/coreclr/tools/superpmi/superpmi/icorjitinfo.cpp
src/coreclr/tools/superpmi/superpmi/jitinstance.cpp
src/coreclr/tools/superpmi/superpmi/superpmi.cpp
src/coreclr/utilcode/clrhost_nodependencies.cpp
src/coreclr/utilcode/pedecoder.cpp
src/coreclr/vm/amd64/cgencpu.h
src/coreclr/vm/amd64/excepamd64.cpp
src/coreclr/vm/appdomain.cpp
src/coreclr/vm/assemblyspec.cpp
src/coreclr/vm/clsload.hpp
src/coreclr/vm/codeman.cpp
src/coreclr/vm/dbginterface.h
src/coreclr/vm/eetwain.cpp
src/coreclr/vm/encee.cpp
src/coreclr/vm/exceptionhandling.cpp
src/coreclr/vm/exceptmacros.h
src/coreclr/vm/gdbjit.cpp
src/coreclr/vm/i386/excepx86.cpp
src/coreclr/vm/interoplibinterface_comwrappers.cpp
src/coreclr/vm/jithelpers.cpp
src/coreclr/vm/jitinterface.cpp
src/coreclr/vm/memberload.cpp
src/coreclr/vm/method.hpp
src/coreclr/vm/methodtablebuilder.cpp
src/coreclr/vm/multicorejit.cpp
src/coreclr/vm/object.cpp
src/coreclr/vm/object.h
src/coreclr/vm/peimage.cpp
src/coreclr/vm/prestub.cpp
src/coreclr/vm/proftoeeinterfaceimpl.cpp
src/coreclr/vm/runtimecallablewrapper.cpp
src/coreclr/vm/stdinterfaces_wrapper.cpp
src/coreclr/vm/stringliteralmap.cpp
src/coreclr/vm/stublink.h
src/coreclr/vm/threads.cpp
src/coreclr/vm/threads.h
src/coreclr/vm/threadsuspend.cpp
src/coreclr/vm/threadsuspend.h
src/coreclr/vm/tieredcompilation.cpp
src/coreclr/vm/typedesc.cpp
src/coreclr/vm/util.cpp
src/coreclr/vm/virtualcallstub.h
src/libraries/Common/src/System/Net/Http/aspnetcore/Http2/Hpack/HPackDecoder.cs
src/libraries/Common/src/System/Net/Http/aspnetcore/Http3/QPack/QPackDecoder.cs
src/libraries/Common/tests/System/IO/Compression/CompressionStreamUnitTestBase.cs
src/libraries/Common/tests/System/Net/Prerequisites/Deployment/setup_firewall.ps1
src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/AES/DecryptorReusability.cs
src/libraries/Common/tests/System/Xml/ModuleCore/cmodinfo.cs
src/libraries/Common/tests/System/Xml/ModuleCore/cparser.cs
src/libraries/Microsoft.Extensions.HostFactoryResolver/tests/ApplicationNameSetFromAgrument/ApplicationNameSetFromAgrument.csproj [deleted file]
src/libraries/Microsoft.Extensions.HostFactoryResolver/tests/ApplicationNameSetFromAgrument/Program.cs [deleted file]
src/libraries/Microsoft.Extensions.HostFactoryResolver/tests/ApplicationNameSetFromArgument/ApplicationNameSetFromArgument.csproj [new file with mode: 0644]
src/libraries/Microsoft.Extensions.HostFactoryResolver/tests/ApplicationNameSetFromArgument/Program.cs [new file with mode: 0644]
src/libraries/Microsoft.Extensions.HostFactoryResolver/tests/HostFactoryResolverTests.cs
src/libraries/Microsoft.Extensions.HostFactoryResolver/tests/Microsoft.Extensions.HostFactoryResolver.Tests.csproj
src/libraries/Microsoft.Extensions.Http/tests/Microsoft.Extensions.Http.Tests/DefaultHttpClientFactoryTest.cs
src/libraries/Microsoft.Extensions.Options.ConfigurationExtensions/tests/OptionsBuidlerConfigurationExtensionsTests.cs
src/libraries/Microsoft.VisualBasic.Core/src/Microsoft/VisualBasic/Interaction.vb
src/libraries/System.CodeDom/src/Microsoft/VisualBasic/VBCodeGenerator.cs
src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/Hosting/FilteredCatalog.DependentsTraversal.cs
src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/Hosting/FilteredCatalog.Traversal.cs
src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/AttributedModelServicesTests.cs
src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ExportMetadataAttributeTests.cs
src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/Hosting/AssemblyCatalogTests.cs
src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ReflectionModel/ReflectionModelServicesTests.cs
src/libraries/System.ComponentModel.Composition/tests/System/Integration/DelayLoadingTests.cs
src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/ReflectPropertyDescriptor.cs
src/libraries/System.Composition/tests/LightContainerTests.cs
src/libraries/System.Composition/tests/TestLibrary/TestClass.cs
src/libraries/System.Configuration.ConfigurationManager/src/System/Configuration/BaseConfigurationRecord.cs
src/libraries/System.Configuration.ConfigurationManager/tests/System.Configuration.ConfigurationManager.Tests.csproj
src/libraries/System.Configuration.ConfigurationManager/tests/System/Configuration/SettingsManageabilityAtrributeTests.cs [deleted file]
src/libraries/System.Configuration.ConfigurationManager/tests/System/Configuration/SettingsManageabilityAttributeTests.cs [new file with mode: 0644]
src/libraries/System.Data.Common/src/System/Data/DataTable.cs
src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLDecimal.cs
src/libraries/System.Data.Common/tests/System/Data/DataTableTest2.cs
src/libraries/System.Data.Odbc/src/System/Data/Odbc/DbDataRecord.cs
src/libraries/System.Data.Odbc/src/System/Data/Odbc/OdbcConnection.cs
src/libraries/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/ActivityListener.cs
src/libraries/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/DiagnosticSourceEventSource.cs
src/libraries/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/Metrics/MetricsEventSource.cs
src/libraries/System.Diagnostics.DiagnosticSource/tests/ActivityTests.cs
src/libraries/System.Diagnostics.EventLog/src/System/Diagnostics/Reader/UnsafeNativeMethods.cs
src/libraries/System.Diagnostics.Tracing/documentation/EventCounterTutorial.md
src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/AD/ADDNLinkedAttrSet.cs
src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/AD/ADStoreCtx.cs
src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/AD/ADUtils.cs
src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/AccountInfo.cs
src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/Utils.cs
src/libraries/System.DirectoryServices.Protocols/tests/LdapConnectionTests.cs
src/libraries/System.DirectoryServices/src/System/DirectoryServices/ActiveDirectory/Locator.cs
src/libraries/System.DirectoryServices/src/System/DirectoryServices/DirectoryEntry.cs
src/libraries/System.IO.FileSystem/tests/Base/BaseGetSetTimes.cs
src/libraries/System.IO.FileSystem/tests/PortedCommon/IOServices.cs
src/libraries/System.IO.Ports/tests/Support/SerialPortProperties.cs
src/libraries/System.Linq.Expressions/src/System/Linq/Expressions/ExpressionStringBuilder.cs
src/libraries/System.Linq.Expressions/tests/Block/BlockTests.cs
src/libraries/System.Linq.Expressions/tests/Switch/SwitchTests.cs
src/libraries/System.Management/src/System/Management/WMIGenerator.cs
src/libraries/System.Net.Http.WinHttpHandler/tests/FunctionalTests/System.Net.Http.WinHttpHandler.Functional.Tests.csproj
src/libraries/System.Net.Http.WinHttpHandler/tests/FunctionalTests/XunitTestAssemblyAtrributes.cs [deleted file]
src/libraries/System.Net.Http.WinHttpHandler/tests/FunctionalTests/XunitTestAssemblyAttributes.cs [new file with mode: 0644]
src/libraries/System.Net.Http.WinHttpHandler/tests/UnitTests/System.Net.Http.WinHttpHandler.Unit.Tests.csproj
src/libraries/System.Net.Http.WinHttpHandler/tests/UnitTests/XunitTestAssemblyAtrributes.cs [deleted file]
src/libraries/System.Net.Http.WinHttpHandler/tests/UnitTests/XunitTestAssemblyAttributes.cs [new file with mode: 0644]
src/libraries/System.Net.Requests/src/System/Net/ICloseEx.cs
src/libraries/System.Net.Security/tests/FunctionalTests/CertificateValidationRemoteServer.cs
src/libraries/System.Net.Sockets/tests/FunctionalTests/LocalEndPointTest.cs
src/libraries/System.Private.CoreLib/src/System/Collections/Generic/HashSetEqualityComparer.cs
src/libraries/System.Private.CoreLib/src/System/Environment.Win32.cs
src/libraries/System.Private.CoreLib/src/System/Globalization/DateTimeParse.cs
src/libraries/System.Private.CoreLib/src/System/Globalization/TextInfo.cs
src/libraries/System.Private.CoreLib/src/System/IO/UnmanagedMemoryStreamWrapper.cs
src/libraries/System.Private.CoreLib/src/System/Reflection/TypeAttributes.cs
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/MemoryMarshal.cs
src/libraries/System.Private.CoreLib/src/System/Threading/LowLevelSpinWaiter.cs
src/libraries/System.Private.Uri/src/System/Uri.cs
src/libraries/System.Private.Uri/tests/FunctionalTests/UriMailToTest.cs
src/libraries/System.Private.Xml.Linq/tests/Schema/ExtensionTests.cs
src/libraries/System.Private.Xml.Linq/tests/XDocument.Test.ModuleCore/testparser.cs
src/libraries/System.Private.Xml.Linq/tests/XDocument.Test.ModuleCore/testproperties.cs
src/libraries/System.Private.Xml.Linq/tests/xNodeBuilder/FunctionalTests.cs
src/libraries/System.Private.Xml.Linq/tests/xNodeBuilder/XmlReaderDiff.cs
src/libraries/System.Private.Xml/src/Resources/Strings.resx
src/libraries/System.Private.Xml/src/System/Xml/Core/XmlTextReaderImpl.cs
src/libraries/System.Private.Xml/src/System/Xml/Core/XmlTextReaderImplAsync.cs
src/libraries/System.Private.Xml/src/System/Xml/Schema/Asttree.cs
src/libraries/System.Private.Xml/src/System/Xml/Schema/Preprocessor.cs
src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaCollectionpreProcessor.cs
src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaSetCompiler.cs
src/libraries/System.Private.Xml/src/System/Xml/Schema/XdrValidator.cs
src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaValidator.cs
src/libraries/System.Private.Xml/src/System/Xml/Schema/XsdValidator.cs
src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/QilGenerator.cs
src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/InputScope.cs
src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/SequentialOutput.cs
src/libraries/System.Reflection.Emit.ILGeneration/tests/CustomAttributeBuilderTests.cs
src/libraries/System.Reflection.Emit/tests/AssemblyBuilderTests.cs
src/libraries/System.Reflection.Metadata/tests/TestUtilities/SigningUtilities.cs
src/libraries/System.Reflection.MetadataLoadContext/src/System/Reflection/TypeLoading/MethodBase/Ecma/EcmaMethodDecoder.cs
src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs
src/libraries/System.Runtime.Numerics/tests/BigInteger/parse.cs
src/libraries/System.Runtime.Serialization.Xml/tests/SerializationTestTypes/DataContract.cs
src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/ECDiffieHellmanCng.cs
src/libraries/System.Speech/src/Internal/GrammarBuilding/BuilderElements.cs
src/libraries/System.Text.Json/src/System/Text/Json/JsonConstants.cs
src/libraries/System.Text.Json/src/System/Text/Json/JsonHelpers.Escaping.cs
src/libraries/System.Text.Json/src/System/Text/Json/Reader/Utf8JsonReader.MultiSegment.cs
src/libraries/System.Text.Json/src/System/Text/Json/Reader/Utf8JsonReader.cs
src/libraries/System.Text.Json/src/System/Text/Json/Writer/Utf8JsonWriter.WriteProperties.Bytes.cs
src/libraries/System.Text.Json/src/System/Text/Json/Writer/Utf8JsonWriter.WriteProperties.DateTime.cs
src/libraries/System.Text.Json/src/System/Text/Json/Writer/Utf8JsonWriter.WriteProperties.DateTimeOffset.cs
src/libraries/System.Text.Json/src/System/Text/Json/Writer/Utf8JsonWriter.WriteProperties.Decimal.cs
src/libraries/System.Text.Json/src/System/Text/Json/Writer/Utf8JsonWriter.WriteProperties.Double.cs
src/libraries/System.Text.Json/src/System/Text/Json/Writer/Utf8JsonWriter.WriteProperties.Float.cs
src/libraries/System.Text.Json/src/System/Text/Json/Writer/Utf8JsonWriter.WriteProperties.Guid.cs
src/libraries/System.Text.Json/src/System/Text/Json/Writer/Utf8JsonWriter.WriteProperties.Helpers.cs
src/libraries/System.Text.Json/src/System/Text/Json/Writer/Utf8JsonWriter.WriteProperties.Literal.cs
src/libraries/System.Text.Json/src/System/Text/Json/Writer/Utf8JsonWriter.WriteProperties.SignedNumber.cs
src/libraries/System.Text.Json/src/System/Text/Json/Writer/Utf8JsonWriter.WriteProperties.String.cs
src/libraries/System.Text.Json/src/System/Text/Json/Writer/Utf8JsonWriter.WriteProperties.UnsignedNumber.cs
src/libraries/System.Text.Json/tests/System.Text.Json.SourceGeneration.Tests/MetadataContextTests.cs
src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Serialization/JsonPolymorphicTypeConfigurationTests.cs
src/mono/mono/component/hot_reload.c
src/mono/mono/eglib/gpath.c
src/mono/mono/eglib/test/ptrarray.c
src/mono/mono/eventpipe/test/ep-tests.h
src/mono/mono/metadata/class-setup-vtable.c
src/mono/mono/metadata/loader-internals.h
src/mono/mono/metadata/loader.c
src/mono/mono/metadata/marshal-ilgen.c
src/mono/mono/metadata/metadata.c
src/mono/mono/metadata/object-internals.h
src/mono/mono/metadata/sre.c
src/mono/mono/mini/abcremoval.h
src/mono/mono/mini/aot-compiler.c
src/mono/mono/mini/branch-opts.c
src/mono/mono/mini/decompose.c
src/mono/mono/mini/gshared.cs
src/mono/mono/mini/method-to-ir.c
src/mono/mono/mini/mini-amd64.h
src/mono/mono/tests/verifier/make_tests.sh
src/mono/mono/tests/w32message.cs
src/mono/mono/utils/mono-threads-coop.h
src/mono/wasm/runtime/modularize-dotnet.md
src/native/corehost/deps_entry.cpp
src/native/corehost/fxr/fx_muxer.cpp
src/native/corehost/hostmisc/pal.windows.cpp
src/native/corehost/hostmisc/utils.cpp
src/native/corehost/hostmisc/utils.h
src/native/corehost/nethost/nethost.h
src/native/eventpipe/ep-sample-profiler.c
src/native/eventpipe/ep-stream.h
src/native/libs/System.Native/pal_signal.c
src/native/libs/System.Security.Cryptography.Native.Android/pal_sslstream.h
src/tasks/AndroidAppBuilder/ApkBuilder.cs
src/tasks/Crossgen2Tasks/PrepareForReadyToRunCompilation.cs
src/tests/Common/Platform/platformdefines.h
src/tests/Common/scripts/exclusion.py
src/tests/Common/scripts/lst_creator.py
src/tests/CoreMangLib/system/environment/environment_version.cs
src/tests/Interop/NativeLibrary/API/GetMainProgramHandleTests.cs
src/tests/Interop/NativeLibrary/API/NativeLibraryTests.cs
src/tests/Interop/PInvoke/SizeParamIndex/PInvoke/helper.cs
src/tests/JIT/Performance/CodeQuality/Layout/SearchLoops.cs
src/tests/JIT/Performance/RunBenchmarks/RunBenchmarks.cs
src/tests/baseservices/threading/commitstackonlyasneeded/StackCommitCommon.cs
src/tests/nativeaot/SmokeTests/ComWrappers/ComWrappers.cs
src/tests/nativeaot/SmokeTests/ComWrappers/ComWrappersNative.cpp
src/tests/nativeaot/SmokeTests/DynamicGenerics/universal_generics.cs
src/tests/readytorun/crossboundarylayout/crossboundarytests.cmd
src/tests/run.cmd
src/tests/sizeondisk/sodbench/SoDBench.cs

index dc0f12a0a86e166b2a49e6a536eceb828ec72dcc..436beacbff7736ee776a96f29aafc1ccb713eb78 100644 (file)
@@ -34,9 +34,9 @@ RUN sudo apt-get install libnss3 -y \
     && apt-get install libgbm-dev -y \
     && apt-get install libpango-1.0-0 -y \
     && apt-get install libcairo2 -y \
-    && apt-get install libasound2 -y 
+    && apt-get install libasound2 -y
 
-#install firefox dependecies to run debugger tests:
+# install firefox dependencies to run debugger tests:
 RUN sudo apt-get install libdbus-glib-1-2 -y \
     && apt-get install libgtk-3-0 -y \
-    && apt-get install libx11-xcb-dev  -y
\ No newline at end of file
+    && apt-get install libx11-xcb-dev  -y
index 0401300c73f4191af4f6ea4bd37702465ce30204..85987de5b047ed3bbaa58a74d362cb9b6b0e1aa5 100644 (file)
@@ -912,7 +912,7 @@ It depends.
 
 If you initialize the crst as CRST_HOST_BREAKABLE, any attempt to acquire the lock can trigger an exception (intended to kill your thread to break the deadlock.) Otherwise, you are guaranteed not to get an exception or failure. Regardless of the flag setting, releasing a lock will never fail.
 
-You can only use a non host-breakable lock if you can guarantee that that lock will never participate in a deadlock. If you cannot guarantee this, you must use a host-breakable lock and handle the exception. Otherwise, a CLR host will not be able to break deadlocks cleanly.
+You can only use a non host-breakable lock if you can guarantee that the lock will never participate in a deadlock. If you cannot guarantee this, you must use a host-breakable lock and handle the exception. Otherwise, a CLR host will not be able to break deadlocks cleanly.
 
 There are several ways we enforce this.
 
index a405f4e9724a29d94492375d29381d2a7952e2b3..fc43502c2e9900e8ffbcb50754bc9dcca75121d2 100644 (file)
@@ -265,7 +265,7 @@ Experiments with disabled cross-module inlining with the selectively enabled inl
 
 ## Non-Virtual calls as the baseline solution to all other versioning issues
 
-It is important to observe that once you have a mechanism for doing non-virtual function calls in a version resilient way (by having an indirect CALL through a slot that that can be fixed lazily at runtime, all other versioning problems _can_ be solved in that way by calling back to the 'definer' module, and having the operation occur there instead. Issues associated with this technique
+It is important to observe that once you have a mechanism for doing non-virtual function calls in a version resilient way (by having an indirect CALL through a slot that can be fixed lazily at runtime, all other versioning problems _can_ be solved in that way by calling back to the 'definer' module, and having the operation occur there instead. Issues associated with this technique
 
 1. You will pay the cost of a true indirection function call and return, as well as any argument setup cost. This cost may be visible in constructs that do not contain a call naturally, like fetching string literals or other constants. You may be able to get better performance from another technique (for example, we did so with instance field access).
 2. It introduces a lot of indirect calls. It is not friendly to systems that disallow on the fly code generation. A small helper stub has to be created at runtime in the most straightforward implementation, or there has to be a scheme how to pre-create or recycle the stubs.
index d2bfeb20921862167041b4cf6169c78e7250bb72..9160b673d0fc2c5bbc155ee4493abeae00956182 100644 (file)
@@ -4,7 +4,7 @@ Dump generation on Windows, Linux and other non-Windows platforms has several ch
 
 Our goal is to generate core dumps that are on par with WER (Windows Error Reporting) crash dumps on any supported Linux platform. To the very least we want to enable the following:
 - automatic generation of minimal size minidumps. The quality and quantity of the information contained in the dump should be on par with the information contained in a traditional Windows mini-dump.
-- simple configurabilty by the user (not _su_!).
+- simple configurability by the user (not _su_!).
 
 Our solution at this time is to intercept any unhandled exception in the PAL layer of the runtime and have coreclr itself trigger and generate a "mini" core dump.
 
index 914013878000f47562915b77f43d417704303b1e..0101d5b4425e0cbcc6fb0d39104c1e98a0d492c8 100644 (file)
@@ -137,7 +137,7 @@ but without field edges in the connection graph.
 * Only simple objects are stack allocated, arrays of constant size are not analyzed.
 * Only objects that are allocated unconditionally in the method are moved to the stack. An improvement here would
 be allocating other objects dynamically on the stack.
-* If at least one object in a method is stack allocated, all objects are conservatively reported as as TYPE_GC_BYREF
+* If at least one object in a method is stack allocated, all objects are conservatively reported as TYPE_GC_BYREF
 and a checked write barrier is used in the method.
 * All objects allocated on the stack also have a pre-header allocated. Pre-header is used for synchronization
 and hashing so we could eliminate it if we proved the object wasn't used for synchronization and hashing.
index f6b603844ab9e022d882dafa3f39364874c63d56..140323e9827d89169eda55b44f1c35f72c2cf0cf 100644 (file)
@@ -4,7 +4,7 @@ To enable profiling set the following environment variables:
 - `CORECLR_PROFILER={_CLSID of profiler_}`
 
 # Finding the profiler library
-Once profiling is enabled there are two ways we load your profiler, with enviroment variables (cross-plat) or through the registry (Windows only)
+Once profiling is enabled there are two ways we load your profiler, with environment variables (cross-plat) or through the registry (Windows only)
 
 ## Environment Variable (cross-plat)
 Set one of the following (if all are set, the bitness-specific variables take precedence). The 32/64 ones specify which bitness of profiler is loaded
index d4769c9a4c929b747af2858f984132fa9a06d1fc..ae68a630e3bf912d1556706cf662aecbb1e709cb 100644 (file)
@@ -14,7 +14,7 @@ To enable ReJIT on attach there is a new API `ICorProfilerInfo10::RequestReJITWi
                 [in, size_is(cFunctions)]  mdMethodDef methodIds[]);
 ```
 
-Conceptually this works the same as `ICorProfilerInfo4::RequestReJIT` except it will automatically ReJIT any methods that have inlined the target method(s) in the past. The arguments are the same except for the additon of `dwRejitFlags` as the first parameter. The valid values for this argument come from this enum:
+Conceptually this works the same as `ICorProfilerInfo4::RequestReJIT` except it will automatically ReJIT any methods that have inlined the target method(s) in the past. The arguments are the same except for the addition of `dwRejitFlags` as the first parameter. The valid values for this argument come from this enum:
 
 ```cpp
 typedef enum
index 6ff0409ebebd9a7e9421be313c3dec5d4c3b5fb0..8704cb8c466f2d4333dcf85b824b43e051dd0646 100644 (file)
@@ -15,7 +15,7 @@ Drawing by Magdalena Hermawan
 
 There are two fundamental ways your profiler can catch up on the current state of an application:
 
-- Lazy catch-up—as the profiler encounters new IDs, the profiler queries information about those IDs as it needs them, rather than assuming it has a full cache that’s always built up as the IDs are first created.  This is analogous to Dorothy meeting a new grown-up, and gracefully accepting the fact that that person exists.
+- Lazy catch-up—as the profiler encounters new IDs, the profiler queries information about those IDs as it needs them, rather than assuming it has a full cache that’s always built up as the IDs are first created.  This is analogous to Dorothy meeting a new grown-up, and gracefully accepting the fact that the person exists.
 - Enumeration—for certain kinds of IDs, the profiler can (at attach time) request a complete list of the currently active IDs and query information about them at that time.  Sort of like Dorothy first going to the Oz City Hall and looking up the birth records for everyone.
 
 Lazy catch-up is fairly self-explanatory.  For example, if your sampling profiler encounters an IP in a FunctionID you’ve never seen before, just look up whatever info you need about that FunctionID the first time you encounter it, rather than assuming you’d already built up a cache when the function was first JITted.  And if you discover that FunctionID resides in a module you’ve never seen before, then just look up whatever info you need about that ModuleID at that point, rather than assuming you already have a complete cache of all modules.  Many of you are already doing something like this today if you support sampling against regular NGENd images (since you don’t get JIT notifications of those functions anyway).
index 4cb22c28aa09d9891cd80c7fb4edc035cad435a0..9bdb937110e3a9870cebcd092939eca0d64f8680 100644 (file)
@@ -104,7 +104,7 @@ When `DllGetClassObject()` is called in a COM activation scenario, the following
         }
         ```
         Note this API is not exposed outside of `System.Private.CoreLib` and is subject to change at any time.
-    * The loading of the assembly will take place in a new [`AssemblyLoadContext`](https://docs.microsoft.com/dotnet/api/system.runtime.loader.assemblyloadcontext) for dependency isolation. Each assembly path will get a seperate `AssemblyLoadContext`. This means that if an assembly provides multiple COM servers all of the servers from that assembly will reside in the same `AssemblyLoadContext`.
+    * The loading of the assembly will take place in a new [`AssemblyLoadContext`](https://docs.microsoft.com/dotnet/api/system.runtime.loader.assemblyloadcontext) for dependency isolation. Each assembly path will get a separate `AssemblyLoadContext`. This means that if an assembly provides multiple COM servers all of the servers from that assembly will reside in the same `AssemblyLoadContext`.
     * The created `AssemblyLoadContext` will use an [`AssemblyDependencyResolver`](https://github.com/dotnet/runtime/issues/27787) that was supplied with the path to the assembly to load assemblies.
 1) The `IClassFactory` instance is returned to the caller of `DllGetClassObject()` to attempt class activation.
 
index 7f993df95e8844f82149949b6e0d132c04e8e829..2c6676100db214ce7fe3063d2128c9e55b8d6e91 100644 (file)
@@ -50,7 +50,7 @@ There are 3 sets of files to pass to crossgen2:
 ### Principles
 
 1. Ahead of time generated code exists to improve startup, and for some scenarios will be retained for the lifetime of the process.
-2. Our default scenario relies on on tiered compilation rejit for best performance.
+2. Our default scenario relies on tiered compilation rejit for best performance.
 3. Too much pregenerated code will negatively affect applications. Startup is the critical detail for most pregeneration scenarios, and for those, there is a blend of time to pull the file to the CPU (from disk, over the network, etc.) and to compile functions. Striking the right blend has been discovered to be critical.
 
 ### Proposed approach
index 0a4b47e875040a78cf05b48a758c3a30305c6c8f..0b068d1b7e5d6f5bcb8618350c04da4093a4bd83 100644 (file)
@@ -620,7 +620,7 @@ Cons:
 
 #### Option 5 (Selected Design): Only `GeneratedComInterfaceAttribute` attribute with Generated `ComWrappers`-derived type
 
-The built-in `ComImport` and `ComVisible` attributes have a lot of history and weird runtime behavior associated with them. Additionally the built-in `ComVisible` attribute actually takes a `bool` to determine if the applied to type is visible and it can be applied to methods as well to enable/disable COM visbility for the legacy automatic COM vtable generation that the .NET runtime has supported since .NET Framework 1.0. This option proposes introducing a single new attribute to cover the expected scenarios:
+The built-in `ComImport` and `ComVisible` attributes have a lot of history and weird runtime behavior associated with them. Additionally the built-in `ComVisible` attribute actually takes a `bool` to determine if the applied to type is visible and it can be applied to methods as well to enable/disable COM visibility for the legacy automatic COM vtable generation that the .NET runtime has supported since .NET Framework 1.0. This option proposes introducing a single new attribute to cover the expected scenarios:
 
 ```csharp
 [AttributeUsage(AttributeTargets.Interface)]
index ef17836c8645c58f9f718060c9ebb6a9dad1e03d..db4d3017e7400812615b1642a91bea0e4540eaf5 100644 (file)
@@ -24,7 +24,7 @@ time, instead of requiring custom builds of the runtime.
 For example, each of the following experiences requires different runtime
 capabilities:
 
-- Developer inner loop on on a mobile or WebAssembly workload: The runtime
+- Developer inner loop on a mobile or WebAssembly workload: The runtime
   should include support for the interpreter, hot reload, and the diagnostic
   server.
 - Release build iPhone app for the app store: The runtime should not include the
index 86a2c596f8230c22b66bff5cfdf96c2fd2812e37..68c9a3f8c5395d842b869d8dc9da783720b599f3 100644 (file)
@@ -49,7 +49,7 @@ terminology.
 | TFM | [Target Framework Moniker](https://docs.microsoft.com/dotnet/standard/frameworks) such as `net6.0` or `netstandard2.0`. |
 | TPA | Trusted Platform Assemblies used to be a special set of assemblies that comprised the platform assemblies, when it was originally designed. As of today, it is simply the set of assemblies known to constitute the application. |
 | URT | Universal Runtime. Ancient name for what ended up being .NET, is used in the WinError facility name FACILITY_URT. |
-| UTC | [Universal Tuple Compiler](https://blogs.msdn.microsoft.com/vcblog/2013/06/12/optimizing-c-code-overview/). The Microsoft C++ optimizer back-end that that starts by converting the information from the FrontEnd into tuples â€“ a binary stream of instructions. |
+| UTC | [Universal Tuple Compiler](https://blogs.msdn.microsoft.com/vcblog/2013/06/12/optimizing-c-code-overview/). The Microsoft C++ optimizer back-end that starts by converting the information from the FrontEnd into tuples â€“ a binary stream of instructions. |
 | UWP | [Universal Windows Platform (UWP)](https://docs.microsoft.com/en-us/windows/uwp/get-started/universal-application-platform-guide) is a platform-homogeneous application architecture available on every device that runs Windows 10. |
 | VSD | [Virtual Stub Dispatch](../design/coreclr/botr/virtual-stub-dispatch.md). Technique of using stubs for virtual method invocations instead of the traditional virtual method table. |
 | VM | Virtual machine. |
index 082008f0e490fc310a5df4439a787e853fbe4f0e..f331dafd067241ffff36b7e46eafabb92af745fa 100644 (file)
@@ -133,7 +133,7 @@ elseif (CLR_CMAKE_HOST_UNIX)
         message("Address Sanitizer (asan) enabled")
       endif ()
       if (${__UBSAN_POS} GREATER -1)
-        # all sanitizier flags are enabled except alignment (due to heavy use of __unaligned modifier)
+        # all sanitizer flags are enabled except alignment (due to heavy use of __unaligned modifier)
         list(APPEND CLR_CXX_SANITIZERS
           "bool"
           bounds
index 91d72a574c7c6b9d214c574f132c4dd84a3a0402..b5bfb5dd52ce0ea3e6c08db643e051aa15116af9 100644 (file)
@@ -31,7 +31,7 @@
 
   <PropertyGroup Condition="'$(PreReleaseVersionLabel)' == 'servicing'">
     <!-- If no servicing version is set we need to default to 0 in order for dependency versions to
-    be calculated propertly, if we don't set it to 0, we would get the dependency version using the
+    be calculated properly, if we don't set it to 0, we would get the dependency version using the
     product Patch Version -->
     <ServicingVersion Condition="'$(ServicingVersion)' == ''">0</ServicingVersion>
 
     </ItemGroup>
   </Target>
 
-  <Target Name="ValidateAssemblyVersionsInRefPack" 
+  <Target Name="ValidateAssemblyVersionsInRefPack"
           Condition="'$(SkipValidateAssemblyVersion)' != 'true' and '$(_AssemblyInTargetingPack)' == 'true' and '$(PreReleaseVersionLabel)' == 'servicing'"
           AfterTargets="CoreCompile" >
     <Error Condition="'$(AssemblyVersion)' != '$(LastReleasedStableAssemblyVersion)'" Text="AssemblyVersion should match last released assembly version $(LastReleasedStableAssemblyVersion)" />
   </Target>
 
-  <Target Name="ValidateServicingVersionIsPropertlySet"
+  <Target Name="ValidateServicingVersionIsProperlySet"
           Condition="'$(PreReleaseVersionLabel)' == 'servicing' and '$(DotNetBuildFromSource)' != 'true'"
           AfterTargets="GenerateNuspec">
     <Error Condition="'$(ServicingVersion)' == '0'" Text="ServicingVersion is set to 0 and it should be an increment of the patch version from the last released package." />
index 4d07037c413a04b24b022f110b19ed8b7f841938..addebb94903f03a3ad06c4e44545a4ebe95e056b 100644 (file)
@@ -58,7 +58,7 @@ jobs:
     - name: buildProductArtifactName
       value: 'MonoProduct__${{ parameters.runtimeVariant }}_$(osGroup)$(osSubgroup)_$(archType)_$(buildConfig)'
 
-    # minijit and monointerpreter do not use seperate product builds.
+    # minijit and monointerpreter do not use separate product builds.
     - ${{ if or(eq(parameters.runtimeVariant, 'minijit'), eq(parameters.runtimeVariant, 'monointerpreter')) }}:
       - name : buildProductArtifactName
         value : 'MonoProduct___$(osGroup)$(osSubgroup)_$(archType)_$(buildConfig)'
@@ -107,7 +107,7 @@ jobs:
         value: 'Checked'
       ${{ if eq(parameters.liveRuntimeBuildConfig, 'debug') }}:
         value: 'Debug'
-        
+
     - name: priorityArg
       value: ''
 
index 08da273763ef39c02801f4e9a416f891aae5b0d2..166485dc95b88bd05cea9796b722218c77bd13c9 100644 (file)
@@ -10,7 +10,7 @@ namespace System.Reflection
     // We can destroy the unmanaged part of collectible type only after the managed part is definitely gone and thus
     // nobody can call/allocate/reference anything related to the collectible assembly anymore. A call to finalizer
     // alone does not guarantee that the managed part is gone. A malicious code can keep a reference to some object
-    // in a way that that survives finalization, or we can be running during shutdown where everything is finalized.
+    // in a way that it survives finalization, or we can be running during shutdown where everything is finalized.
     //
     // The unmanaged LoaderAllocator keeps a reference to the managed LoaderAllocator in long weak handle. If the long
     // weak handle is null, we can be sure that the managed part of the LoaderAllocator is definitely gone and that it
index 711d5c343f1a372910d54af60d3f29e61ebead85..a2756657a4227a23d45192d77eef931c9813d569 100644 (file)
@@ -193,7 +193,7 @@ NOINLINE static Object* GetClassHelper(OBJECTREF objRef)
     return OBJECTREFToObject(refType);
 }
 
-// This routine is called by the Object.GetType() routine.   It is a major way to get the Sytem.Type
+// This routine is called by the Object.GetType() routine.   It is a major way to get the System.Type
 FCIMPL1(Object*, ObjectNative::GetClass, Object* pThis)
 {
     CONTRACTL
index 8862bbc507234b2befb12a27a6b38a92d6dc0af8..fe6367ba308a5f77694820f7d8389a7143f7b224 100644 (file)
@@ -91,7 +91,7 @@ static void InitCommon(VARARGS *data, VASigCookie** cookie)
     //                              += sizeOfArgs
     //                             /
     //   <arg1>                   /
-    // * <this>            ;; if an instance method (note: <this> is usally passed in
+    // * <this>            ;; if an instance method (note: <this> is usually passed in
     //                     ;; a register and wouldn't appear on the stack frame)
     //                     ;; higher memory
     //
index 6f1dd3a354834d8b8f44eb89845815e7970aa405..b643fa81a051e536859f6cd07639df9f7dcd3bcf 100644 (file)
@@ -309,7 +309,7 @@ CrashReportWriter::Indent(std::string& text)
 }
 
 void
-CrashReportWriter::WriteSeperator(std::string& text)
+CrashReportWriter::WriteSeparator(std::string& text)
 {
     if (m_comma)
     {
@@ -323,7 +323,7 @@ void
 CrashReportWriter::OpenValue(const char* key, char marker)
 {
     std::string text;
-    WriteSeperator(text);
+    WriteSeparator(text);
     if (key != nullptr)
     {
         text.append("\"");
@@ -354,7 +354,7 @@ void
 CrashReportWriter::WriteValue(const char* key, const char* value)
 {
     std::string text;
-    WriteSeperator(text);
+    WriteSeparator(text);
     text.append("\"");
     text.append(key);
     text.append("\" : \"");
index e5f0f618d944f9842b09834da7cd1a7dc0ad8ef9..ef712ba8a9a83f52c8c76228ca0220ba4ea12abc 100644 (file)
@@ -31,7 +31,7 @@ private:
     void Write(const std::string& text);
     void Write(const char* buffer);
     void Indent(std::string& text);
-    void WriteSeperator(std::string& text);
+    void WriteSeparator(std::string& text);
     void OpenValue(const char* key, char marker);
     void CloseValue(char marker);
     bool OpenWriter(const char* fileName);
index caa95fb75de4efdf4f00ff85bda66d4d91964a51..564aa84cd687eb76c17fdb59ca077618193f57ea 100644 (file)
@@ -33,7 +33,7 @@ extern "C" bool TryGetSymbol(ICorDebugDataTarget* dataTarget, uint64_t baseAddre
 #include "dwbucketmanager.hpp"
 #include "gcinterface.dac.h"
 
-// To include definiton of IsThrowableThreadAbortException
+// To include definition of IsThrowableThreadAbortException
 // #include <exstatecommon.h>
 
 CRITICAL_SECTION g_dacCritSec;
@@ -269,7 +269,7 @@ SplitFullName(_In_z_ PCWSTR fullName,
 
         memberStart = memberEnd;
 
-        for (;;)
+        while (true)
         {
             while (memberStart >= fullName &&
                    *memberStart != W('.'))
@@ -547,7 +547,7 @@ MetaEnum::NextDomainToken(AppDomain** appDomain,
     // Splay tokens across all app domains.
     //
 
-    for (;;)
+    while (true)
     {
         if (m_lastToken == mdTokenNil)
         {
@@ -583,7 +583,7 @@ MetaEnum::NextTokenByName(_In_opt_ LPCUTF8 namespaceName,
     HRESULT status;
     LPCUTF8 tokNamespace, tokName;
 
-    for (;;)
+    while (true)
     {
         if ((status = NextToken(token, &tokNamespace, &tokName)) != S_OK)
         {
@@ -626,7 +626,7 @@ MetaEnum::NextDomainTokenByName(_In_opt_ LPCUTF8 namespaceName,
     // Splay tokens across all app domains.
     //
 
-    for (;;)
+    while (true)
     {
         if (m_lastToken == mdTokenNil)
         {
@@ -1370,7 +1370,7 @@ SplitName::CdNextDomainField(ClrDataAccess* dac,
     // Splay fields across all app domains.
     //
 
-    for (;;)
+    while (true)
     {
         if (!split->m_lastField)
         {
@@ -1994,7 +1994,7 @@ void DacInstanceManager::Flush(bool fSaveBlock)
     // forget all the internal pointers.
     //
 
-    for (;;)
+    while (true)
     {
         FreeAllBlocks(fSaveBlock);
 
@@ -5335,7 +5335,7 @@ ClrDataAccess::FollowStub2(
         Thread* thread = task ? ((ClrDataTask*)task)->GetThread() : NULL;
         ULONG32 loops = 4;
 
-        for (;;)
+        while (true)
         {
             if ((status = FollowStubStep(thread,
                                          inFlags,
index 366a26f0663794d3734c44348876f841a630dfc0..0fda825fe90a3419a5b609721cd441f2b44b00a8 100644 (file)
@@ -99,7 +99,7 @@ HRESULT ClrDataAccess::EnumMemCollectImages()
                     ulSize = assembly->GetLoadedLayout()->GetSize();
                 }
 
-                // memory are mapped in in GetOsPageSize() size.
+                // memory are mapped in GetOsPageSize() size.
                 // Some memory are mapped in but some are not. You cannot
                 // write all in one block. So iterating through page size
                 //
@@ -787,7 +787,7 @@ HRESULT ClrDataAccess::EnumMemWalkStackHelper(CLRDataEnumMemoryFlags flags,
 
                         if (!pThread->IsAddressInStack(currentSP))
                         {
-                            _ASSERTE(!"Target stack has been corrupted, SP must in in the stack range.");
+                            _ASSERTE(!"Target stack has been corrupted, SP must in the stack range.");
                             break;
                         }
                     }
index 0a3138c5b77dbd9382f5f7a062b57d56c2955b91..70753777a96cc9ede6858d1b16bf279bf1cd4e74 100644 (file)
@@ -2822,7 +2822,7 @@ ClrDataTypeInstance::EnumMethodInstance(
 
     EX_TRY
     {
-        for (;;)
+        while (true)
         {
             mdMethodDef token;
 
@@ -2938,7 +2938,7 @@ ClrDataTypeInstance::EnumMethodInstanceByName(
 
     EX_TRY
     {
-        for (;;)
+        while (true)
         {
             mdMethodDef token;
 
@@ -3556,7 +3556,7 @@ ClrDataTypeInstance::GetDefinition(
             // XXX Microsoft - Generics issues?
 
             // Question - what does the GetCl return return here? The underlying element type?
-            // If so, we are lossing informaiton.
+            // If so, we are lossing information.
             //
             defType = m_typeHandle;
             *typeDefinition = new (nothrow)
index 4ddb16fa36a39cacdd0512c9f2bca46c41e088e2..4f850593d414fb07d035f915a5573dc3c08d7086 100644 (file)
@@ -33,7 +33,7 @@ typedef DPTR(InteropLib::ABI::ManagedObjectWrapperLayout) PTR_ManagedObjectWrapp
 #include <msodw.h>
 #endif // TARGET_UNIX
 
-// To include definiton of IsThrowableThreadAbortException
+// To include definition of IsThrowableThreadAbortException
 #include <exstatecommon.h>
 
 #include "rejit.h"
index 5e79a5ee1c92bc0df1c96da5a0ce232b00d2f7e8..6819f1ae36e5de7f6df3164d00c3cdbd628e2045 100644 (file)
@@ -3529,7 +3529,7 @@ HRESULT CordbBoxValue::GetMonitorEventWaitList(ICorDebugThreadEnum **ppThreadEnu
     #define ARRAY_CACHE_SIZE (1000)
 #else
 // For release, guess 4 pages should be enough. Subtract some bytes to store
-// the header so that that doesn't push us onto another page. (We guess a reasonable
+// the header so that it doesn't push us onto another page. (We guess a reasonable
 // header size, but it's ok if it's larger).
     #define ARRAY_CACHE_SIZE (4 * 4096 - 24)
 #endif
index 3e6da64f89b38a55be763efa13d9eec5db4e435a..ad5cf926c4eef64f179e0cee7c728f11a966dee4 100644 (file)
@@ -2646,7 +2646,7 @@ void CordbModule::SetLoadEventContinueMarker()
 //   The comparison is done via continue counters. The counter of the load
 //   event is cached via code:CordbModule::SetLoadEventContinueMarker.
 //
-//   This state is currently stored on the RS. Alternatively, it could likely be retreived from the LS state as
+//   This state is currently stored on the RS. Alternatively, it could likely be retrieved from the LS state as
 //   well. One disadvantage of the current model is that if we detach during the load-module callback and
 //   then reattach, the RS state is flushed and we lose the fact that we can toggle the jit flags.
 HRESULT CordbModule::EnsureModuleIsInLoadCallback()
@@ -3529,7 +3529,7 @@ HRESULT CordbReJitILCode::Init(DacSharedReJitInfo* pSharedReJitInfo)
             m_pClauses[i].TryLength = pClauses[i].TryLength;
             m_pClauses[i].HandlerOffset = pClauses[i].HandlerOffset;
             m_pClauses[i].HandlerLength = pClauses[i].HandlerLength;
-            // these two fields are a union in the image, but are seperate in the struct ICorDebug returns
+            // these two fields are a union in the image, but are separate in the struct ICorDebug returns
             m_pClauses[i].ClassToken = isFilter ? 0 : pClauses[i].ClassToken;
             m_pClauses[i].FilterOffset = isFilter ? pClauses[i].FilterOffset : 0;
         }
@@ -3564,7 +3564,7 @@ HRESULT CordbReJitILCode::Init(DacSharedReJitInfo* pSharedReJitInfo)
             m_pClauses[i].TryLength = pClauses[i].TryLength;
             m_pClauses[i].HandlerOffset = pClauses[i].HandlerOffset;
             m_pClauses[i].HandlerLength = pClauses[i].HandlerLength;
-            // these two fields are a union in the image, but are seperate in the struct ICorDebug returns
+            // these two fields are a union in the image, but are separate in the struct ICorDebug returns
             m_pClauses[i].ClassToken = isFilter ? 0 : pClauses[i].ClassToken;
             m_pClauses[i].FilterOffset = isFilter ? pClauses[i].FilterOffset : 0;
         }
index aa1f844ffc3f96e6cf3d3e222879fa95a94ecbdf..578b114c165299d26ffc92c3eeb496f740f1226c 100644 (file)
@@ -1,11 +1,11 @@
 // Licensed to the .NET Foundation under one or more agreements.
 // The .NET Foundation licenses this file to you under the MIT license.
+
 //*****************************************************************************
 // File: process.cpp
-//
-
 //
 //*****************************************************************************
+
 #include "stdafx.h"
 #include "primitives.h"
 #include "safewrap.h"
@@ -604,7 +604,7 @@ void CordbProcess::Free(void * p)
 //          runtime then DBI matches DAC. Technically because the DBI only matches runtime on major version number
 //          runtime and DAC could be from different builds. However because we service all three binaries together
 //          and DBI always loads the DAC that is sitting in the same directory DAC and DBI generally get tight
-//          version coupling. A user with admin privleges could put different builds together and no version check
+//          version coupling. A user with admin privileges could put different builds together and no version check
 //          would ever fail though.
 //
 //      - Desktop and Windows CoreCLR (new architecture)
@@ -6406,7 +6406,7 @@ HRESULT CordbProcess::SafeWriteThreadContext(LSPTR_CONTEXT pContext, const DT_CO
 #endif
 
 // 64 bit windows puts space for the first 6 stack parameters in the CONTEXT structure so that
-// kernel to usermode transitions don't have to allocate a CONTEXT and do a seperate sub rsp
+// kernel to usermode transitions don't have to allocate a CONTEXT and do a separate sub rsp
 // to allocate stack spill space for the arguments. This means that writing to P1Home - P6Home
 // will overwrite the arguments of some function higher on the stack, very bad. Conceptually you
 // can think of these members as not being part of the context, ie they don't represent something
index c7109e340032a52f228d2ec2647b745341f6b153..b45c65567c7e5075754f8879685ac17ebbb41be2 100644 (file)
@@ -1169,7 +1169,7 @@ HRESULT CordbFunction::GetArgumentType(DWORD dwIndex,
 // that they will return when asked for native code. The 1:1 mapping between
 // function and code was invalidated by generics but debuggers continue to use
 // the old API. When they do we need to have some code to hand them back even
-// though it is an arbitrary instantiation. Note that that the cannonical code
+// though it is an arbitrary instantiation. Note that the cannonical code
 // here is merely the first one that a user inspects... it is not guaranteed to
 // be the same in each debugging session but once set it will never change. It is
 // also definately NOT guaranteed to be the instantation over the runtime type
index 0439152372ece7c4731d9933aa9028fc333ccfc9..3923fee52c94a2c07297bcd58b08df760a96f5af 100644 (file)
@@ -1,12 +1,13 @@
 // Licensed to the .NET Foundation under one or more agreements.
 // The .NET Foundation licenses this file to you under the MIT license.
+
 //*****************************************************************************
 // File: RsMain.cpp
 //
-
-// Random RS utility stuff, plus root ICorCordbug implementation
+// Random RS utility stuff, plus root ICorDebug implementation
 //
 //*****************************************************************************
+
 #include "stdafx.h"
 #include "primitives.h"
 #include "safewrap.h"
index 57af1f53042bef078c764c10e0ed3a4d6b9d795d..7bd63544a0da29f9eaf535c118689c802770008e 100644 (file)
@@ -3526,7 +3526,7 @@ HRESULT CordbUnmanagedThread::GetThreadContext(DT_CONTEXT* pContext)
     // 3) The original context present when the hijack was started
     //
     // Both #1 and #3 are stored in the GetHijackCtx() space so of course you can't
-    // have them both. You have have #1 if IsContextSet() is true, otherwise it holds #3
+    // have them both. You have #1 if IsContextSet() is true, otherwise it holds #3.
     //
     // GenericHijack, FirstChanceHijackForSync, and RaiseExceptionHijack use #1 if available
     // and fallback to #3 if not. In other words they use GetHijackCtx() regardless of which thing it holds
index 21fe29b3aed421082770edfa7f4dddd5be57f074..76fd64731dd00c1fc60fdfe977b398191c5f7d94 100644 (file)
@@ -932,7 +932,7 @@ CordbWin32EventThread * ShimProcess::GetWin32EventThread()
 
 
 // Trivial accessor to mark whether we're interop-debugging.
-// Retreived via code:ShimProcess::IsInteropDebugging
+// Retrieved via code:ShimProcess::IsInteropDebugging
 void ShimProcess::SetIsInteropDebugging(bool fIsInteropDebugging)
 {
     m_fIsInteropDebugging = fIsInteropDebugging;
index 05de07a9c91ee988ff706bf47b26b94d4a4c2897..6be73bc8be21a0f46a0eb6669d29e7954c0fca54 100644 (file)
@@ -11,6 +11,8 @@
 // ****************************************************************************
 // Putting code & #includes, #defines, etc, before the stdafx.h will
 // cause the code,etc, to be silently ignored
+//
+
 #include "stdafx.h"
 #include "openum.h"
 #include "../inc/common.h"
@@ -23,10 +25,6 @@ const char *GetTType( TraceType tt);
 
 #define IsSingleStep(exception) ((exception) == EXCEPTION_SINGLE_STEP)
 
-
-
-
-
 // -------------------------------------------------------------------------
 //  DebuggerController routines
 // -------------------------------------------------------------------------
@@ -126,7 +124,7 @@ LOG((LF_CORDB, LL_EVERYTHING, "DPT::SPIPL GetNextPatch passed\n"));
 
     // If we decide to reorder the list, we'll need to keep the element
     // indexed by the hash function as the (sorted)first item.  Everything else
-    // chains off this element, can can thus stay put.
+    // chains off this element, can thus stay put.
     // Thus, either the element we just added is already sorted, or else we'll
     // have to move it elsewhere in the list, meaning that we'll have to swap
     // the second item & the new item, so that the index points to the proper
@@ -383,12 +381,13 @@ StackWalkAction ControllerStackInfo::WalkStack(FrameInfo *pInfo, void *data)
 
     ControllerStackInfo *i = (ControllerStackInfo *) data;
 
-    //save this info away for later use
+    // save this info away for later use.
     if (i->m_bottomFP == LEAF_MOST_FRAME)
         i->m_bottomFP = pInfo->fp;
 
-    // This is part of the targetted fix for issue 650903. (See the other
-    // parts in in code:TrackUMChain and code:DebuggerStepper::TrapStepOut.)
+    // This is part of the targetted fix for issue 650903 (see the other
+    // parts in code:TrackUMChain and code:DebuggerStepper::TrapStepOut).
+    //
     // pInfo->fIgnoreThisFrameIfSuppressingUMChainFromComPlusMethodFrameGeneric has been
     // set by TrackUMChain to help us remember that the current frame we're looking at is
     // ComPlusMethodFrameGeneric (we can't rely on looking at pInfo->frame to check
@@ -396,6 +395,7 @@ StackWalkAction ControllerStackInfo::WalkStack(FrameInfo *pInfo, void *data)
     // dude initiating this walk to remind us that our goal in life is to do a Step Out
     // during managed-only debugging. These two things together tell us we should ignore
     // this frame, rather than erroneously identifying it as the target frame.
+    //
 #ifdef FEATURE_COMINTEROP
     if(i->m_suppressUMChainFromComPlusMethodFrameGeneric &&
         (pInfo->chainReason == CHAIN_ENTER_UNMANAGED) &&
@@ -1483,9 +1483,9 @@ bool DebuggerController::UnapplyPatch(DebuggerControllerPatch *patch)
 
         CORDbgSetInstruction((CORDB_ADDRESS_TYPE *)patch->address, patch->opcode);
 
-        //VERY IMPORTANT to zero out opcode, else we might mistake
-        //this patch for an active on on ReadMem/WriteMem (see
-        //header file comment)
+        // VERY IMPORTANT to zero out opcode, else we might mistake
+        // this patch for an active one on ReadMem/WriteMem (see
+        // header file comment).
         InitializePRD(&(patch->opcode));
 
 #if !defined(HOST_OSX) || !defined(HOST_ARM64)
@@ -1525,9 +1525,10 @@ bool DebuggerController::UnapplyPatch(DebuggerControllerPatch *patch)
         *(unsigned short *) (breakpointWriterHolder.GetRW()+1)
           = (unsigned short) patch->opcode;
 #endif //this makes no sense on anything but X86
-        //VERY IMPORTANT to zero out opcode, else we might mistake
-        //this patch for an active on on ReadMem/WriteMem (see
-        //header file comment
+
+        // VERY IMPORTANT to zero out opcode, else we might mistake
+        // this patch for an active one on ReadMem/WriteMem (see
+        // header file comment.
         InitializePRD(&(patch->opcode));
 
         if (!VirtualProtect((void *) patch->address, 2, oldProt, &oldProt))
@@ -1879,7 +1880,7 @@ BOOL DebuggerController::AddBindAndActivateILSlavePatch(DebuggerControllerPatch
         SIZE_T masterILOffset = master->offset;
 
         // Loop through all the native offsets mapped to the given IL offset.  On x86 the mapping
-        // should be 1:1.  On WIN64, because there are funclets, we have have an 1:N mapping.
+        // should be 1:1.  On WIN64, because there are funclets, we have a 1:N mapping.
         DebuggerJitInfo::ILToNativeOffsetIterator it;
         for (dji->InitILToNativeOffsetIterator(it, masterILOffset); !it.IsAtEnd(); it.Next())
         {
@@ -4571,7 +4572,7 @@ void DebuggerPatchSkip::DebuggerDetachClean()
 
 
 //
-// We have to have a whole seperate function for this because you
+// We have to have a whole separate function for this because you
 // can't use __try in a function that requires object unwinding...
 //
 
index b6a48499f506aaffbd27cc4a39b733c4ac49fd51..615fd152d62267e4c7ebc3bcfbddf49aea177208 100644 (file)
@@ -3281,7 +3281,7 @@ void Debugger::getBoundaries(MethodDesc * md,
         return;
     }
 
-    // LCG methods have their own resolution scope that is seperate from a module
+    // LCG methods have their own resolution scope that is separate from a module
     // so they shouldn't have their symbols looked up in the module PDB. Right now
     // LCG methods have no symbols so we can just early out, but if they ever
     // had some symbols attached we would need a different way of getting to them.
@@ -5104,7 +5104,7 @@ void Debugger::SendSyncCompleteIPCEvent(bool isEESuspendedForGC)
 
     STRESS_LOG0(LF_CORDB, LL_INFO10000, "D::SSCIPCE: sync complete.\n");
 
-    // Synchronizing while in in rude shutdown should be extremely rare b/c we don't
+    // Synchronizing during the rude shutdown should be extremely rare b/c we don't
     // TART in rude shutdown. Shutdown must have started after we started to sync.
     // We know we're not on the shutdown thread here.
     // And we also know we can't block the shutdown thread (b/c it has the TSL and will
@@ -7223,7 +7223,7 @@ void Debugger::JitAttach(Thread * pThread, EXCEPTION_POINTERS * pExceptionInfo,
 //   - Failed to spawn jit-attach debugger.
 //
 //   Ultimately, the only thing that matters at the end is whether a debugger
-//   is now attached, which is retreived via CORDebuggerAttached().
+//   is now attached, which is retrieved via CORDebuggerAttached().
 //-----------------------------------------------------------------------------
 void Debugger::EnsureDebuggerAttached(Thread * pThread, EXCEPTION_POINTERS * pExceptionInfo, BOOL willSendManagedEvent, BOOL explicitUserRequest)
 {
@@ -10096,7 +10096,7 @@ void Debugger::FuncEvalComplete(Thread* pThread, DebuggerEval *pDE)
     // Note: it's possible that the AppDomain has (or is about to be) unloaded, which could lead to a
     // crash when we use the DebuggerModule.  Ideally we'd only be using AppDomain IDs here.
     // We can't easily convert our ADID to an AppDomain* (SystemDomain::GetAppDomainFromId)
-    // because we can't proove that that the AppDomain* would be valid (not unloaded).
+    // because we can't proove that the AppDomain* would be valid (not unloaded).
     //
     AppDomain *pDomain = pThread->GetDomain();
     AppDomain *pResultDomain = ((pDE->m_debuggerModule == NULL) ? pDomain : pDE->m_debuggerModule->GetAppDomain());
@@ -13785,10 +13785,10 @@ void Debugger::SignalHijackStarted(void)
 }
 
 //
-// This is the function that is called when we determine that a first chance exception really belongs to the Runtime,
-// and that that exception is due to a managed->unmanaged transition. This notifies the Right Side of this and the Right
-// Side fixes up the thread's execution state from there, making sure to remember that it needs to continue to hide the
-// hijack state of the thread.
+// This function is called when we determine that a first chance exception really belongs to the Runtime,
+// and that the exception is due to a managed->unmanaged transition. This notifies the Right Side which
+// fixes up the thread's execution state from there, making sure to remember that it needs to continue
+// to hide the hijack state of the thread.
 //
 void Debugger::ExceptionForRuntimeHandoffStart(void)
 {
@@ -14977,7 +14977,7 @@ HRESULT Debugger::FuncEvalSetup(DebuggerIPCE_FuncEvalInfo *pEvalInfo,
         return CORDBG_E_FUNC_EVAL_BAD_START_POINT;
     }
 
-    // Allocate the breakpoint instruction info for the debugger info in in executable memory.
+    // Allocate the breakpoint instruction info for the debugger info in executable memory.
     DebuggerHeap *pHeap = g_pDebugger->GetInteropSafeExecutableHeap_NoThrow();
     if (pHeap == NULL)
     {
index 7e0d1805ec0fa7980e6148ff206a5d30d4906fbf..ad8ced4892dfd3a16f37423c49e0f1ede5d0c47e 100644 (file)
@@ -3251,7 +3251,7 @@ struct DebuggerMethodInfoEntry
 };
 
 // class DebuggerMethodInfoTable:   Hash table to hold all the non-JIT related
-// info for each method we see.  The JIT infos live in a seperate table
+// info for each method we see.  The JIT infos live in a separate table
 // keyed by MethodDescs - there may be multiple
 // JITted realizations of each MethodDef, e.g. under different generic
 // assumptions.  Hangs off of the Debugger object.
index c4c8725156353c98f8c8e82001d21743c6a85f2b..88495632c5d9dc70be22a62626039e3fbffe168f 100644 (file)
@@ -3155,7 +3155,7 @@ static void RecordFuncEvalException(DebuggerEval *pDE,
  *
  * Does the main body of work (steps 1c onward) for the normal func-eval algorithm detailed at the
  * top of this file. The args have already been GC protected and we've transitioned into the appropriate
- * domain (steps 1a & 1b).  This has to be a seperate function from GCProtectArgsAndDoNormalFuncEval
+ * domain (steps 1a & 1b).  This has to be a separate function from GCProtectArgsAndDoNormalFuncEval
  * because otherwise we can't reliably find the right GCFrames to pop when unwinding the stack due to
  * an exception on 64-bit platforms (we have some GCFrames outside of the TRY, and some inside,
  * and they won't necesarily be layed out sequentially on the stack if they are all in the same function).
index e42d29365f7225ce1edbfbac6df93e07fd809a9b..0780703e7ac02570085c37992c20b16dfe50434b 100644 (file)
@@ -43310,7 +43310,7 @@ void gc_heap::verify_heap (BOOL begin_gc_p)
     uint8_t*        e_high = 0;
     uint8_t*        next_boundary = 0;
 #else //USE_REGIONS
-    // For no regions the gen number is seperately reduced when we detect the ephemeral seg.
+    // For no regions the gen number is separately reduced when we detect the ephemeral seg.
     int gen_num_to_stop = max_generation;
     uint8_t*        e_high = ephemeral_high;
     uint8_t*        next_boundary = generation_allocation_start (generation_of (max_generation - 1));
index 7ddb3badf9649625c8f2732771ee4b7df4f07552..009241251a3bb8552a8b57a577d5263ba953ce35 100644 (file)
@@ -70,7 +70,7 @@ class GCScan
     // scan.
     static bool GcDhUnpromotedHandlesExist(ScanContext* sc);
 
-    // Rescan the handles for additonal primaries that have been promoted since the last scan. Return true if
+    // Rescan the handles for additional primaries that have been promoted since the last scan. Return true if
     // any objects were promoted as a result.
     static bool GcDhReScan(ScanContext* sc);
 
index 74a7d746bce1c1e7759a5258fdb77b6b44bff9f9..8b536ad9dd7d8230384ce1b5b09295a5b6abab99 100644 (file)
@@ -949,8 +949,8 @@ static size_t GetLogicalProcessorCacheSizeFromOS()
         int64_t cacheSizeFromSysctl = 0;
         size_t sz = sizeof(cacheSizeFromSysctl);
         const bool success = false
-            // macOS-arm64: Since macOS 12.0, Apple added ".perflevelX." to determinate cache sizes for efficiency 
-            // and performance cores separetely. "perflevel0" stands for "performance"
+            // macOS-arm64: Since macOS 12.0, Apple added ".perflevelX." to determinate cache sizes for efficiency
+            // and performance cores separately. "perflevel0" stands for "performance"
             || sysctlbyname("hw.perflevel0.l2cachesize", &cacheSizeFromSysctl, &sz, nullptr, 0) == 0
             // macOS-arm64: these report cache sizes for efficiency cores only:
             || sysctlbyname("hw.l3cachesize", &cacheSizeFromSysctl, &sz, nullptr, 0) == 0
index 23265e5872b3f685a3d1035eae2b21e4edf741aa..de8d8d3f19dce29dd0fe440765ab30de913e77d2 100644 (file)
@@ -359,8 +359,8 @@ coreclr::~coreclr()
 
 HRESULT coreclr::Initialize(
     _In_ int propertyCount,
-    _In_reads_(propertCount) const char **keys,
-    _In_reads_(propertCount) const char **values,
+    _In_reads_(propertyCount) const char **keys,
+    _In_reads_(propertyCount) const char **values,
     _In_opt_z_ const char *appDomainName)
 {
     if (_clrInst != nullptr)
index 969eb120e5f56f544f0f8b947b9fa71bc16403fe..e95ebcdc4dfe53154ad49420195079fd7b1f6e7d 100644 (file)
@@ -82,7 +82,7 @@ HRESULT Assembler::CreateTLSDirectory() {
         DWORD offsetofAddressOfIndex         = (DWORD)offsetof(IMAGE_TLS_DIRECTORY32, AddressOfIndex);
         DWORD offsetofAddressOfCallBacks     = (DWORD)offsetof(IMAGE_TLS_DIRECTORY32, AddressOfCallBacks);
 
-            // Get memory for for the TLS directory block,as well as a spot for callback chain
+            // Get memory for the TLS directory block,as well as a spot for callback chain
         IMAGE_TLS_DIRECTORY32* tlsDir;
         if(FAILED(hr=m_pCeeFileGen->GetSectionBlock(tlsDirSec, sizeofdir + sizeofptr, sizeofptr, (void**) &tlsDir))) return(hr);
         DWORD* callBackChain = (DWORD*) &tlsDir[1];
@@ -138,7 +138,7 @@ HRESULT Assembler::CreateTLSDirectory() {
         DWORD offsetofAddressOfIndex         = (DWORD)offsetof(IMAGE_TLS_DIRECTORY64, AddressOfIndex);
         DWORD offsetofAddressOfCallBacks     = (DWORD)offsetof(IMAGE_TLS_DIRECTORY64, AddressOfCallBacks);
 
-            // Get memory for for the TLS directory block,as well as a spot for callback chain
+            // Get memory for the TLS directory block,as well as a spot for callback chain
         IMAGE_TLS_DIRECTORY64* tlsDir;
         if(FAILED(hr=m_pCeeFileGen->GetSectionBlock(tlsDirSec, sizeofdir + sizeofptr, sizeofptr, (void**) &tlsDir))) return(hr);
         __int64* callBackChain = (__int64*) &tlsDir[1];
index d3cbac67aa4e29ff6bf35a5b2540c105e8a1e0e0..03999e3c61872b0912e9d6f0a48c8d26740f75f4 100644 (file)
@@ -1917,7 +1917,7 @@ BYTE* PrettyPrintCABlobValue(PCCOR_SIGNATURE &typePtr,
                     if(n) appendStr(out," ");
                     _gcvt_s(str,64,*((float*)dataPtr), 8);
                     float df = (float)atof(str);
-                    // Must compare as underlying bytes, not floating point otherwise optmizier will
+                    // Must compare as underlying bytes, not floating point otherwise optimizer will
                     // try to enregister and comapre 80-bit precision number with 32-bit precision number!!!!
                     if((*(ULONG*)&df != (ULONG)GET_UNALIGNED_VAL32(dataPtr))||IsSpecialNumber(str))
                         sprintf_s(str, 64,"0x%08X",(ULONG)GET_UNALIGNED_VAL32(dataPtr));
@@ -1936,7 +1936,7 @@ BYTE* PrettyPrintCABlobValue(PCCOR_SIGNATURE &typePtr,
                     char *pch;
                     _gcvt_s(str,64,*((double*)dataPtr), 17);
                     double df = strtod(str, &pch);
-                    // Must compare as underlying bytes, not floating point otherwise optmizier will
+                    // Must compare as underlying bytes, not floating point otherwise optimizer will
                     // try to enregister and comapre 80-bit precision number with 64-bit precision number!!!!
                     if((*(ULONGLONG*)&df != (ULONGLONG)GET_UNALIGNED_VAL64(dataPtr))||IsSpecialNumber(str))
                         sprintf_s(str, 64, "0x%I64X",(ULONGLONG)GET_UNALIGNED_VAL64(dataPtr));
@@ -2608,7 +2608,7 @@ void DumpDefaultValue(mdToken tok, __inout __nullterminated char* szString, void
                 char szf[32];
                 _gcvt_s(szf,32,MDDV.m_fltValue, 8);
                 float df = (float)atof(szf);
-                // Must compare as underlying bytes, not floating point otherwise optmizier will
+                // Must compare as underlying bytes, not floating point otherwise optimizer will
                 // try to enregister and comapre 80-bit precision number with 32-bit precision number!!!!
                 if((*(ULONG*)&df == MDDV.m_ulValue)&&!IsSpecialNumber(szf))
                     szptr+=sprintf_s(szptr,SZSTRING_REMAINING_SIZE(szptr)," = %s(%s)",KEYWORD("float32"),szf);
@@ -2623,7 +2623,7 @@ void DumpDefaultValue(mdToken tok, __inout __nullterminated char* szString, void
                 _gcvt_s(szf,32,MDDV.m_dblValue, 17);
                 double df = strtod(szf, &pch); //atof(szf);
                 szf[31]=0;
-                // Must compare as underlying bytes, not floating point otherwise optmizier will
+                // Must compare as underlying bytes, not floating point otherwise optimizer will
                 // try to enregister and comapre 80-bit precision number with 64-bit precision number!!!!
                 if((*(ULONGLONG*)&df == MDDV.m_ullValue)&&!IsSpecialNumber(szf))
                     szptr+=sprintf_s(szptr,SZSTRING_REMAINING_SIZE(szptr)," = %s(%s)",KEYWORD("float64"),szf);
index 92a45790cd160fe33ad8965c7ef44f01df765c0f..2ec464e6a9ab33552aaa3669a7e12f8a41ad677a 100644 (file)
@@ -1568,7 +1568,7 @@ BOOL Disassemble(IMDInternalImport *pImport, BYTE *ILHeader, void *GUICookie, md
                 else
                     _gcvt_s(szf,32,(double)f, 8);
                 float fd = (float)atof(szf);
-                // Must compare as underlying bytes, not floating point otherwise optmizier will
+                // Must compare as underlying bytes, not floating point otherwise optimizer will
                 // try to enregister and comapre 80-bit precision number with 32-bit precision number!!!!
                 if(((__int32&)fd == v)&&!IsSpecialNumber(szf))
                     szptr+=sprintf_s(szptr,SZSTRING_REMAINING_SIZE(szptr), "%-10s %s", pszInstrName, szf);
@@ -1607,7 +1607,7 @@ BOOL Disassemble(IMDInternalImport *pImport, BYTE *ILHeader, void *GUICookie, md
                 else
                     _gcvt_s(szf,32,d, 17);
                 double df = strtod(szf, &pch); //atof(szf);
-                // Must compare as underlying bytes, not floating point otherwise optmizier will
+                // Must compare as underlying bytes, not floating point otherwise optimizer will
                 // try to enregister and comapre 80-bit precision number with 64-bit precision number!!!!
                 if (((__int64&)df == v)&&!IsSpecialNumber(szf))
                     szptr+=sprintf_s(szptr,SZSTRING_REMAINING_SIZE(szptr), "%-10s %s", pszInstrName, szf);
index 469b1d44728b26adf9f803fe13ba7fb6677656ef..df06b4c75c66ecab87664f5f86a9f31abdb8b28a 100644 (file)
@@ -198,7 +198,7 @@ public:
         }
     }
 
-    // Note that that is set difference, not subtration
+    // Note that this is set difference, not subtration
     void operator -=(const BitVector& arg)
     {
         WRAPPER_NO_CONTRACT;
index 57ba59f8a5ab129dd8acdd1d4577b5b001482cb7..e350ac7da32c08810e7df780d341b362c6531c47 100644 (file)
@@ -32,7 +32,7 @@ cpp_quote("EXTERN_GUID(CLR_ID_V4_DESKTOP, 0x267f3989, 0xd786, 0x4b9a, 0x9a, 0xf6
 // GUID CLR_ID_CORECLR :   uuid{8CB8E075-0A91-408E-9228-D66E00A3BFF6}
 cpp_quote("EXTERN_GUID(CLR_ID_CORECLR, 0x8CB8E075, 0x0A91, 0x408E, 0x92, 0x28, 0xD6, 0x6E, 0x00, 0xA3, 0xBF, 0xF6 );")
 
-// This guid first appears in the CoreCLR port to Windows Phone 8 - note that it is seperate from the CoreCLR id because it will
+// This guid first appears in the CoreCLR port to Windows Phone 8 - note that it is separate from the CoreCLR id because it will
 // potentially have a different verioning lineage than CoreCLR
 // GUID CLR_ID_PHONE_CLR :   uuid{E7237E9C-31C0-488C-AD48-324D3E7ED92A}
 cpp_quote("EXTERN_GUID(CLR_ID_PHONE_CLR, 0xE7237E9C, 0x31C0, 0x488C, 0xAD, 0x48, 0x32, 0x4D, 0x3E, 0x7E, 0xD9, 0x2A);")
index 7bd582640df1f4a456b52814a1a6143d91a2149c..c72111deb47643b627a3aeeffd388dd111bce482 100644 (file)
@@ -163,7 +163,7 @@ typedef enum _SYSTEM_INFORMATION_CLASS {
     SystemContextSwitchInformation,
     SystemRegistryQuotaInformation,
     SystemExtendServiceTableInformation,
-    SystemPrioritySeperation,
+    SystemPrioritySeparation,
     SystemVerifierAddDriverInformation,
     SystemVerifierRemoveDriverInformation,
     SystemProcessorIdleInformation,
index a880d77c29dc04f3085d4dc245854ddc11fbeb4d..ae0656dce71ee2c058d72a97433b11f3e8eaf509 100644 (file)
 #define ENABLE_CONTRACTS
 #endif
 
-// Finally, only define the implementaiton parts of contracts if this isn't a DAC build.
+// Finally, only define the implementation parts of contracts if this isn't a DAC build.
 #if defined(_DEBUG_IMPL) && defined(ENABLE_CONTRACTS)
 #define ENABLE_CONTRACTS_IMPL
 #endif
index adac762ccbb8769cda8e390d3d298a4eea396eb1..8a1b441e1fa1fa55d623815068c0cca1d94b084a 100644 (file)
@@ -997,7 +997,7 @@ interface ICorDebugManagedCallback : IUnknown
 {
     /*
      * All callbacks are called with the process in the synchronized state
-     * All callbacks are serialized, and are called in in the same thread.
+     * All callbacks are serialized, and are called in the same thread.
      * Each callback implementor must call Continue in a callback to
      *      resume execution.
      * If Continue is not called before returning, the process will
@@ -6276,7 +6276,7 @@ interface ICorDebugEval2 : IUnknown
                         [in, size_is(nTypeArgs)] ICorDebugType *ppTypeArgs[]);
 
     /*
-     * NewParamaterizedArray allocates a new array whose elements may be instances
+     * NewParameterizedArray allocates a new array whose elements may be instances
      * of a generic type.  The array is always created in the AppDomain the thread is
      * currently in.
      */
@@ -7358,7 +7358,7 @@ interface ICorDebugType : IUnknown
      * GetClass and the relevant metadata, but it is relatively painful: you would
      * have to lookup the class, then the metadata of that class
      * to find the "generic" base type, then instantiate this generic base type by
-     * looking up the type paramaters to the initial type,
+     * looking up the type parameters to the initial type,
      * and then perform the appropriate instantiation in the case where the class
      * happens to be either a generic class or a normal class with a constructed type
      * as its parent.  Looking up the base types is useful to implement common
index 90716f464a092e32d258df58e3633a1d16d45600..b390f3b911cf2ff85ad3f96b9c4d9533772369cf 100644 (file)
@@ -141,7 +141,7 @@ The first 4 options are mutually exclusive
         have managed thread local statics, which work through the HELPER. Support for this is considered
         legacy, and going forward, the EE should
 
-    * <NONE> This is a normal static field. Its address in in memory is determined by getFieldAddress. (see
+    * <NONE> This is a normal static field. Its address in memory is determined by getFieldAddress. (see
         also CORINFO_FLG_STATIC_IN_HEAP).
 
 
index 5a16650bbe938d3b12da2ff99f41ef9dbb796ac0..259ccdc819272bce45f0ad3064ca0afced4e7863 100644 (file)
@@ -316,7 +316,7 @@ public:
     virtual bool logMsg(unsigned level, const char* fmt, va_list args) = 0;
 
     // do an assert.  will return true if the code should retry (DebugBreak)
-    // returns false, if the assert should be igored.
+    // returns false, if the assert should be ignored.
     virtual int doAssert(const char* szFile, int iLine, const char* szExpr) = 0;
 
     virtual void reportFatalError(CorJitResult result) = 0;
@@ -338,13 +338,14 @@ public:
     //
     // SAMPLE_INTERVAL must be >= SIZE. SAMPLE_INTERVAL / SIZE
     // gives the average number of calls between table updates.
-    // 
+    //
     struct ClassProfile32
     {
-        enum { 
-            SIZE = 8, 
-            SAMPLE_INTERVAL = 32, 
-            CLASS_FLAG     = 0x80000000, 
+        enum
+        {
+            SIZE = 8,
+            SAMPLE_INTERVAL = 32,
+            CLASS_FLAG     = 0x80000000,
             INTERFACE_FLAG = 0x40000000,
             OFFSET_MASK    = 0x3FFFFFFF
         };
@@ -447,7 +448,7 @@ public:
     //  3. The JIT may mark a schema item with an alignment flag. This may be used to increase the alignment of a field.
     //  4. Each data entry shall be laid out without extra padding.
     //
-    //  The intention here is that it becomes possible to describe a C data structure with the alignment for ease of use with 
+    //  The intention here is that it becomes possible to describe a C data structure with the alignment for ease of use with
     //  instrumentation helper functions
     virtual JITINTERFACE_HRESULT allocPgoInstrumentationBySchema(
             CORINFO_METHOD_HANDLE     ftnHnd,
index 80985fcb2d85a0a831c436edb5934c57323f20ac..9c2c3a987d8114ef695a06d73d5e3a1130d1bb1a 100644 (file)
@@ -4046,7 +4046,7 @@ interface ICorProfilerInfo8 : ICorProfilerInfo7
                                [out] ReJITID * pReJitId);
 
     /*
-    * Retrieves informaiton about dynamic methods
+    * Retrieves information about dynamic methods
     *
     * Certain methods like IL Stubs or LCG do not have
     * associated metadata that can be retrieved using the IMetaDataImport APIs.
index 0afc1ea41e4aca9bbd09c4ed3e7b4b5179ef7133..3299c3f089d54b7006458bbe54ae6e24b5b8e6d7 100644 (file)
@@ -1403,7 +1403,7 @@ interface ISymUnmanagedWriter : IUnknown
 
     /*
      * Same as Initialize except that the final path name is the path string to
-     * name the final location of the pdb file. This is used in build enviroments in
+     * name the final location of the pdb file. This is used in build environments in
      * which the pdb is built in a temporary location and moved when the build is
      * complete.
      */
index f1e2d2b67fea181f47bf3512b6fa0f1380073750..b5574a50ae487513fda04c873a592220588d881b 100644 (file)
@@ -725,7 +725,7 @@ struct MSLAYOUT DacpGenerationAllocData
 
 struct MSLAYOUT DacpGcHeapDetails
 {
-    CLRDATA_ADDRESS heapAddr = 0; // Only filled in in server mode, otherwise NULL
+    CLRDATA_ADDRESS heapAddr = 0; // Only filled in server mode, otherwise NULL
     CLRDATA_ADDRESS alloc_allocated = 0;
 
     CLRDATA_ADDRESS mark_array = 0;
@@ -780,7 +780,7 @@ struct MSLAYOUT DacpHeapSegmentData
     CLRDATA_ADDRESS mem = 0;
     // pass this to request if non-null to get the next segments.
     CLRDATA_ADDRESS next = 0;
-    CLRDATA_ADDRESS gc_heap = 0; // only filled in in server mode, otherwise NULL
+    CLRDATA_ADDRESS gc_heap = 0; // only filled in server mode, otherwise NULL
     // computed field: if this is the ephemeral segment highMark includes the ephemeral generation
     CLRDATA_ADDRESS highAllocMark = 0;
 
@@ -881,7 +881,7 @@ struct MSLAYOUT DacpGCInterestingInfoData
 
 struct MSLAYOUT DacpGcHeapAnalyzeData
 {
-    CLRDATA_ADDRESS heapAddr = 0; // Only filled in in server mode, otherwise NULL
+    CLRDATA_ADDRESS heapAddr = 0; // Only filled in server mode, otherwise NULL
 
     CLRDATA_ADDRESS internal_root_array = 0;
     ULONG64         internal_root_array_index = 0;
index 85da85f96f542efd2f250b2682d36f83583dc668..4606f76aac1e5954ad90ff1be269f405f9097e44 100644 (file)
@@ -271,7 +271,7 @@ typedef struct
 
 
 //
-// structure use to retrieve class layout informaiton
+// structure use to retrieve class layout information
 //
 typedef struct
 {
@@ -626,7 +626,7 @@ DECLARE_INTERFACE_(IMDInternalImport, IUnknown)
         DWORD      *pdwFlags) PURE;
 
     //*****************************************
-    // return method implementation informaiton, like RVA and implflags
+    // return method implementation information, like RVA and implflags
     //*****************************************
     // returned void in v1.0/v1.1
     __checkReturn
@@ -636,7 +636,7 @@ DECLARE_INTERFACE_(IMDInternalImport, IUnknown)
         DWORD       *pdwImplFlags) PURE;    // [OUT] Impl. Flags
 
     //*****************************************
-    // return method implementation informaiton, like RVA and implflags
+    // return method implementation information, like RVA and implflags
     //*****************************************
     __checkReturn
     STDMETHOD(GetFieldRVA)(
index 4cb71b7b5d30eae803f05fef7346d8003f8d9823..ecb528829b702578e7b78b7862db06cd7a236503 100644 (file)
@@ -23,7 +23,7 @@
 #endif
 
 //
-// PDB annotations for the static contract analysis tool. These are seperated
+// PDB annotations for the static contract analysis tool. These are separated
 // from Contract.h to allow their inclusion in any part of the system.
 //
 
index e7b26005af05ecd103509901b6aa2ccd84ebe028..2642659ca8160550cf7b12715cbe66e3fdfb041a 100644 (file)
@@ -8754,19 +8754,19 @@ private:
     }
 
     // Ensure that code will not execute if an instruction set is usable. Call only
-    // if the instruction set has previously reported as unusable, but when
-    // that that status has not yet been recorded to the AOT compiler
+    // if the instruction set has previously reported as unusable, but the status
+    // has not yet been recorded to the AOT compiler.
     void compVerifyInstructionSetUnusable(CORINFO_InstructionSet isa)
     {
-        // use compExactlyDependsOn to capture are record the use of the isa
+        // use compExactlyDependsOn to capture are record the use of the ISA.
         bool isaUsable = compExactlyDependsOn(isa);
         // Assert that the is unusable. If true, this function should never be called.
         assert(!isaUsable);
     }
 
     // Answer the question: Is a particular ISA allowed to be used implicitly by optimizations?
-    // The result of this api call will match the target machine if the result is true
-    // If the result is false, then the target machine may have support for the instruction
+    // The result of this api call will match the target machine if the result is true.
+    // If the result is false, then the target machine may have support for the instruction.
     bool compOpportunisticallyDependsOn(CORINFO_InstructionSet isa) const
     {
         if ((opts.compSupportsISA & (1ULL << isa)) != 0)
index db0d382131ec7bb53a9669e7f97c92e6000761b6..4fe2afe238efb9c1833ff9018f5dc92e527e8765 100644 (file)
@@ -4579,7 +4579,7 @@ inline unsigned short LclVarDsc::lvRefCnt(RefCountState state) const
 //    state: the requestor's expected ref count state; defaults to RCS_NORMAL
 //
 // Notes:
-//    It is currently the caller's responsibilty to ensure this increment
+//    It is currently the caller's responsibility to ensure this increment
 //    will not cause overflow.
 
 inline void LclVarDsc::incLvRefCnt(unsigned short delta, RefCountState state)
@@ -4653,7 +4653,7 @@ inline weight_t LclVarDsc::lvRefCntWtd(RefCountState state) const
 //    state: the requestor's expected ref count state; defaults to RCS_NORMAL
 //
 // Notes:
-//    It is currently the caller's responsibilty to ensure this increment
+//    It is currently the caller's responsibility to ensure this increment
 //    will not cause overflow.
 
 inline void LclVarDsc::incLvRefCntWtd(weight_t delta, RefCountState state)
index f5c8093503ef1c6d69545c30c145e1f216d3371b..bfd7000486c8bd0d7b71467907a3b68bb14881fa 100644 (file)
@@ -2975,7 +2975,7 @@ void EfficientEdgeCountReconstructor::MarkInterestingSwitches(BasicBlock* block,
     // By default, we're guaranteed to see at least 30 calls to instrumented method, for dynamic PGO.
     // Hence we require at least 30 observed switch executions.
     //
-    // The profitabilty of peeling is related to the dominant fraction. The cost has a constant portion
+    // The profitability of peeling is related to the dominant fraction. The cost has a constant portion
     // (at a minimum the cost of a not-taken branch) and a variable portion, plus increased code size.
     // So we don't want to peel in cases where the dominant fraction is too small.
     //
index 0f488747819674d48ac8a01f7a40e379e69ea9bf..f9a5e65b6015e7bdb0393179d34839b315ae78d1 100644 (file)
@@ -4791,7 +4791,7 @@ void GCInfo::gcInfoRecordGCStackArgLive(GcInfoEncoder* gcInfoEncoder, MakeRegPtr
     assert(genStackPtr->rpdArg);
     assert(genStackPtr->rpdArgTypeGet() == rpdARG_PUSH);
 
-    // We only need to report these when we're doing fuly-interruptible
+    // We only need to report these when we're doing fully-interruptible
     assert(compiler->codeGen->GetInterruptible());
 
     GCENCODER_WITH_LOGGING(gcInfoEncoderWithLog, gcInfoEncoder);
@@ -4828,7 +4828,7 @@ void GCInfo::gcInfoRecordGCStackArgsDead(GcInfoEncoder* gcInfoEncoder,
     // Re-walk that list and mark all outgoing arguments that we're marked as live
     // earlier, as going dead after the call.
 
-    // We only need to report these when we're doing fuly-interruptible
+    // We only need to report these when we're doing fully-interruptible
     assert(compiler->codeGen->GetInterruptible());
 
     GCENCODER_WITH_LOGGING(gcInfoEncoderWithLog, gcInfoEncoder);
index be00ec67fd77c50b5300645a2d6556f59a1a0d24..6d53b5669598bbc938517b0b5dc35e1c5b19a366 100644 (file)
@@ -3703,7 +3703,7 @@ void Compiler::gtWalkOp(GenTree** op1WB, GenTree** op2WB, GenTree* base, bool co
  */
 GenTree* Compiler::gtWalkOpEffectiveVal(GenTree* op)
 {
-    for (;;)
+    while (true)
     {
         op = op->gtEffectiveVal();
 
@@ -13247,7 +13247,7 @@ GenTree* Compiler::gtFoldExprSpecial(GenTree* tree)
                 op = op2->AsColon()->ElseNode();
             }
 
-            // Clear colon flags only if the qmark itself is not conditionaly executed
+            // Clear colon flags only if the qmark itself is not conditionally executed
             if ((tree->gtFlags & GTF_COLON_COND) == 0)
             {
                 fgWalkTreePre(&op, gtClearColonCond);
@@ -15685,7 +15685,7 @@ void dispNodeList(GenTree* list, bool verbose)
         return;
     }
 
-    for (;;)
+    while (true)
     {
         next = list->gtNext;
 
index e2ece66db8c500af337cc44b5acf6648c15be201..f9feed9291d0231b7c833483ca73dfd033de79ec 100644 (file)
@@ -2208,7 +2208,7 @@ public:
     //     });
     //
     // This function is generally more efficient that the operand iterator and should be preferred over that API for
-    // hot code, as it affords better opportunities for inlining and acheives shorter dynamic path lengths when
+    // hot code, as it affords better opportunities for inlining and achieves shorter dynamic path lengths when
     // deciding how operands need to be accessed.
     //
     // Note that this function does not respect `GTF_REVERSE_OPS`. This is always safe in LIR, but may be dangerous
@@ -8541,7 +8541,7 @@ inline GenTree* GenTree::gtGetOp2IfPresent() const
 inline GenTree* GenTree::gtEffectiveVal(bool commaOnly /* = false */)
 {
     GenTree* effectiveVal = this;
-    for (;;)
+    while (true)
     {
         if (effectiveVal->gtOper == GT_COMMA)
         {
index e2360e7f7c80d62a5a2e2c8bca33bcf389723ad9..513460cd63e8aa90177721480d2ca20005744556 100644 (file)
@@ -8261,7 +8261,7 @@ bool Compiler::impCanPInvokeInlineCallSite(BasicBlock* block)
 //   Sets GTF_CALL_M_PINVOKE on the call for pinvokes.
 //
 //   Also sets GTF_CALL_UNMANAGED on call for inline pinvokes if the
-//   call passes a combination of legality and profitabilty checks.
+//   call passes a combination of legality and profitability checks.
 //
 //   If GTF_CALL_UNMANAGED is set, increments info.compUnmanagedCallCountWithGCTransition
 
index 65124bfc35533a611620422cee8ff9fc25013604..e3b40f19a007bc0009fe0a8d9bbaab885600c6d1 100644 (file)
@@ -5693,7 +5693,7 @@ bool Lowering::TryGetContainableHWIntrinsicOp(GenTreeHWIntrinsic* containingNode
                 case NI_AVX_InsertVector128:
                 case NI_AVX2_InsertVector128:
                 {
-                    // InsertVector128 is special in that that it returns a TYP_SIMD32 but takes a TYP_SIMD16
+                    // InsertVector128 is special in that it returns a TYP_SIMD32 but takes a TYP_SIMD16.
                     assert(!supportsSIMDScalarLoads);
 
                     const unsigned expectedSize = 16;
index 8c5d0acc1800e931f860ba61525b0a481cc48eaa..6ed24c6dbd93e227633105e947554084ccc0c2da 100644 (file)
@@ -2270,7 +2270,7 @@ void LinearScan::checkLastUses(BasicBlock* block)
 //
 // Arguments:
 //    block                 - The block for which we're selecting a predecesor.
-//    prevBlock             - The previous block in in allocation order.
+//    prevBlock             - The previous block in allocation order.
 //    pPredBlockIsAllocated - A debug-only argument that indicates whether any of the predecessors have been seen
 //                            in allocation order.
 //
@@ -10272,7 +10272,7 @@ bool LinearScan::IsResolutionMove(GenTree* node)
 //
 bool LinearScan::IsResolutionNode(LIR::Range& containingRange, GenTree* node)
 {
-    for (;;)
+    while (true)
     {
         if (IsResolutionMove(node))
         {
index 89549dfbf60974fe5c09f776bedab5e7e85e8211..32d06c99502266102e03c4fde3fd97284559aa89 100644 (file)
@@ -1359,7 +1359,7 @@ private:
     //     tree nodes are consumed.
     //   - In LSRA_DUMP_REFPOS, which is after the intervals are built, but before
     //     register allocation, each node is dumped, along with all of the RefPositions,
-    //     The Intervals are identifed as Lnnn for lclVar intervals, Innn for for other
+    //     The Intervals are identifed as Lnnn for lclVar intervals, Innn for other
     //     intervals, and Tnnn for internal temps.
     //   - In LSRA_DUMP_POST, which is after register allocation, the registers are
     //     shown.
@@ -2222,7 +2222,7 @@ public:
     // Used by RefTypeDef/Use positions of a multi-reg call node.
     // Indicates the position of the register that this ref position refers to.
     // The max bits needed is based on max value of MAX_RET_REG_COUNT value
-    // across all targets and that happens 4 on on Arm.  Hence index value
+    // across all targets and that happened to be 4 on Arm.  Hence index value
     // would be 0..MAX_RET_REG_COUNT-1.
     unsigned char multiRegIdx : 2;
 
index f783134873dcd8e92cca1744349ee8bd2692c835..06d807772f36cd70de188c7f125f5185e043bf21 100644 (file)
@@ -173,7 +173,7 @@ int LinearScan::BuildShiftLongCarry(GenTree* tree)
 }
 
 //------------------------------------------------------------------------
-// BuildNode: Build the RefPositions for for a node
+// BuildNode: Build the RefPositions for a node
 //
 // Arguments:
 //    treeNode - the node of interest
index f9a5bfa98d5fad4ff42edc46974c85670d3ec794..d0961b2785d9d89802e3784c3a66340ee9107558 100644 (file)
@@ -26,7 +26,7 @@ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 #include "lower.h"
 
 //------------------------------------------------------------------------
-// BuildNode: Build the RefPositions for for a node
+// BuildNode: Build the RefPositions for a node
 //
 // Arguments:
 //    treeNode - the node of interest
index b00b9c27b164ee6200ec1da0ce23b96f502bff5a..e040ada477d27e9417b3ddc1c03765341fc00405 100644 (file)
@@ -26,7 +26,7 @@ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 #include "lower.h"
 
 //------------------------------------------------------------------------
-// BuildNode: Build the RefPositions for for a node
+// BuildNode: Build the RefPositions for a node
 //
 // Arguments:
 //    treeNode - the node of interest
index 1e5f03463c807953b8fc60a37087a527828ce178..f85ad2aa72b92610710fe6dcfb19578f9b51e27c 100644 (file)
@@ -26,7 +26,7 @@ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 #include "lower.h"
 
 //------------------------------------------------------------------------
-// BuildNode: Build the RefPositions for for a node
+// BuildNode: Build the RefPositions for a node
 //
 // Arguments:
 //    treeNode - the node of interest
index bf6dd801857c62220d22f89312de98e4f993b854..b709065e65c370c226610c2fc7981866c6203172 100644 (file)
@@ -1606,7 +1606,7 @@ void CallArgs::EvalArgsToTemps(Compiler* comp, GenTreeCall* call)
                     // For GT_MKREFANY, typically the actual struct copying does
                     // not have any side-effects and can be delayed. So instead
                     // of using a temp for the whole struct, we can just use a temp
-                    // for operand that that has a side-effect
+                    // for operand that has a side-effect.
                     GenTree* operand;
                     if ((argx->AsOp()->gtOp2->gtFlags & GTF_ALL_EFFECT) == 0)
                     {
index 882a67c2304d84e3e0e500c8c9510c37336b95f7..0cd61f5830a77ea225235b4c4ecf7760322dfce5 100644 (file)
@@ -290,7 +290,7 @@ void MorphInitBlockHelper::PrepareSrc()
 
 //------------------------------------------------------------------------
 // TrySpecialCases: check special cases that require special transformations.
-//    We don't have any for for init block.
+//    We don't have any for init block.
 //
 void MorphInitBlockHelper::TrySpecialCases()
 {
index 335a4c1d4fba48cba172e4f8121aa11bbee99e14..096b7eaeb54bebec4e14b9ffd6502153263232ac 100644 (file)
@@ -1218,7 +1218,7 @@ public:
     }
 
     // At the end of the merge store results of the dataflow equations, in a postmerge state.
-    // We also handle the case where calls conditionally kill CSE availabilty.
+    // We also handle the case where calls conditionally kill CSE availability.
     //
     bool EndMerge(BasicBlock* block)
     {
@@ -1251,9 +1251,9 @@ public:
         // If it is 'true' then the initial value of m_preMergeOut was different than the final value that
         // we computed for bbCseOut.  When it is true we will visit every the successor of 'block'
         //
-        // This is also why we need to allocate an extra bit in our cseLivenessTrair BitVecs.
-        // We always need to visit our successor blocks once, thus we require that that the first time
-        // that we visit a block we have a bit set in m_preMergeOut that won't be set when we compute
+        // This is also why we need to allocate an extra bit in our cseLivenessTraits BitVecs.
+        // We always need to visit our successor blocks once, thus we require that the first time
+        // we visit a block we have a bit set in m_preMergeOut that won't be set when we compute
         // the new value of bbCseOut.
         //
         bool notDone = !BitVecOps::Equal(m_comp->cseLivenessTraits, block->bbCseOut, m_preMergeOut);
@@ -1887,7 +1887,7 @@ public:
 
             // The enregCount only tracks the uses of integer registers
             //
-            // We could track floating point register usage seperately
+            // We could track floating point register usage separately
             // but it isn't worth the additional complexity as floating point CSEs
             // are rare and we typically have plenty of floating point register available.
             //
index bb48b01e7f059b51d958c9ecfc4d53d6f4dd49e2..6b1b5f80f12159c1138b75dadb86f92e08fe48e8 100644 (file)
@@ -15,7 +15,7 @@
             a) TYP_UNKNOWN means 'baseType' of SIMD vector which is not known apriori
             b) Each method maps to a unique intrinsic Id
             c) To facilitate argument types to be used as an array initializer, args are listed within "{}" braces.
-            d) Since comma is used as actual param seperator in a macro, TYP_UNDEF entries are added to keep param count constant.
+            d) Since comma is used as actual param separator in a macro, TYP_UNDEF entries are added to keep param count constant.
             e) TODO-Cleanup: when we plumb TYP_SIMD through front-end, replace TYP_STRUCT with TYP_SIMD.
      */
 
index 6f72b1e9ab68aa14c357a07b6fcfdb00a0cfc9ee..a8df1b89569b0236f4d71e2e1e5993d94dfe7055 100644 (file)
@@ -94,7 +94,7 @@ struct HashTableInfo<unsigned>
 //
 // Resolving collisions using a bucket chain avoids the primary clustering
 // issue common in linearly-probed open addressed hash tables, while using
-// buckets as chain nodes avoids the allocaiton traffic typical of chained
+// buckets as chain nodes avoids the allocation traffic typical of chained
 // tables. Applying the hopscotch algorithm in the aforementioned paper
 // could further improve performance by optimizing access patterns for
 // better cache usage.
index 52733875119aca82061721b8df109d7999342e5e..734011625c07682d3eea955ca545cc911b4e7e60 100644 (file)
@@ -22,7 +22,7 @@
 // In addition to classical numbering, this implementation also performs disambiguation of heap writes,
 // using memory SSA and the following aliasing model:
 //
-// 1. Arrays of different types do not alias - taking into account the array compatibilty rules, i. e.
+// 1. Arrays of different types do not alias - taking into account the array compatibility rules, i. e.
 //    "int[] <-> uint[]" and such being allowed.
 // 2. Different static fields do not alias (meaning mutable overlapping RVA statics are not supported).
 // 3. Different class fields do not alias. Struct fields are allowed to alias - this supports code that
index ed57397560c25018e11c10eb2da9b49f28c5171d..2f4b00be2b2abd620e6b5f572fa4adc6608e5fca 100644 (file)
@@ -890,7 +890,7 @@ HRESULT RegMeta::RefToDefOptimization()
             }
 
             // In the case of global function, we have tkParent as m_tdModule.
-            // We will always do the optmization.
+            // We will always do the optimization.
             if (TypeFromToken(tkParent) == mdtTypeRef)
             {
                 // If we're preserving local typerefs, skip this token
index 0bf150e44e49d7fa38826235f041e03220026072..21fa4e0409a169f93676a8179cf9f38902e174b8 100644 (file)
@@ -528,7 +528,7 @@ private:
         int     iLast;
         int     nResult;
 
-        for (;;)
+        while (true)
         {
             // if less than two elements you're done.
             if (iLeft >= iRight)
@@ -2861,7 +2861,7 @@ CMiniMdRW::PreSaveFull()
 
     m_bPreSaveDone = true;
 
-    // send the Ref->Def optmization notification to host
+    // send the Ref->Def optimization notification to host
     if (m_pHandler != NULL)
     {
         TOKENMAP * ptkmap = GetMemberRefToMemberDefMap();
@@ -5692,7 +5692,7 @@ CMiniMdRW::LookUpTableByCol(
             ridEnd = ridBegin + 1;
 
             // Search back to start of group.
-            for (;;)
+            while (true)
             {
                 if (ridBegin <= 1)
                 {
@@ -5712,7 +5712,7 @@ CMiniMdRW::LookUpTableByCol(
             // If desired, search forward to end of group.
             if (pRidEnd != NULL)
             {
-                for (;;)
+                while (true)
                 {
                     if (ridEnd > GetCountRecs(ixTbl))
                     {
@@ -7186,7 +7186,7 @@ VirtualSort::SortRange(
     HRESULT hr;
     int     iLast;
 
-    for (;;)
+    while (true)
     {
         // if less than two elements you're done.
         if (iLeft >= iRight)
index ad1dc9a6cc79db97b1aa4af196c41c2a44292819..144d63b11899561344399a8e9babd192d11c3251 100644 (file)
@@ -353,7 +353,7 @@ public:
         mdMethodDef mb);                    // The method for which to get props.
 
     //*****************************************
-    // return method implementation informaiton, like RVA and implflags
+    // return method implementation information, like RVA and implflags
     //*****************************************
     __checkReturn
     STDMETHODIMP GetMethodImplProps(
index efe3acee47176468ded87fce024f76cb28157b1b..c5c0829089e3b53bb8693afb859e127ac76401ee 100644 (file)
@@ -11,7 +11,7 @@
 
 // The code in MD\DataSource\TargetTypes.* takes a direct dependency on
 // the layouts of types in MD. This is used by the debugger to read metadata
-// from a seperate process by deserializing the memory for these datastructures.
+// from a separate process by deserializing the memory for these datastructures.
 //
 // You are probably reading this comment because you changed a layout and
 // one of the static_asserts failed during build. This is what you should
index 976a280ba1f835895e359701a4d7dd21b3b81807..b76c2f40672260fa35a282ce3637fb5170372144 100644 (file)
@@ -337,7 +337,7 @@ public:
         mdMethodDef mb);                    // The method for which to get props.
 
     //*****************************************
-    // return method implementation informaiton, like RVA and implflags
+    // return method implementation information, like RVA and implflags
     //*****************************************
     __checkReturn
     STDMETHODIMP GetMethodImplProps(
index 97cf9e23876655d42d83670fe893f364fa23a4ba..9c801d70b0e6793b2cc0271e5bc3b6bf5cab2c06 100644 (file)
@@ -874,7 +874,7 @@ namespace System
             }
         }
 
-        // Allocate new multidimensional array of given dimensions. Assumes that that pLengths is immutable.
+        // Allocate new multidimensional array of given dimensions. Assumes that pLengths is immutable.
         internal static unsafe Array NewMultiDimArray(EETypePtr eeType, int* pLengths, int rank)
         {
             Debug.Assert(eeType.IsArray && !eeType.IsSzArray);
index a806f6f660ddd29ff65836261d583f7168eaa2a8..27dad91d46075c2f83db71fe44b541c746a79475 100644 (file)
@@ -1391,7 +1391,7 @@ namespace Internal.Runtime.TypeLoader
         {
             // X86 needs to pass callee pop information to the return value thunks, so, since it
             // only has 2 argument registers and may/may not need to return 8 bytes of data, put the return
-            // data in a seperate thread local store passed in the other available register (edx)
+            // data in a separate thread local store passed in the other available register (edx)
 
             fixed (ReturnBlock* actualReturnDataStructAddress = &t_NonArgRegisterReturnSpace)
             {
index fb62bf138364e7a898fb81733275fbee2a07d4b3..fad80851160439ab598d51b91e89dd0aeabd2e30 100644 (file)
@@ -545,7 +545,7 @@ namespace Internal.Runtime.TypeLoader
         }
 
         /// <summary>
-        /// Does a method actually recieve a VTable slot. (Must not be called for interface methods)
+        /// Does a method actually receive a VTable slot. (Must not be called for interface methods)
         /// </summary>
         /// <param name="method"></param>
         /// <returns></returns>
index 5dabbf7b190f6b4d69d005f7d6a81c9b2520b467..b4e577da5e297268d0c51e20febf33b30b140203 100644 (file)
@@ -62,7 +62,7 @@ EXTERN_C void FastCallFinalizeWorker(Object *obj, PCODE funcPtr);
 #define HAS_THISPTR_RETBUF_PRECODE              1
 
 #define CODE_SIZE_ALIGN                         16   // must alloc code blocks on 8-byte boundaries; for perf reasons we use 16 byte boundaries
-#define CACHE_LINE_SIZE                         64   // Current AMD64 processors have 64-byte cache lines as per AMD64 optmization manual
+#define CACHE_LINE_SIZE                         64   // Current AMD64 processors have 64-byte cache lines as per AMD64 optimization manual
 #define LOG2SLOT                                LOG2_PTRSIZE
 
 #define ENREGISTERED_RETURNTYPE_MAXSIZE         8    // bytes
@@ -124,7 +124,7 @@ ARG_SLOT FPSpillToR4(void* pSpillSlot)
     return *(DWORD*)pSpillSlot;
 }
 
-inline    
+inline
 ARG_SLOT FPSpillToR8(void* pSpillSlot)
 {
     LIMITED_METHOD_CONTRACT;
@@ -265,7 +265,7 @@ struct EHContext {
 // Exception handling
 //**********************************************************************
 
-inline PCODE GetIP(const CONTEXT * context) 
+inline PCODE GetIP(const CONTEXT * context)
 {
     CONTRACTL
     {
@@ -281,7 +281,7 @@ inline PCODE GetIP(const CONTEXT * context)
     return PCODE(context->Rip);
 }
 
-inline void SetIP(CONTEXT* context, PCODE rip) 
+inline void SetIP(CONTEXT* context, PCODE rip)
 {
     CONTRACTL
     {
@@ -305,14 +305,14 @@ inline TADDR GetSP(const CONTEXT * context)
         NOTHROW;
         GC_NOTRIGGER;
         SUPPORTS_DAC;
-        
+
         PRECONDITION(CheckPointer(context));
     }
     CONTRACTL_END;
 
     return (TADDR)context->Rsp;
 }
-inline void SetSP(CONTEXT *context, TADDR rsp) 
+inline void SetSP(CONTEXT *context, TADDR rsp)
 {
     CONTRACTL
     {
@@ -320,7 +320,7 @@ inline void SetSP(CONTEXT *context, TADDR rsp)
         NOTHROW;
         GC_NOTRIGGER;
         SUPPORTS_DAC;
-        
+
         PRECONDITION(CheckPointer(context));
     }
     CONTRACTL_END;
@@ -397,7 +397,7 @@ extern "C" void getFPReturn(int fpSize, INT64 *retval);
 
 struct ComToManagedExRecord; // defined in cgencpu.cpp
 
-inline BOOL IsUnmanagedValueTypeReturnedByRef(UINT sizeofvaluetype) 
+inline BOOL IsUnmanagedValueTypeReturnedByRef(UINT sizeofvaluetype)
 {
     LIMITED_METHOD_CONTRACT;
 
@@ -422,7 +422,7 @@ DECLSPEC_ALIGN(8) struct UMEntryThunkCode
     BYTE            m_padding[4];
     BYTE            m_movR10[2];    // MOV R10,
     LPVOID          m_uet;          //          pointer to start of this structure
-    BYTE            m_movRAX[2];    // MOV RAX, 
+    BYTE            m_movRAX[2];    // MOV RAX,
     DECLSPEC_ALIGN(8)
     const BYTE*     m_execstub;     //          pointer to destination code // ensure this is qword aligned
     BYTE            m_jmpRAX[3];    // JMP RAX
@@ -442,7 +442,7 @@ DECLSPEC_ALIGN(8) struct UMEntryThunkCode
         LIMITED_METHOD_CONTRACT;
 
         return offsetof(UMEntryThunkCode, m_movR10);
-    }    
+    }
 };
 #include <poppack.h>
 
@@ -456,7 +456,7 @@ DWORD GetOffsetAtEndOfFunction(ULONGLONG           uImageBase,
 
 // ClrFlushInstructionCache is used when we want to call FlushInstructionCache
 // for a specific architecture in the common code, but not for other architectures.
-// We call ClrFlushInstructionCache whenever we create or modify code in the heap. 
+// We call ClrFlushInstructionCache whenever we create or modify code in the heap.
 // Currently ClrFlushInstructionCache has no effect on AMD64
 //
 
index e95e0c67bde287d50e2bfff489b72636516248c1..82cbe6a4d9d03394f66d00b457fefeecef3a352d 100644 (file)
@@ -62,7 +62,7 @@ EXTERN _VarargPInvokeStubWorker@12:PROC
 EXTERN _GenericPInvokeCalliStubWorker@12:PROC
 
 ; To debug that LastThrownObjectException really is EXCEPTION_COMPLUS
-ifdef TRACK_CXX_EXCEPTION_CODE_HACK    
+ifdef TRACK_CXX_EXCEPTION_CODE_HACK
 EXTERN __imp____CxxFrameHandler:PROC
 endif
 
@@ -130,7 +130,7 @@ endif ; _DEBUG
 PUSH_CPFH_FOR_COM macro trashReg, pFrameBaseReg, pFrameOffset
 
     ;
-    ; Setup the FrameHandlerExRecord 
+    ; Setup the FrameHandlerExRecord
     ;
     push    dword ptr [pFrameBaseReg + pFrameOffset]
     push    _COMPlusFrameHandlerRevCom
@@ -257,7 +257,7 @@ ResetCurrentContext ENDP
 ;Incoming:
 ;   ESP+4: Pointer to buffer to which FPU state should be saved
 _CaptureFPUContext@4 PROC public
-        
+
         mov ecx, [esp+4]
         fnstenv [ecx]
         retn 4
@@ -267,7 +267,7 @@ _CaptureFPUContext@4 ENDP
 ; Incoming:
 ;  ESP+4: Pointer to buffer from which FPU state should be restored
 _RestoreFPUContext@4 PROC public
-        
+
         mov ecx, [esp+4]
         fldenv [ecx]
         retn 4
@@ -299,23 +299,23 @@ ___CxxFrameHandler3 PROC public
 
         mov             edx, [esp + 0ch]        ; grab the first argument
         mov             edx, [edx]              ; grab the SEH exception code
-        
+
         mov             dword ptr [eax + Thread_m_LastCxxSEHExceptionCode], edx
 
-Chain:        
+Chain:
 
         pop             edx
 
         ; [esp] contains the value of EAX we must restore.  We would like
         ; [esp] to contain the address of the real imported CxxFrameHandler
         ; so we can chain to it.
-        
+
         mov             eax, [__imp____CxxFrameHandler]
         mov             eax, [eax]
         xchg            [esp], eax
-        
+
         ret
-        
+
 ___CxxFrameHandler3 ENDP
 endif ; _DEBUG
 endif ; FEATURE_CORECLR
@@ -338,11 +338,11 @@ CallRtlUnwind ENDP
 
 _ResumeAtJitEHHelper@4 PROC public
         mov     edx, [esp+4]     ; edx = pContext (EHContext*)
-                
+
         mov     ebx, [edx+EHContext_Ebx]
         mov     esi, [edx+EHContext_Esi]
         mov     edi, [edx+EHContext_Edi]
-        mov     ebp, [edx+EHContext_Ebp]        
+        mov     ebp, [edx+EHContext_Ebp]
         mov     ecx, [edx+EHContext_Esp]
         mov     eax, [edx+EHContext_Eip]
         mov     [ecx-4], eax
@@ -354,8 +354,8 @@ _ResumeAtJitEHHelper@4 PROC public
         mov     [ecx-10h], eax
         lea     esp, [ecx-10h]
         pop     edx
-        pop     ecx             
-        pop     eax           
+        pop     ecx
+        pop     eax
         ret
 _ResumeAtJitEHHelper@4 ENDP
 
@@ -431,14 +431,14 @@ ifdef _DEBUG
         nop  ; Indicate that it is OK to call managed code directly from here
 endif
 
-        ; Reflect the changes to the context and only update non-volatile registers. 
+        ; Reflect the changes to the context and only update non-volatile registers.
         ; This will be used later to update REGDISPLAY
-        mov     edx, [esp+12+12]        
+        mov     edx, [esp+12+12]
         mov     [edx+EHContext_Ebx], ebx
         mov     [edx+EHContext_Esi], esi
         mov     [edx+EHContext_Edi], edi
         mov     [edx+EHContext_Ebp], ebp
-        
+
         pop     edi
         pop     esi
         pop     ebx
@@ -458,7 +458,7 @@ _GetSpecificCpuTypeAsm@0 PROC public
         push    ecx
         popfd               ; Save the updated flags.
         pushfd
-        pop     ecx         ; Retrive the updated flags
+        pop     ecx         ; Retrieve the updated flags
         xor     ecx, eax    ; Test if it actually changed (bit set means yes)
         push    eax
         popfd               ; Restore the flags
@@ -500,7 +500,7 @@ _GetSpecificCpuFeaturesAsm@4 PROC public
         push    ecx
         popfd               ; Save the updated flags.
         pushfd
-        pop     ecx         ; Retrive the updated flags
+        pop     ecx         ; Retrieve the updated flags
         xor     ecx, eax    ; Test if it actually changed (bit set means yes)
         push    eax
         popfd               ; Restore the flags
@@ -648,7 +648,7 @@ cachemiss:
         pop edi
         pop esi
         pop edx
-        
+
         ; jump back up to the epilog
         jmp complete
 
@@ -670,7 +670,7 @@ complete:
 
         ; Jump to callsite
         jmp eax
-        
+
         ; This will never be executed. It is just to help out stack-walking logic
         ; which disassembles the epilog to unwind the stack.
         ret
@@ -1052,8 +1052,8 @@ endif ; FEATURE_HIJACK
 ; void __stdcall JIT_EndCatch();
 JIT_EndCatch PROC stdcall public
 
-    ; make temp storage for return address, and push the address of that 
-    ; as the last arg to COMPlusEndCatch       
+    ; make temp storage for return address, and push the address of that
+    ; as the last arg to COMPlusEndCatch
     mov     ecx, [esp]
     push    ecx;
     push    esp;
@@ -1064,7 +1064,7 @@ JIT_EndCatch PROC stdcall public
     push    ebx
     push    ebp
 
-    call    _COMPlusEndCatch@20 ; returns old esp value in eax, stores jump address 
+    call    _COMPlusEndCatch@20 ; returns old esp value in eax, stores jump address
     ; now eax = new esp, [esp] = new eip
 
     pop     edx         ; edx = new eip
@@ -1310,7 +1310,7 @@ ifdef FEATURE_REMOTING
 _CRemotingServices__DispatchInterfaceCall@0 proc public
     ; push MethodDesc* passed in eax by precode and forward to the worker
     push        eax
-    
+
     ; NOTE: At this point the stack looks like
     ;
     ; esp--->  saved MethodDesc of Interface method
@@ -1470,10 +1470,10 @@ _ProfileEnterNaked@4 proc public
     push    ebp          ; Methods are always EBP framed
     add     [esp], 8     ; Skip past the return IP, straight to the stack args that were passed to our caller
                          ; Skip past saved EBP value: 4 bytes
-                         ;   - plus return address from caller's caller: 4 bytes   
+                         ;   - plus return address from caller's caller: 4 bytes
                          ;
-                         ; Assuming Foo() calls Bar(), and Bar() calls ProfileEnterNake() as illustrated (stack 
-                         ; grows up). We want to get what Foo() passed on the stack to Bar(), so we need to pass 
+                         ; Assuming Foo() calls Bar(), and Bar() calls ProfileEnterNake() as illustrated (stack
+                         ; grows up). We want to get what Foo() passed on the stack to Bar(), so we need to pass
                          ; the return address from caller's caller which is Foo() in this example.
                          ;
                          ; ProfileEnterNaked()
@@ -1494,8 +1494,8 @@ _ProfileEnterNaked@4 proc public
     mov     edx, esp     ; the address of the Platform structure
     mov     ecx, [esp+52]; The functionIDOrClientID parameter that was pushed to FunctionEnter
                          ; Skip past ProfilePlatformSpecificData we pushed: 40 bytes
-                         ;   - plus saved edi, esi : 8 bytes   
-                         ;   - plus return address from caller: 4 bytes   
+                         ;   - plus saved edi, esi : 8 bytes
+                         ;   - plus return address from caller: 4 bytes
 
     call    @ProfileEnter@8
 
@@ -1523,10 +1523,10 @@ _ProfileLeaveNaked@4 proc public
     push    ebp          ; Methods are always EBP framed
     add     [esp], 8     ; Skip past the return IP, straight to the stack args that were passed to our caller
                          ; Skip past saved EBP value: 4 bytes
-                         ;   - plus return address from caller's caller: 4 bytes   
+                         ;   - plus return address from caller's caller: 4 bytes
                          ;
-                         ; Assuming Foo() calls Bar(), and Bar() calls ProfileEnterNake() as illustrated (stack 
-                         ; grows up). We want to get what Foo() passed on the stack to Bar(), so we need to pass 
+                         ; Assuming Foo() calls Bar(), and Bar() calls ProfileEnterNake() as illustrated (stack
+                         ; grows up). We want to get what Foo() passed on the stack to Bar(), so we need to pass
                          ; the return address from caller's caller which is Foo() in this example.
                          ;
                          ; ProfileEnterNaked()
@@ -1540,7 +1540,7 @@ _ProfileLeaveNaked@4 proc public
     push    eax                 ;                                                  -- struct eax field
 
     ; Check if we need to save off any floating point registers
-    fstsw   ax           
+    fstsw   ax
     and     ax, 3800h    ; Check the top-of-fp-stack bits
     cmp     ax, 0        ; If non-zero, we have something to save
     jnz     SaveFPReg
@@ -1553,7 +1553,7 @@ _ProfileLeaveNaked@4 proc public
 
 SaveFPReg:
     push    1            ; mark that a float value is present               -- struct floatingPointValuePresent field
-    sub     esp, 4       ; Make room for the FP value                      
+    sub     esp, 4       ; Make room for the FP value
     fst     dword ptr [esp] ; Copy the FP value to the buffer as a float    -- struct floatBuffer field
     sub     esp, 8       ; Make room for the FP value
     fstp    qword ptr [esp] ; Copy FP values to the buffer as a double      -- struct doubleBuffer1 and doubleBuffer2 fields
@@ -1564,8 +1564,8 @@ Continue:
     mov     edx, esp     ; the address of the Platform structure
     mov     ecx, [esp+52]; The clientData that was pushed to FunctionEnter
                          ; Skip past ProfilePlatformSpecificData we pushed: 40 bytes
-                         ;   - plus saved edx, ecx : 8 bytes   
-                         ;   - plus return address from caller: 4 bytes   
+                         ;   - plus saved edx, ecx : 8 bytes
+                         ;   - plus return address from caller: 4 bytes
 
     call    @ProfileLeave@8
 
@@ -1601,10 +1601,10 @@ _ProfileTailcallNaked@4 proc public
     push    ebp          ; Methods are always EBP framed
     add     [esp], 8     ; Skip past the return IP, straight to the stack args that were passed to our caller
                          ; Skip past saved EBP value: 4 bytes
-                         ;   - plus return address from caller's caller: 4 bytes   
+                         ;   - plus return address from caller's caller: 4 bytes
                          ;
-                         ; Assuming Foo() calls Bar(), and Bar() calls ProfileEnterNake() as illustrated (stack 
-                         ; grows up). We want to get what Foo() passed on the stack to Bar(), so we need to pass 
+                         ; Assuming Foo() calls Bar(), and Bar() calls ProfileEnterNake() as illustrated (stack
+                         ; grows up). We want to get what Foo() passed on the stack to Bar(), so we need to pass
                          ; the return address from caller's caller which is Foo() in this example.
                          ;
                          ; ProfileEnterNaked()
@@ -1625,8 +1625,8 @@ _ProfileTailcallNaked@4 proc public
     mov     edx, esp     ; the address of the Platform structure
     mov     ecx, [esp+52]; The clientData that was pushed to FunctionEnter
                          ; Skip past ProfilePlatformSpecificData we pushed: 40 bytes
-                         ;   - plus saved edx, ecx : 8 bytes   
-                         ;   - plus return address from caller: 4 bytes   
+                         ;   - plus saved edx, ecx : 8 bytes
+                         ;   - plus return address from caller: 4 bytes
 
     call    @ProfileTailcall@8
 
@@ -1642,25 +1642,25 @@ _ProfileTailcallNaked@4 endp
 ; EAX       - the NDirectMethodDesc
 ; ECX       - may be return buffer address
 ; [ESP + 4] - the VASigCookie
-; 
+;
 _VarargPInvokeStub@0 proc public
     ; EDX <- VASigCookie
     mov     edx, [esp + 4]           ; skip retaddr
 
     mov     edx, [edx + VASigCookie__StubOffset]
     test    edx, edx
-    
+
     jz      GoCallVarargWorker
     ; ---------------------------------------
-    
+
     ; EAX contains MD ptr for the IL stub
     jmp     edx
-    
+
 GoCallVarargWorker:
     ;
     ; MD ptr in EAX, VASigCookie ptr at [esp+4]
     ;
-    
+
     STUB_PROLOG
 
     mov         esi, esp
@@ -1676,7 +1676,7 @@ GoCallVarargWorker:
 
     ; restore pMD
     pop     eax
-    
+
     STUB_EPILOG
 
     ; jump back to the helper - this time it won't come back here as the stub already exists
@@ -1689,7 +1689,7 @@ _VarargPInvokeStub@0 endp
 ; EAX       - the unmanaged target
 ; ECX, EDX  - arguments
 ; [ESP + 4] - the VASigCookie
-; 
+;
 _GenericPInvokeCalliHelper@0 proc public
     ; save the target
     push    eax
@@ -1699,10 +1699,10 @@ _GenericPInvokeCalliHelper@0 proc public
 
     mov     eax, [eax + VASigCookie__StubOffset]
     test    eax, eax
-    
+
     jz      GoCallCalliWorker
     ; ---------------------------------------
-    
+
     push    eax
 
     ; stack layout at this point:
@@ -1718,11 +1718,11 @@ _GenericPInvokeCalliHelper@0 proc public
     ; +----------------------+
     ; |   stub entry point   | ESP + 0
     ; ------------------------
-    
+
     ; remove VASigCookie from the stack
     mov     eax, [esp + 8]
     mov     [esp + 12], eax
-    
+
     ; move stub entry point below the RA
     mov     eax, [esp]
     mov     [esp + 8], eax
@@ -1730,7 +1730,7 @@ _GenericPInvokeCalliHelper@0 proc public
     ; load EAX with the target address
     pop     eax
     pop     eax
-    
+
     ; stack layout at this point:
     ;
     ; |         ...          |
@@ -1743,7 +1743,7 @@ _GenericPInvokeCalliHelper@0 proc public
 
     ; CALLI target address is in EAX
     ret
-    
+
 GoCallCalliWorker:
     ; the target is on the stack and will become m_Datum of PInvokeCalliFrame
     ; call the stub generating worker
@@ -1752,7 +1752,7 @@ GoCallCalliWorker:
     ;
     ; target ptr in EAX, VASigCookie ptr in EDX
     ;
-    
+
     STUB_PROLOG
 
     mov         esi, esp
@@ -1768,7 +1768,7 @@ GoCallCalliWorker:
 
     ; restore target
     pop     eax
-    
+
     STUB_EPILOG
 
     ; jump back to the helper - this time it won't come back here as the stub already exists
@@ -1785,15 +1785,15 @@ ifdef MDA_SUPPORTED
 ; actual imbalance check is implemented.
 ; [ESP + 4] - the StackImbalanceCookie
 ; [EBP + 8] - stack arguments (EBP frame pushed by the calling stub)
-; 
+;
 _PInvokeStackImbalanceHelper@0 proc public
     ; StackImbalanceCookie to EBX
     push    ebx
     lea     ebx, [esp + 8]
-    
+
     push    esi
     push    edi
-    
+
     ; copy stack args
     mov     edx, ecx
     mov     ecx, [ebx + StackImbalanceCookie__m_dwStackArgSize]
@@ -1805,10 +1805,10 @@ _PInvokeStackImbalanceHelper@0 proc public
 
     cld
     rep movsd
-    
+
     ; record pre-call ESP
     mov     [ebx + StackImbalanceCookie__m_dwSavedEsp], esp
-    
+
     ; call the target (restore ECX in case it's a thiscall)
     mov     ecx, edx
     call    [ebx + StackImbalanceCookie__m_pTarget]
@@ -1821,9 +1821,9 @@ _PInvokeStackImbalanceHelper@0 proc public
     push    eax
     push    edx
     sub     esp, 12
-    
+
 .errnz (StackImbalanceCookie__HAS_FP_RETURN_VALUE AND 00ffffffh), HAS_FP_RETURN_VALUE has changed - update asm code
-    
+
     ; save top of the floating point stack if the target has FP retval
     test    byte ptr [ebx + StackImbalanceCookie__m_callConv + 3], (StackImbalanceCookie__HAS_FP_RETURN_VALUE SHR 24)
     jz      noFPURetVal
@@ -1850,7 +1850,7 @@ noFPURetValToRestore:
     pop     esi
 
     pop     ebx
-    
+
     ; EBP frame and original stack arguments will be removed by the caller
     ret
 _PInvokeStackImbalanceHelper@0 endp
@@ -1863,7 +1863,7 @@ ifdef FEATURE_COMINTEROP
 ; This is a fast alternative to CallDescr* tailored specifically for
 ; COM to CLR calls. Stack arguments don't come in a continuous buffer
 ; and secret argument can be passed in EAX.
-; 
+;
 
 ; extern "C" ARG_SLOT __fastcall COMToCLRDispatchHelper(
 ;     INT_PTR dwArgECX,                 ; ecx
@@ -1880,11 +1880,11 @@ FASTCALL_FUNC COMToCLRDispatchHelper, 32
     ; ecx: dwArgECX
     ; edx: dwArgEDX
 
-    offset_pTarget              equ 4   
-    offset_pSecretArg           equ 8   
-    offset_pInputStack          equ 0Ch 
+    offset_pTarget              equ 4
+    offset_pSecretArg           equ 8
+    offset_pInputStack          equ 0Ch
     offset_wOutputStackSlots    equ 10h
-    offset_pOutputStackOffsets  equ 14h 
+    offset_pOutputStackOffsets  equ 14h
     offset_pCurFrame            equ 18h
 
     movzx   eax, word ptr [esp + offset_wOutputStackSlots]
@@ -1892,7 +1892,7 @@ FASTCALL_FUNC COMToCLRDispatchHelper, 32
     jnz     CopyStackArgs
 
     ; There are no stack args to copy and ECX and EDX are already setup
-    ; with the correct arguments for the callee, so we just have to 
+    ; with the correct arguments for the callee, so we just have to
     ; push the CPFH and make the call.
 
     PUSH_CPFH_FOR_COM   eax, esp, offset_pCurFrame     ; trashes eax
@@ -1975,11 +1975,11 @@ ifndef FEATURE_CORECLR
 _CopyCtorCallStub@0 proc public
     ; there may be an argument in ecx - save it
     push    ecx
-    
+
     ; push pointer to arguments
     lea     edx, [esp + 8]
     push    edx
-    
+
     call    _CopyCtorCallStubWorker@4
 
     ; restore ecx and tail call to the target
@@ -2005,7 +2005,7 @@ _StubDispatchFixupStub@0 proc public
     push        esi             ; pTransitionBlock
 
     call        _StubDispatchFixupWorker@16
-    
+
     STUB_EPILOG
 
 _StubDispatchFixupPatchLabel@0:
@@ -2047,14 +2047,14 @@ _ExternalMethodFixupStub@0 proc public
     ; NULL (it throws an exception if stub creation fails.)
 
     ; From here on, mustn't trash eax
-    
+
     STUB_EPILOG
 
 _ExternalMethodFixupPatchLabel@0:
 public _ExternalMethodFixupPatchLabel@0
 
     ; Tailcall target
-    jmp eax    
+    jmp eax
 
     ; This will never be executed. It is just to help out stack-walking logic
     ; which disassembles the epilog to unwind the stack.
@@ -2084,7 +2084,7 @@ _DelayLoad_MethodCall@0 proc public
     ; NULL (it throws an exception if stub creation fails.)
 
     ; From here on, mustn't trash eax
-    
+
     STUB_EPILOG
 
     ; Share the patch label
@@ -2101,7 +2101,7 @@ endif
 ; The call in softbound vtable slots initially points to this function.
 ; The pupose of this function is to transfer the control to right target and
 ; to optionally patch the target of the jump so that we do not take this slow path again.
-; 
+;
 _VirtualMethodFixupStub@0 proc public
 
         pop     eax         ; Pop the return address. It points right after the call instruction in the thunk.
@@ -2114,7 +2114,7 @@ _VirtualMethodFixupStub@0 proc public
         ; Preserve argument registers
         push    ecx
         push    edx
-        
+
         push    eax         ; address of the thunk
         push    ecx         ; this ptr
         call    _VirtualMethodFixupWorker@8
@@ -2148,10 +2148,10 @@ _ThePreStub@0 proc public
 
     mov         esi, esp
 
-    ; EAX contains MethodDesc* from the precode. Push it here as argument 
-    ; for PreStubWorker 
+    ; EAX contains MethodDesc* from the precode. Push it here as argument
+    ; for PreStubWorker
     push        eax
-    
+
     push        esi
 
     call        _PreStubWorker@8
@@ -2160,12 +2160,12 @@ _ThePreStub@0 proc public
     ; NULL (it throws an exception if stub creation fails.)
 
     ; From here on, mustn't trash eax
-    
+
     STUB_EPILOG
-    
+
     ; Tailcall target
     jmp eax
-    
+
     ; This will never be executed. It is just to help out stack-walking logic
     ; which disassembles the epilog to unwind the stack.
     ret
@@ -2209,12 +2209,12 @@ _GenericComPlusCallStub@0 proc public
 
     ; Get pComPlusCallInfo for return thunk
     mov         ecx, [ebx + ComPlusCallMethodDesc__m_pComPlusCallInfo]
-    
+
     STUB_EPILOG_RETURN
-    
+
     ; Tailcall return thunk
     jmp [ecx + ComPlusCallInfo__m_pRetThunk]
-    
+
     ; This will never be executed. It is just to help out stack-walking logic
     ; which disassembles the epilog to unwind the stack.
     ret
@@ -2292,7 +2292,7 @@ _TransparentProxyStub_CrossContext@0 proc public
 
     ; From here on, mustn't trash eax:edx
     mov         ecx, ebx            ; cbStackPop
-    
+
     mov         ebx, [esp+6*4]      ; get retaddr
     mov         [esp+6*4+ecx], ebx  ; put it where it belongs
 
@@ -2317,7 +2317,7 @@ endif ; FEATURE_REMOTING
 
 ifdef FEATURE_COMINTEROP
 ;--------------------------------------------------------------------------
-; This is the code that all com call method stubs run initially. 
+; This is the code that all com call method stubs run initially.
 ; Most of the real work occurs in ComStubWorker(), a C++ routine.
 ; The template only does the part that absolutely has to be in assembly
 ; language.
@@ -2339,7 +2339,7 @@ _ComCallPreStub@0 proc public
 
     lea     edi, [esp]
     lea     esi, [esp+3*4]
+
     push    edi                 ; pErrorReturn
     push    esi                 ; pFrame
     call    _ComPreStubWorker@8
@@ -2363,10 +2363,10 @@ _ComCallPreStub@0 proc public
 
 nostub:
 
-    ; Even though the ComPreStubWorker sets a 64 bit value as the error return code. 
-    ; Only the lower 32 bits contain usefula data. The reason for this is that the 
+    ; Even though the ComPreStubWorker sets a 64 bit value as the error return code.
+    ; Only the lower 32 bits contain usefula data. The reason for this is that the
     ; possible error return types are: failure HRESULT, 0 and floating point 0.
-    ; In each case, the data fits in 32 bits. Instead, we use the upper half of 
+    ; In each case, the data fits in 32 bits. Instead, we use the upper half of
     ; the return value to store number of bytes to pop
     mov     eax, [edi]
     mov     edx, [edi+4]
@@ -2383,7 +2383,7 @@ nostub:
     add     esp, edx            ; pop bytes of the stack
     push    ecx                 ; return address
 
-    ; We need to deal with the case where the method is PreserveSig=true and has an 8 
+    ; We need to deal with the case where the method is PreserveSig=true and has an 8
     ; byte return type. There are 2 types of 8 byte return types: integer and floating point.
     ; For integer 8 byte return types, we always return 0 in case of failure. For floating
     ; point return types, we return the value in the floating point register. In both cases
@@ -2411,7 +2411,7 @@ _DelayLoad_Helper&suffix&@0 proc public
     push        ecx             ; module
     push        edx             ; section index
 
-    push        eax             ; indirection cell address. 
+    push        eax             ; indirection cell address.
     push        esi             ; pTransitionBlock
 
     call        _DynamicHelperWorker@20
index 1eea5e42b1b54308a38c54536976c1233ee5bd79..6cee4bd31abd5f3ec4f2f421c4710eca27c82680 100644 (file)
@@ -52,7 +52,7 @@ namespace Internal.Runtime.TypeLoader
 
                         foreach (TypeEntryToRegister typeEntry in registrationData.TypesToRegister)
                         {
-                            // Keep track of registered type handles so that that we can rollback the registration on exception
+                            // Keep track of registered type handles so that we can rollback the registration on exception.
                             registeredTypes[registeredTypesCount++] = typeEntry;
 
                             // Information tracked in these dictionaries is (partially) redundant with information tracked by MRT.
@@ -134,7 +134,7 @@ namespace Internal.Runtime.TypeLoader
                         {
                             Debug.Assert(methodEntry._methodDictionary != IntPtr.Zero);
 
-                            // Keep track of registered method dictionaries so that that we can rollback the registration on exception
+                            // Keep track of registered method dictionaries so that we can rollback the registration on exception
                             registeredMethods[registeredMethodsCount++] = methodEntry;
 
                             // Register method dictionary -> components mapping first so that we can use it during rollback below
index dca219f10afb6051ab588d1e62a94cf39e8837a7..00afbd995bd8762503d3e9052e73005d7d0de2c0 100644 (file)
@@ -467,7 +467,7 @@ namespace Internal.Runtime.TypeLoader
 #endif
                     {
                         Environment.FailFast(
-                            "Failed to locate statics table entry for for field '" +
+                            "Failed to locate statics table entry for field '" +
                             fieldName +
                             "' on type " +
                             type.ToString());
index 6ab6f7c4fb3b0685a79fca9e645d5a5a7e09bf2e..a0cfbfd6b26096c3e7815960c1effac89ccf56f4 100644 (file)
@@ -824,7 +824,7 @@ namespace Internal.Runtime.TypeLoader
                 // This check looks for unboxing and instantiating stubs generated via the compiler backend
                 if (TypeLoaderEnvironment.TryGetTargetOfUnboxingAndInstantiatingStub(exactTarget, out fatFunctionPointerTarget))
                 {
-                    // If this is an unboxing and instantiating stub, use seperate table, find target, and create fat function pointer
+                    // If this is an unboxing and instantiating stub, use separate table, find target, and create fat function pointer
                     exactTarget = FunctionPointerOps.GetGenericMethodFunctionPointer(fatFunctionPointerTarget,
                                                                                         declaringType.ToIntPtr());
                 }
index fb7637e913a545bf8ba46987ba9cd5f532c997cd..66cd911473ffa1fe3dfb5f5e52f5a3e472720a4a 100644 (file)
@@ -26,7 +26,7 @@ namespace Internal.TypeSystem
         }
 
         /// <summary>
-        ///  Setter for RuntimeTypeHandle. Seperate from normal property as all uses should be done with great care.
+        ///  Setter for RuntimeTypeHandle. Separate from normal property as all uses should be done with great care.
         ///  Must not be set with partially constructed type handles
         /// </summary>
         public void SetRuntimeTypeHandleUnsafe(RuntimeTypeHandle runtimeTypeHandle)
index 41f11be778122a2a9b659b57be1f0773773312b9..b3089043cc919ae4b48829cadb1cbb6602be7112 100644 (file)
@@ -54,7 +54,7 @@ int LoadNativeStringResource(const NativeStringResourceTable &nativeStringResour
             const WCHAR undefMsg[] = W("Undefined resource string ID:0x");
             wcscpy_s(szBuffer, iMax, undefMsg);
 
-            // Compute if there is enough space for the message and ID
+            // Compute if there is enough space for the message and ID.
             WCHAR* nxt = NULL;
             int extraSpace = iMax - (ARRAY_SIZE(undefMsg) - 1);
             if (0 < extraSpace)
@@ -68,10 +68,10 @@ int LoadNativeStringResource(const NativeStringResourceTable &nativeStringResour
             }
             else
             {
-                // The only possible failure is that that string didn't fit the buffer. So the buffer contains
-                // partial string terminated by '\0'
+                // The only possible failure is that the string didn't fit the buffer. So the buffer contains
+                // partial string terminated by '\0'.
                 // We could return ERROR_INSUFFICIENT_BUFFER, but we'll error on the side of caution here and
-                // actually show something (given that this is likely a scenario involving a bug/deployment issue)
+                // actually show something (given that this is likely a scenario involving a bug/deployment issue).
                 len = iMax - 1;
             }
         }
index 60504567ae4812eac3cd34ac74ebd95afeea32cb..f18bd3e9baefde01ce5b5bb519c2c728ddb0bc73 100644 (file)
@@ -28,8 +28,6 @@ Abstract:
     If you want to add a PAL_ wrapper function to a native function in
     here, you also need to edit palinternal.h and win32pal.h.
 
-
-
 --*/
 
 #ifndef __PAL_H__
@@ -1596,7 +1594,7 @@ typedef struct _XMM_SAVE_AREA32 {
 //
 // If the context record is used as an input parameter, then for each
 // portion of the context record controlled by a flag whose value is
-// set, it is assumed that that portion of the context record contains
+// set, it is assumed that such portion of the context record contains
 // valid context. If the context record is being used to modify a threads
 // context, then only that portion of the threads context is modified.
 //
@@ -1842,7 +1840,7 @@ typedef struct _NEON128 {
 //
 // If the context record is used as an input parameter, then for each
 // portion of the context record controlled by a flag whose value is
-// set, it is assumed that that portion of the context record contains
+// set, it is assumed that such portion of the context record contains
 // valid context. If the context record is being used to modify a threads
 // context, then only that portion of the threads context is modified.
 //
@@ -2024,7 +2022,7 @@ typedef struct _IMAGE_ARM_RUNTIME_FUNCTION_ENTRY {
 //
 // If the context record is used as an input parameter, then for each
 // portion of the context record controlled by a flag whose value is
-// set, it is assumed that that portion of the context record contains
+// set, it is assumed that such portion of the context record contains
 // valid context. If the context record is being used to modify a threads
 // context, then only that portion of the threads context is modified.
 //
@@ -2201,7 +2199,7 @@ typedef struct _KNONVOLATILE_CONTEXT_POINTERS {
 //
 // If the context record is used as an input parameter, then for each
 // portion of the context record controlled by a flag whose value is
-// set, it is assumed that that portion of the context record contains
+// set, it is assumed that such portion of the context record contains
 // valid context. If the context record is being used to modify a threads
 // context, then only that portion of the threads context is modified.
 //
index a3ddfe35600a6320dbb409589b6497813a2de3f7..4c5363402df5f214746861a6a5f04a35a438d84e 100644 (file)
@@ -3,8 +3,6 @@
 
 /*++
 
-
-
 Module Name:
 
     filecrt.cpp
@@ -14,8 +12,6 @@ Abstract:
     Implementation of the file functions in the C runtime library that
     are Windows specific.
 
-
-
 --*/
 
 #include "pal/thread.hpp"
@@ -97,7 +93,7 @@ _open_osfhandle( INT_PTR osfhandle, int flags )
         }
         else /* the only file object with no unix_filename is a pipe */
         {
-            /* check if the file pipe descrptor is for read or write */
+            /* check if the file pipe descriptor is for read or write */
             if (pLocalData->open_flags == O_WRONLY)
             {
                 ERROR( "Couldn't open a write pipe on read mode\n");
index f08f6475daa96f41c7a1b628d9c1ff07ce03d0f6..00c7d70c8af58e30256a6fcaafb2e5b6152755f8 100644 (file)
@@ -229,11 +229,11 @@ PAL_fwprintf(
 Function:
   Internal_ScanfExtractFormatW
 
-Paramaters:
+Parameters:
   Fmt
     - format string to parse
     - first character must be a '%'
-    - paramater gets updated to point to the character after
+    - parameter gets updated to point to the character after
       the %<foo> format string
   Out
     - buffer will contain the %<foo> format string
index fee79c91df12b4eeacdde94f67d6835a68bc2af3..e014fe015e21f9bed85b5ed8245fed0adf5788ec 100644 (file)
@@ -112,16 +112,16 @@ static int Internal_Convertfwrite(CPalThread *pthrCurrent, const void *buffer, s
 Function:
   Internal_ExtractFormatA
 
-Paramaters:
+Parameters:
   Fmt
     - format string to parse
     - first character must be a '%'
-    - paramater gets updated to point to the character after
+    - parameter gets updated to point to the character after
       the %<foo> format string
   Out
     - buffer will contain the %<foo> format string
   Flags
-    - paramater will be set with the PRINTF_FORMAT_FLAGS defined above
+    - parameter will be set with the PRINTF_FORMAT_FLAGS defined above
   Width
     - will contain the width specified by the format string
     - -1 if none given
index 71f35f810bcf1950278d78b2186c40abde99ce7e..c0630974b16697d3194f52c13b941fa3b0a096c4 100644 (file)
@@ -3,8 +3,6 @@
 
 /*++
 
-
-
 Module Name:
 
     file.cpp
@@ -13,8 +11,6 @@ Abstract:
 
     Implementation of the file WIN API for the PAL
 
-
-
 --*/
 
 #include "pal/dbgmsg.h"
@@ -341,7 +337,7 @@ CorUnix::InternalCanonicalizeRealPath(LPCSTR lpUnixPath, PathCharString& lpBuffe
         // check if we are going to truncate the "/" corresponding to the
         // root folder (e.g. case of "/Volumes"). If so:
         //
-        // 1) Set the seperator to point to the NULL terminator of the specified
+        // 1) Set the separator to point to the NULL terminator of the specified
         //    file/folder name.
         //
         // 2) Null terminate lpBuffer
index 9544a369d3049685b93b56118742ca823e7e95f3..e50528ee696e12acaabb1de9278723f833ec8c9c 100644 (file)
@@ -86,7 +86,7 @@ PALSetShutdownIntent();
 Function:
   PALInitLock
 
-Take the initializaiton critical section (init_critsec). necessary to serialize
+Take the initialization critical section (init_critsec). necessary to serialize
 TerminateProcess along with PAL_Terminate and PAL_Initialize
 
 (no parameters)
index b1793318baebd5e1f0a485a8807158a070be3a6c..dc39af8f4d41aaca5c8bf2f578e9be6378b70d49 100644 (file)
@@ -89,7 +89,7 @@ There are 2 types of namespace collisions that must be handled.
    implementation (with some_function)
 
     [side note : for the Win32 PAL, this can be accomplished without touching
-    pal.h. In Windows, symbols in in dynamic libraries are resolved at
+    pal.h. In Windows, symbols in dynamic libraries are resolved at
     compile time. if an application that uses some_function is only linked to
     pal.dll, some_function will be resolved to the version in that DLL,
     even if other DLLs in the system provide other implementations. In addition,
index 2a24b158e0dfecf607ceb0576e00dcc692bbb5ed..a5a6ac15743bab6a41e332d49e683abbcad6b451 100644 (file)
@@ -1041,7 +1041,7 @@ void PALSetShutdownIntent()
 Function:
   PALInitLock
 
-Take the initializaiton critical section (init_critsec). necessary to serialize
+Take the initialization critical section (init_critsec). necessary to serialize
 TerminateProcess along with PAL_Terminate and PAL_Initialize
 
 (no parameters)
index 704c6daa4b256bca10467e05b14f4873055e227e..eb679d3d24957c6ff3eb7bd2d36e141fabb266b6 100644 (file)
@@ -614,8 +614,8 @@ PAL_GetLogicalProcessorCacheSizeFromOS()
         int64_t cacheSizeFromSysctl = 0;
         size_t sz = sizeof(cacheSizeFromSysctl);
         const bool success = false
-            // macOS-arm64: Since macOS 12.0, Apple added ".perflevelX." to determinate cache sizes for efficiency 
-            // and performance cores separetely. "perflevel0" stands for "performance"
+            // macOS-arm64: Since macOS 12.0, Apple added ".perflevelX." to determinate cache sizes for efficiency
+            // and performance cores separately. "perflevel0" stands for "performance"
             || sysctlbyname("hw.perflevel0.l2cachesize", &cacheSizeFromSysctl, &sz, nullptr, 0) == 0
             // macOS-arm64: these report cache sizes for efficiency cores only:
             || sysctlbyname("hw.l3cachesize", &cacheSizeFromSysctl, &sz, nullptr, 0) == 0
index 0884b2fb3f4a175f19e432d77def31ec1b8d5545..4366ec3cebbfac54f3973b9a5c03a46e885d3e39 100644 (file)
@@ -126,7 +126,7 @@ errno_t __cdecl _FUNC_NAME(
             }
             _TCSNCPY_S(_Dir, _DirSize, _Path, length);
 
-            // Normalize the path seperator
+            // Normalize the path separator
             size_t iIndex;
             for(iIndex = 0; iIndex < length; iIndex++)
             {
index 80a5e3a90ffeef6176b8a53541c5eafe0d6af341..5c9f89d03b20124dc0a720567a9ada7559c58c85 100644 (file)
@@ -3,8 +3,6 @@
 
 /*++
 
-
-
 Module Name:
 
     context.c
@@ -14,8 +12,6 @@ Abstract:
     Implementation of GetThreadContext/SetThreadContext/DebugBreak.
     There are a lot of architecture specifics here.
 
-
-
 --*/
 
 #include "pal/dbgmsg.h"
@@ -332,7 +328,7 @@ CONTEXT_GetThreadContext(
     }
 
     /* How to consider the case when self is different from the current
-       thread of its owner process. Machine registers values could be retreived
+       thread of its owner process. Machine registers values could be retrieved
        by a ptrace(pid, ...) call or from the "/proc/%pid/reg" file content.
        Unfortunately, these two methods only depend on process ID, not on
        thread ID. */
@@ -405,7 +401,7 @@ CONTEXT_SetThreadContext(
     }
 
     /* How to consider the case when self is different from the current
-       thread of its owner process. Machine registers values could be retreived
+       thread of its owner process. Machine registers values could be retrieved
        by a ptrace(pid, ...) call or from the "/proc/%pid/reg" file content.
        Unfortunately, these two methods only depend on process ID, not on
        thread ID. */
@@ -625,7 +621,7 @@ void CONTEXTFromNativeContext(const native_context_t *native, LPCONTEXT lpContex
         ASSIGN_CONTROL_REGS
 #if defined(HOST_ARM)
         // WinContext assumes that the least bit of Pc is always 1 (denoting thumb)
-        // although the pc value retrived from native context might not have set the least bit.
+        // although the pc value retrieved from native context might not have set the least bit.
         // This becomes especially problematic if the context is on the JIT_WRITEBARRIER.
         lpContext->Pc |= 0x1;
 #endif
@@ -1096,7 +1092,7 @@ CONTEXT_GetThreadContextFromPort(
         CONTEXT_GetThreadContextFromThreadState(StateFlavor, (thread_state_t)&State, lpContext);
     }
 
-    if (lpContext->ContextFlags & CONTEXT_ALL_FLOATING & CONTEXT_AREA_MASK) 
+    if (lpContext->ContextFlags & CONTEXT_ALL_FLOATING & CONTEXT_AREA_MASK)
     {
 #if defined(HOST_AMD64)
         // The thread_get_state for floating point state can fail for some flavors when the processor is not
index 464d861bece08fc70a30a1a6d83dfff197ebda2c..4cef1073a89cbe3dbf17589c2dcf2fd19b4132f1 100644 (file)
@@ -6,7 +6,7 @@ include_directories(${PALTESTSUITE_SOURCE_DIR}/common)
 
 # All test will link against these libraries:
 # pthread and m are part of the Android C library (bionic),
-# so we don't need to link them seperately
+# so we don't need to link them separately
 if(NOT CLR_CMAKE_TARGET_ANDROID)
   list(APPEND COMMON_TEST_LIBRARIES pthread)
   list(APPEND COMMON_TEST_LIBRARIES m)
index c4c245cd255dd2123ef48677fc592b3b4929c4a3..8b49147fd6b1376f5381c80a8a15046d3c45a008 100644 (file)
@@ -5,17 +5,14 @@
 **
 ** Source:  test1.c
 **
-** Purpose: Run through every possible character.  For each time that 
+** Purpose: Run through every possible character.  For each time that
 ** isxdigit returns:
 ** 1, check through a list of the known hex characters to ensure that it
-** is really a hex char.  Also, when it returns 0, ensure that that character
+** is really a hex char.  Also, when it returns 0, ensure that the character
 ** isn't a hex character.
 **
-**
 **==========================================================================*/
 
-
-
 #include <palsuite.h>
 
 
index d60d483ac50b86eb8f2e74e869cf876fc3798ca4..656ebd91ee2d6c27a5e26d0aa788c83d4762f8b6 100644 (file)
@@ -6,14 +6,11 @@
 ** Source:  test1.c
 **
 ** Purpose:
-** Test to that wcscat correctly concatanates wide strings, including placing
+** Test to that wcscat correctly concatenates wide strings, including placing
 ** null pointers.
 **
-**
 **==========================================================================*/
 
-
-
 #include <palsuite.h>
 
 /*
index da99d5ef3588dbb025e418a112ff7c7712779afa..dce3ae3bd755d86f45f7b349902829fe13eae7b6 100644 (file)
@@ -2,7 +2,7 @@
 // The .NET Foundation licenses this file to you under the MIT license.
 
 /*
-Source Code: mainWrapper.c    
+Source Code: mainWrapper.c
 
 mainWrapper.c creates Composite Test Case Processes and waits for all processes to get over
 
@@ -39,42 +39,42 @@ struct applicationStatistics{
 int GetParameters( int argc, char **argv)
 {
 
-       if( (argc != 5) || ((argc == 1) && !strcmp(argv[1],"/?")) 
+       if( (argc != 5) || ((argc == 1) && !strcmp(argv[1],"/?"))
        || !strcmp(argv[1],"/h") || !strcmp(argv[1],"/H"))
     {
         printf("Main Wrapper PAL -Composite Critical Section Test\n");
         printf("Usage:\n");
-        printf("\t[PROCESS_COUNT] Greater than or Equal to  1 \n"); 
-        printf("\t[THREAD_COUNT]  Greater than or Equal to 1 and Less than or Equal to 64 \n"); 
+        printf("\t[PROCESS_COUNT] Greater than or Equal to  1 \n");
+        printf("\t[THREAD_COUNT]  Greater than or Equal to 1 and Less than or Equal to 64 \n");
         printf("\t[REPEAT_COUNT] Greater than or Equal to 1\n");
-        printf("\t[RELATION_ID  [Greater than or Equal to 1]\n");        
+        printf("\t[RELATION_ID  [Greater than or Equal to 1]\n");
 
         return -1;
     }
 
     USE_PROCESS_COUNT = atoi(argv[1]);
-    if( USE_PROCESS_COUNT < 0) 
+    if( USE_PROCESS_COUNT < 0)
     {
         printf("\nPROCESS_COUNT to greater than or equal to 1\n");
         return -1;
     }
 
    THREAD_COUNT = atoi(argv[2]);
-    if( THREAD_COUNT < 1 || THREAD_COUNT > 64) 
+    if( THREAD_COUNT < 1 || THREAD_COUNT > 64)
     {
         printf("\nTHREAD_COUNT to be greater than or equal to 1 or less than or equal to 64\n");
         return -1;
     }
 
     REPEAT_COUNT = atoi(argv[3]);
-    if( REPEAT_COUNT < 1) 
+    if( REPEAT_COUNT < 1)
     {
         printf("\nREPEAT_COUNT to greater than or equal to 1\n");
         return -1;
     }
 
     RELATION_ID = atoi(argv[4]);
-    if( RELATION_ID < 1) 
+    if( RELATION_ID < 1)
     {
         printf("\nMain Process:Invalid RELATION_ID number, Pass greater than 1\n");
         return -1;
@@ -91,13 +91,13 @@ PALTEST(composite_synchronization_criticalsection_paltest_synchronization_critic
 {
        unsigned int i = 0;
        HANDLE hProcess[MAXIMUM_WAIT_OBJECTS];  //Array to hold Process handles
-       DWORD processReturnCode = 0; 
+       DWORD processReturnCode = 0;
        int testReturnCode = PASS;
        STARTUPINFO si[MAXIMUM_WAIT_OBJECTS];
        PROCESS_INFORMATION pi[MAXIMUM_WAIT_OBJECTS];
        FILE *hFile;  //handle to application results file
        char fileName[MAX_PATH];  //file name of the application results file
-       struct applicationStatistics appStats;   
+       struct applicationStatistics appStats;
        DWORD dwStart=0;        //to store the tick count
        char lpCommandLine[MAX_PATH] = "";
        int returnCode = 0;
@@ -123,18 +123,18 @@ PALTEST(composite_synchronization_criticalsection_paltest_synchronization_critic
        appStats.repeatCount  = REPEAT_COUNT;
        appStats.buildNumber  = getBuildNumber();
 
-    
+
 _snprintf(fileName, MAX_PATH, "main_criticalsection_%d_.txt", RELATION_ID);
 
 hFile = fopen(fileName, "w+");
 
 if(hFile == NULL)
-    { 
+    {
         Fail("Error in opening file to write application results for Critical Section Test, and error code is %d\n", GetLastError());
     }
 
 //Start Process Time Capture
-dwStart = GetTickCount();      
+dwStart = GetTickCount();
 
 for( i = 0; i < USE_PROCESS_COUNT; i++ )
     {
@@ -142,9 +142,9 @@ for( i = 0; i < USE_PROCESS_COUNT; i++ )
         ZeroMemory( lpCommandLine, MAX_PATH );
         if ( _snprintf( lpCommandLine, MAX_PATH-1, "criticalsection %d %d %d %d", i, THREAD_COUNT, REPEAT_COUNT, RELATION_ID) < 0 )
         {
-            Trace ("Error: Insufficient commandline string length for for iteration [%d]\n",   i);
+            Trace ("Error: Insufficient commandline string length for iteration [%d]\n",   i);
         }
-        
+
         /* Zero the data structure space */
         ZeroMemory ( &pi[i], sizeof(pi[i]) );
         ZeroMemory ( &si[i], sizeof(si[i]) );
@@ -154,7 +154,7 @@ for( i = 0; i < USE_PROCESS_COUNT; i++ )
 
        //Printing the Command Line
        //Trace("Command Line \t %s \n", lpCommandLine);
-               
+
         //Create Process
         if(!CreateProcess( NULL, /* lpApplicationName*/
                           lpCommandLine, /* lpCommandLine */
@@ -178,7 +178,7 @@ for( i = 0; i < USE_PROCESS_COUNT; i++ )
 
     }
 
-    returnCode = WaitForMultipleObjects( USE_PROCESS_COUNT, hProcess, TRUE, INFINITE);  
+    returnCode = WaitForMultipleObjects( USE_PROCESS_COUNT, hProcess, TRUE, INFINITE);
      if( WAIT_OBJECT_0 != returnCode )
     {
         Trace("Wait for Object(s) @ Main thread for %d processes returned %d, and GetLastError value is %d\n", USE_PROCESS_COUNT, returnCode, GetLastError());
@@ -190,15 +190,15 @@ for( i = 0; i < USE_PROCESS_COUNT; i++ )
         /* check the exit code from the process */
         if( ! GetExitCodeProcess( pi[i].hProcess, &processReturnCode ) )
         {
-            Trace( "GetExitCodeProcess call failed for iteration %d with error code %u\n", 
-                i, GetLastError() ); 
-           
+            Trace( "GetExitCodeProcess call failed for iteration %d with error code %u\n",
+                i, GetLastError() );
+
             testReturnCode = FAIL;
         }
 
         if(processReturnCode == FAIL)
         {
-            Trace( "Process [%d] failed and returned FAIL\n", i); 
+            Trace( "Process [%d] failed and returned FAIL\n", i);
             testReturnCode = FAIL;
         }
 
@@ -221,17 +221,17 @@ appStats.operationTime = GetTickCount() - dwStart;
 if( testReturnCode == PASS)
     {
         Trace("Test Passed\n");
-       
+
     }
     else
     {
         Fail("Test Failed\n");
-       
+
     }
-       
+
 //Write Process Result Contents to File
 if(hFile!= NULL)
-    { 
+    {
             fprintf(hFile, "%lu,%d,%d,%d,%d,%s\n", appStats.operationTime, appStats.relationId,appStats.processCount, appStats.threadCount, appStats.repeatCount, appStats.buildNumber);
     }
 
index 72a1b3d9ce45c0cccaeccb5b4d45126a5a5ff379..4ad713c8b44b0f782de1cc929b14c90c1a226df6 100644 (file)
@@ -2,7 +2,7 @@
 // The .NET Foundation licenses this file to you under the MIT license.
 
 /*
-Source Code: mainWrapper.c    
+Source Code: mainWrapper.c
 
 mainWrapper.c creates Composite Test Case Processes and waits for all processes to get over
 
@@ -40,49 +40,49 @@ struct applicationStatistics{
 int GetParameters( int argc, char **argv)
 {
 
-       if( (argc != 5) || ((argc == 1) && !strcmp(argv[1],"/?")) 
+       if( (argc != 5) || ((argc == 1) && !strcmp(argv[1],"/?"))
        || !strcmp(argv[1],"/h") || !strcmp(argv[1],"/H"))
     {
         printf("PAL -Composite Thread Suspension Test\n");
         printf("Usage:\n");
-        printf("\t[PROCESS_COUNT] Greater than or Equal to  1 \n"); 
-        printf("\t[WORKER_THREAD_MULTIPLIER_COUNT]  Greater than or Equal to 1 and Less than or Equal to %d \n", MAXIMUM_WAIT_OBJECTS); 
+        printf("\t[PROCESS_COUNT] Greater than or Equal to  1 \n");
+        printf("\t[WORKER_THREAD_MULTIPLIER_COUNT]  Greater than or Equal to 1 and Less than or Equal to %d \n", MAXIMUM_WAIT_OBJECTS);
         printf("\t[REPEAT_COUNT] Greater than or Equal to 1\n");
-        printf("\t[RELATION_ID  [greater than or Equal to 1]\n");        
+        printf("\t[RELATION_ID  [greater than or Equal to 1]\n");
         return -1;
     }
 
  // Trace("Args 1 is [%s], Arg 2 is [%s], Arg 3 is [%s]\n", argv[1], argv[2], argv[3]);
-    
+
     USE_PROCESS_COUNT = atoi(argv[1]);
-    if( USE_PROCESS_COUNT < 0) 
+    if( USE_PROCESS_COUNT < 0)
     {
         printf("\nPROCESS_COUNT to greater than or equal to 1\n");
         return -1;
     }
 
     WORKER_THREAD_MULTIPLIER_COUNT = atoi(argv[2]);
-    if( WORKER_THREAD_MULTIPLIER_COUNT < 1 || WORKER_THREAD_MULTIPLIER_COUNT > 64) 
+    if( WORKER_THREAD_MULTIPLIER_COUNT < 1 || WORKER_THREAD_MULTIPLIER_COUNT > 64)
     {
         printf("\nWORKER_THREAD_MULTIPLIER_COUNT to be greater than or equal to 1 or less than or equal to 64\n");
         return -1;
     }
 
     REPEAT_COUNT = atoi(argv[3]);
-    if( REPEAT_COUNT < 1) 
+    if( REPEAT_COUNT < 1)
     {
         printf("\nREPEAT_COUNT to greater than or equal to 1\n");
         return -1;
     }
 
     RELATION_ID = atoi(argv[4]);
-    if( RELATION_ID < 1) 
+    if( RELATION_ID < 1)
     {
         printf("\nRELATION_ID to be greater than or equal to 1\n");
         return -1;
     }
 
-       
+
 
     return 0;
 }
@@ -98,9 +98,9 @@ PALTEST(composite_threading_threadsuspension_paltest_threading_threadsuspension,
 
     FILE *hFile;
     char fileName[MAX_PATH];
-    struct applicationStatistics appStats;     
+    struct applicationStatistics appStats;
 
-    DWORD dwStart=0;   
+    DWORD dwStart=0;
 
     char lpCommandLine[MAX_PATH] = "";
 
@@ -122,11 +122,11 @@ PALTEST(composite_threading_threadsuspension_paltest_threading_threadsuspension,
    appStats.repeatCount = 0;
 
 
-   
+
 
 
 //Start Process Time Capture
-dwStart = GetTickCount();      
+dwStart = GetTickCount();
 
     if(GetParameters(argc, argv))
     {
@@ -134,7 +134,7 @@ dwStart = GetTickCount();
     }
 
 //Assign Correct Values to the Application Stats Structure
-   appStats.relationId=RELATION_ID;        
+   appStats.relationId=RELATION_ID;
    appStats.processCount = USE_PROCESS_COUNT;
    appStats.threadCount = THREAD_COUNT ;
    appStats.repeatCount = REPEAT_COUNT;
@@ -144,15 +144,15 @@ dwStart = GetTickCount();
    Trace("WORKER_THREAD_MULTIPLIER_COUNT: %d \n", WORKER_THREAD_MULTIPLIER_COUNT);
       Trace("REPEAT_COUNT: %d \n", REPEAT_COUNT);
 
-         
+
 _snprintf(fileName, MAX_PATH, "main_threadsuspension_%d_.txt",appStats.relationId);
 
  hFile = fopen(fileName, "w+");
 if(hFile == NULL)
-    { 
+    {
         Fail("Error in opening file to write application results for Thread Suspension Test with error code %d \n", GetLastError() );
     }
-       
+
 
 
     for( i = 0; i < USE_PROCESS_COUNT; i++ )
@@ -161,9 +161,9 @@ if(hFile == NULL)
         ZeroMemory( lpCommandLine, MAX_PATH );
         if ( _snprintf( lpCommandLine, MAX_PATH-1, "threadsuspension %d %d %d %d", i, WORKER_THREAD_MULTIPLIER_COUNT, REPEAT_COUNT, RELATION_ID) < 0 )
         {
-            Trace ("Error: Insufficient commandline string length for for iteration [%d]\n",   i);
+            Trace ("Error: Insufficient commandline string length for iteration [%d]\n",   i);
         }
-        
+
         /* Zero the data structure space */
         ZeroMemory ( &pi[i], sizeof(pi[i]) );
         ZeroMemory ( &si[i], sizeof(si[i]) );
@@ -173,7 +173,7 @@ if(hFile == NULL)
 
        //Printing the Command Line
        //Trace("Command Line \t %s \n", lpCommandLine);
-               
+
         //Create Process
         if(!CreateProcess( NULL, /* lpApplicationName*/
                           lpCommandLine, /* lpCommandLine */
@@ -188,7 +188,7 @@ if(hFile == NULL)
                           ))
         {
             Fail("Process Not created for [%d] and GetLastError value is %d\n", i, GetLastError());
-                       
+
         }
         else
         {
@@ -198,7 +198,7 @@ if(hFile == NULL)
 
     }
 
-    returnCode = WaitForMultipleObjects( USE_PROCESS_COUNT, hProcess, TRUE, INFINITE);  
+    returnCode = WaitForMultipleObjects( USE_PROCESS_COUNT, hProcess, TRUE, INFINITE);
      if( WAIT_OBJECT_0 != returnCode )
     {
         Trace("Wait for Object(s) @ Main thread for %d processes returned %d, and GetLastError value is %d\n", USE_PROCESS_COUNT, returnCode, GetLastError());
@@ -210,15 +210,15 @@ if(hFile == NULL)
         /* check the exit code from the process */
         if( ! GetExitCodeProcess( pi[i].hProcess, &processReturnCode ) )
         {
-            Trace( "GetExitCodeProcess call failed for iteration %d with error code %u\n", 
-                i, GetLastError() ); 
-           
+            Trace( "GetExitCodeProcess call failed for iteration %d with error code %u\n",
+                i, GetLastError() );
+
             testReturnCode = FAIL;
         }
 
         if(processReturnCode == FAIL)
         {
-            Trace( "Process [%d] failed and returned FAIL\n", i); 
+            Trace( "Process [%d] failed and returned FAIL\n", i);
             testReturnCode = FAIL;
         }
 
@@ -246,10 +246,10 @@ if( testReturnCode == PASS)
     {
         Trace("Test Failed\n");
     }
-       
+
 //Write Process Result Contents to File
 if(hFile!= NULL)
-    { 
+    {
             fprintf(hFile, "%lu,%d,%d,%d,%d,%s\n", appStats.operationTime, appStats.relationId, appStats.processCount, appStats.threadCount, appStats.repeatCount, appStats.buildNumber);
     }
 
@@ -258,7 +258,7 @@ if (0!=fclose(hFile))
        Trace("Error:%d: fclose failed for file %s\n", GetLastError(), fileName);
 }
     PAL_Terminate();
-    
+
 
 if( testReturnCode == PASS)
     {
@@ -267,7 +267,7 @@ if( testReturnCode == PASS)
     else
     {
         return FAIL;
-        
-    }  
-       
+
+    }
+
 }
index 1f95d7dced47e5124f4c7823a471cc01bf8660e1..1581992bd8a627330cd36539da42cb38c9819c19 100644 (file)
@@ -2,7 +2,7 @@
 // The .NET Foundation licenses this file to you under the MIT license.
 
 /*
-Source Code: mainWrapper.c    
+Source Code: mainWrapper.c
 
 mainWrapper.c creates Composite Test Case Processes and waits for all processes to get over
 
@@ -40,49 +40,49 @@ struct applicationStatistics{
 int GetParameters( int argc, char **argv)
 {
 
-       if( (argc != 5) || ((argc == 1) && !strcmp(argv[1],"/?")) 
+       if( (argc != 5) || ((argc == 1) && !strcmp(argv[1],"/?"))
        || !strcmp(argv[1],"/h") || !strcmp(argv[1],"/H"))
     {
         printf("PAL -Composite Thread Suspension Test\n");
         printf("Usage:\n");
-        printf("\t[PROCESS_COUNT] Greater than or Equal to  1 \n"); 
-        printf("\t[WORKER_THREAD_MULTIPLIER_COUNT]  Greater than or Equal to 1 and Less than or Equal to %d \n", MAXIMUM_WAIT_OBJECTS); 
+        printf("\t[PROCESS_COUNT] Greater than or Equal to  1 \n");
+        printf("\t[WORKER_THREAD_MULTIPLIER_COUNT]  Greater than or Equal to 1 and Less than or Equal to %d \n", MAXIMUM_WAIT_OBJECTS);
         printf("\t[REPEAT_COUNT] Greater than or Equal to 1\n");
-        printf("\t[RELATION_ID  [greater than or Equal to 1]\n");        
+        printf("\t[RELATION_ID  [greater than or Equal to 1]\n");
         return -1;
     }
 
  // Trace("Args 1 is [%s], Arg 2 is [%s], Arg 3 is [%s]\n", argv[1], argv[2], argv[3]);
-    
+
     USE_PROCESS_COUNT = atoi(argv[1]);
-    if( USE_PROCESS_COUNT < 0) 
+    if( USE_PROCESS_COUNT < 0)
     {
         printf("\nPROCESS_COUNT to greater than or equal to 1\n");
         return -1;
     }
 
     WORKER_THREAD_MULTIPLIER_COUNT = atoi(argv[2]);
-    if( WORKER_THREAD_MULTIPLIER_COUNT < 1 || WORKER_THREAD_MULTIPLIER_COUNT > 64) 
+    if( WORKER_THREAD_MULTIPLIER_COUNT < 1 || WORKER_THREAD_MULTIPLIER_COUNT > 64)
     {
         printf("\nWORKER_THREAD_MULTIPLIER_COUNT to be greater than or equal to 1 or less than or equal to 64\n");
         return -1;
     }
 
     REPEAT_COUNT = atoi(argv[3]);
-    if( REPEAT_COUNT < 1) 
+    if( REPEAT_COUNT < 1)
     {
         printf("\nREPEAT_COUNT to greater than or equal to 1\n");
         return -1;
     }
 
     RELATION_ID = atoi(argv[4]);
-    if( RELATION_ID < 1) 
+    if( RELATION_ID < 1)
     {
         printf("\nRELATION_ID to be greater than or equal to 1\n");
         return -1;
     }
 
-       
+
 
     return 0;
 }
@@ -98,9 +98,9 @@ PALTEST(composite_threading_threadsuspension_switchthread_paltest_threading_thre
 
     FILE *hFile;
     char fileName[MAX_PATH];
-    struct applicationStatistics appStats;     
+    struct applicationStatistics appStats;
 
-    DWORD dwStart=0;   
+    DWORD dwStart=0;
 
     char lpCommandLine[MAX_PATH] = "";
 
@@ -122,11 +122,11 @@ PALTEST(composite_threading_threadsuspension_switchthread_paltest_threading_thre
    appStats.repeatCount = 0;
 
 
-   
+
 
 
 //Start Process Time Capture
-dwStart = GetTickCount();      
+dwStart = GetTickCount();
 
     if(GetParameters(argc, argv))
     {
@@ -134,7 +134,7 @@ dwStart = GetTickCount();
     }
 
 //Assign Correct Values to the Application Stats Structure
-   appStats.relationId=RELATION_ID;        
+   appStats.relationId=RELATION_ID;
    appStats.processCount = USE_PROCESS_COUNT;
    appStats.threadCount = THREAD_COUNT ;
    appStats.repeatCount = REPEAT_COUNT;
@@ -144,15 +144,15 @@ dwStart = GetTickCount();
    Trace("WORKER_THREAD_MULTIPLIER_COUNT: %d \n", WORKER_THREAD_MULTIPLIER_COUNT);
       Trace("REPEAT_COUNT: %d \n", REPEAT_COUNT);
 
-         
+
 _snprintf(fileName, MAX_PATH, "main_threadsuspension_%d_.txt",appStats.relationId);
 
  hFile = fopen(fileName, "w+");
 if(hFile == NULL)
-    { 
+    {
         Fail("Error in opening file to write application results for Thread Suspension Test with error code %d \n", GetLastError() );
     }
-       
+
 
 
     for( i = 0; i < USE_PROCESS_COUNT; i++ )
@@ -161,9 +161,9 @@ if(hFile == NULL)
         ZeroMemory( lpCommandLine, MAX_PATH );
         if ( _snprintf( lpCommandLine, MAX_PATH-1, "threadsuspension %d %d %d %d", i, WORKER_THREAD_MULTIPLIER_COUNT, REPEAT_COUNT, RELATION_ID) < 0 )
         {
-            Trace ("Error: Insufficient commandline string length for for iteration [%d]\n",   i);
+            Trace ("Error: Insufficient commandline string length for iteration [%d]\n",   i);
         }
-        
+
         /* Zero the data structure space */
         ZeroMemory ( &pi[i], sizeof(pi[i]) );
         ZeroMemory ( &si[i], sizeof(si[i]) );
@@ -173,7 +173,7 @@ if(hFile == NULL)
 
        //Printing the Command Line
        //Trace("Command Line \t %s \n", lpCommandLine);
-               
+
         //Create Process
         if(!CreateProcess( NULL, /* lpApplicationName*/
                           lpCommandLine, /* lpCommandLine */
@@ -188,7 +188,7 @@ if(hFile == NULL)
                           ))
         {
             Fail("Process Not created for [%d] and GetLastError value is %d\n", i, GetLastError());
-                       
+
         }
         else
         {
@@ -198,7 +198,7 @@ if(hFile == NULL)
 
     }
 
-    returnCode = WaitForMultipleObjects( USE_PROCESS_COUNT, hProcess, TRUE, INFINITE);  
+    returnCode = WaitForMultipleObjects( USE_PROCESS_COUNT, hProcess, TRUE, INFINITE);
      if( WAIT_OBJECT_0 != returnCode )
     {
         Trace("Wait for Object(s) @ Main thread for %d processes returned %d, and GetLastError value is %d\n", USE_PROCESS_COUNT, returnCode, GetLastError());
@@ -210,15 +210,15 @@ if(hFile == NULL)
         /* check the exit code from the process */
         if( ! GetExitCodeProcess( pi[i].hProcess, &processReturnCode ) )
         {
-            Trace( "GetExitCodeProcess call failed for iteration %d with error code %u\n", 
-                i, GetLastError() ); 
-           
+            Trace( "GetExitCodeProcess call failed for iteration %d with error code %u\n",
+                i, GetLastError() );
+
             testReturnCode = FAIL;
         }
 
         if(processReturnCode == FAIL)
         {
-            Trace( "Process [%d] failed and returned FAIL\n", i); 
+            Trace( "Process [%d] failed and returned FAIL\n", i);
             testReturnCode = FAIL;
         }
 
@@ -246,10 +246,10 @@ if( testReturnCode == PASS)
     {
         Trace("Test Failed\n");
     }
-       
+
 //Write Process Result Contents to File
 if(hFile!= NULL)
-    { 
+    {
             fprintf(hFile, "%lu,%d,%d,%d,%d,%s\n", appStats.operationTime, appStats.relationId, appStats.processCount, appStats.threadCount, appStats.repeatCount, appStats.buildNumber);
     }
 
@@ -258,7 +258,7 @@ if (0!=fclose(hFile))
        Trace("Error:%d: fclose failed for file %s\n", GetLastError(), fileName);
 }
     PAL_Terminate();
-    
+
 
 if( testReturnCode == PASS)
     {
@@ -267,7 +267,7 @@ if( testReturnCode == PASS)
     else
     {
         return FAIL;
-        
-    }  
-       
+
+    }
+
 }
index 599109fb142e9ac1cbe7a99f454c8ac3ad0fb829..0e0684e5f4f07e5164dfc4b00b6fa27454a2fb9d 100644 (file)
@@ -9,7 +9,7 @@
 ** This test is for WFMO Test case for Mutex
 ** Algorithm
 ** o   Create PROCESS_COUNT processes.
-** o   Main Thread of each process creates OBJECT_TYPE Object 
+** o   Main Thread of each process creates OBJECT_TYPE Object
 **
 ** Author: ShamitP
 **
@@ -41,24 +41,24 @@ struct TestStats{
 
 int GetParameters( int argc, char **argv)
 {
-  if( (argc != 6) || ((argc == 1) && !strcmp(argv[1],"/?")) 
+  if( (argc != 6) || ((argc == 1) && !strcmp(argv[1],"/?"))
        || !strcmp(argv[1],"/h") || !strcmp(argv[1],"/H"))
     {
         printf("PAL -Composite WFMO Test\n");
         printf("Usage:\n");
-        printf("main\n\t[PROCESS_COUNT  [greater than 0] \n"); 
-        printf("\t[THREAD_COUNT  [greater than 0] \n"); 
+        printf("main\n\t[PROCESS_COUNT  [greater than 0] \n");
+        printf("\t[THREAD_COUNT  [greater than 0] \n");
         printf("\t[REPEAT_COUNT  [greater than 0]\n");
         printf("\t[SLEEP_LENGTH  [greater than 0]\n");
-        printf("\t[RELATION_ID  [greater than 0]\n");        
+        printf("\t[RELATION_ID  [greater than 0]\n");
+
 
-                
 
         return -1;
     }
 
     PROCESS_COUNT = atoi(argv[1]);
-    if( (PROCESS_COUNT < 1) || (PROCESS_COUNT > MAXIMUM_WAIT_OBJECTS) ) 
+    if( (PROCESS_COUNT < 1) || (PROCESS_COUNT > MAXIMUM_WAIT_OBJECTS) )
     {
         printf("\nMain Process:Invalid PROCESS_COUNT number, Pass greater than 1 and less than PROCESS_COUNT %d\n", MAXIMUM_WAIT_OBJECTS);
         return -1;
@@ -72,21 +72,21 @@ int GetParameters( int argc, char **argv)
     }
 
     REPEAT_COUNT = atoi(argv[3]);
-    if( REPEAT_COUNT < 1) 
+    if( REPEAT_COUNT < 1)
     {
         printf("\nMain Process:Invalid REPEAT_COUNT number, Pass greater than 1\n");
         return -1;
     }
 
     SLEEP_LENGTH = atoi(argv[4]);
-    if( SLEEP_LENGTH < 1) 
+    if( SLEEP_LENGTH < 1)
     {
         printf("\nMain Process:Invalid SLEEP_LENGTH number, Pass greater than 1\n");
         return -1;
     }
 
     RELATION_ID = atoi(argv[5]);
-    if( RELATION_ID < 1) 
+    if( RELATION_ID < 1)
     {
         printf("\nMain Process:Invalid RELATION_ID number, Pass greater than 1\n");
         return -1;
@@ -101,7 +101,7 @@ PALTEST(composite_wfmo_paltest_composite_wfmo, "composite/wfmo/paltest_composite
 {
     unsigned int i = 0;
     HANDLE hProcess[MAXIMUM_WAIT_OBJECTS];
-   
+
     STARTUPINFO si[MAXIMUM_WAIT_OBJECTS];
     PROCESS_INFORMATION pi[MAXIMUM_WAIT_OBJECTS];
 
@@ -126,7 +126,7 @@ PALTEST(composite_wfmo_paltest_composite_wfmo, "composite/wfmo/paltest_composite
         Fail("Error in obtaining the parameters\n");
     }
 
-     /* Register the start time */  
+     /* Register the start time */
     dwStartTime = GetTickCount();
     testStats.relationId = 0;
     testStats.relationId   = RELATION_ID;
@@ -140,7 +140,7 @@ PALTEST(composite_wfmo_paltest_composite_wfmo, "composite/wfmo/paltest_composite
     _snprintf(fileName, MAX_PATH, "main_wfmo_%d_.txt",testStats.relationId);
     pFile = fopen(fileName, "w+");
     if(pFile == NULL)
-    { 
+    {
         Fail("Error in opening main file for write\n");
     }
 
@@ -150,16 +150,16 @@ PALTEST(composite_wfmo_paltest_composite_wfmo, "composite/wfmo/paltest_composite
         ZeroMemory( lpCommandLine, MAX_PATH );
         if ( _snprintf( lpCommandLine, MAX_PATH-1, "mutex %d %d %d %d %d", i, THREAD_COUNT, REPEAT_COUNT, SLEEP_LENGTH, RELATION_ID) < 0 )
         {
-            Trace ("Error: Insufficient commandline string length for for iteration [%d]\n", i);
+            Trace ("Error: Insufficient commandline string length for iteration [%d]\n", i);
         }
-        
+
         /* Zero the data structure space */
         ZeroMemory ( &pi[i], sizeof(pi[i]) );
         ZeroMemory ( &si[i], sizeof(si[i]) );
 
         /* Set the process flags and standard io handles */
         si[i].cb = sizeof(si[i]);
-        
+
         //Create Process
         if(!CreateProcess( NULL, /* lpApplicationName*/
                           lpCommandLine, /* lpCommandLine */
@@ -183,26 +183,26 @@ PALTEST(composite_wfmo_paltest_composite_wfmo, "composite/wfmo/paltest_composite
 
     }
 
-    returnCode = WaitForMultipleObjects( PROCESS_COUNT, hProcess, TRUE, INFINITE);  
+    returnCode = WaitForMultipleObjects( PROCESS_COUNT, hProcess, TRUE, INFINITE);
     if( WAIT_OBJECT_0 != returnCode )
     {
         Trace("Wait for Object(s) @ Main thread for %d processes returned %d, and GetLastError value is %d\n", PROCESS_COUNT, returnCode, GetLastError());
     }
-    
+
     for( i = 0; i < PROCESS_COUNT; i++ )
     {
         /* check the exit code from the process */
         if( ! GetExitCodeProcess( pi[i].hProcess, &processReturnCode ) )
         {
-            Trace( "GetExitCodeProcess call failed for iteration %d with error code %u\n", 
-                i, GetLastError() ); 
-           
+            Trace( "GetExitCodeProcess call failed for iteration %d with error code %u\n",
+                i, GetLastError() );
+
             testReturnCode = FAIL;
         }
 
         if(processReturnCode == FAIL)
         {
-            Trace( "Process [%d] failed and returned FAIL\n", i); 
+            Trace( "Process [%d] failed and returned FAIL\n", i);
             testReturnCode = FAIL;
         }
 
@@ -217,14 +217,14 @@ PALTEST(composite_wfmo_paltest_composite_wfmo, "composite/wfmo/paltest_composite
         }
     }
 
-    testStats.operationTime = GetTimeDiff(dwStartTime); 
+    testStats.operationTime = GetTimeDiff(dwStartTime);
     fprintf(pFile, "%d,%d,%d,%d,%d,%s\n", testStats.operationTime, testStats.relationId, testStats.processCount, testStats.threadCount, testStats.repeatCount, testStats.buildNumber);
     if(fclose(pFile))
     {
         Trace("Error: fclose failed for pFile\n");
         testReturnCode = FAIL;
     }
-    
+
     if( testReturnCode == PASS)
     {
         Trace("Test Passed\n");
index b098719bb1fd6b3ffd57c01dd7a30faf084ff83d..9d774f430743d3084144205b0ddb9bff4f9bcc5c 100644 (file)
@@ -10,7 +10,7 @@
 **          Example: test_directory\level1\..\testing.tmp.
 **          To add to this test, we will also call SetCurrentDirectory to
 **          ensure this is handled properly.
-**          The test will create a file with in the parent directory 
+**          The test will create a file with in the parent directory
 **          to verify that the returned directory is valid.
 **
 ** Depends: SetCurrentDirectory,
@@ -22,7 +22,7 @@
 **          strcmp,
 **          DeleteFileA,
 **          RemoveDirectory.
-**      
+**
 
 **
 **===================================================================*/
@@ -33,9 +33,9 @@
 PALTEST(file_io_GetFullPathNameA_test3_paltest_getfullpathnamea_test3, "file_io/GetFullPathNameA/test3/paltest_getfullpathnamea_test3")
 {
 #ifdef WIN32
-    const char* szSeperator = "\\";
+    const char* szSeparator = "\\";
 #else
-    const char* szSeperator = "//";
+    const char* szSeparator = "//";
 #endif
 
     const char* szDotDot   = "..\\";
@@ -72,7 +72,7 @@ PALTEST(file_io_GetFullPathNameA_test3_paltest_getfullpathnamea_test3, "file_io/
              GetLastError(),
              szDotDot);
     }
-    
+
     /* Create the path to the next level of directory to create.
      */
     strcat( szDirectory, szCreatedDir );
@@ -89,7 +89,7 @@ PALTEST(file_io_GetFullPathNameA_test3_paltest_getfullpathnamea_test3, "file_io/
 
     /* Create the path to the next level of directory to create.
      */
-    strcat( szDirectory, szSeperator );
+    strcat( szDirectory, szSeparator );
     strcat( szDirectory, szCreatedNextDir );
 
     /* Create a test directory.
@@ -102,7 +102,7 @@ PALTEST(file_io_GetFullPathNameA_test3_paltest_getfullpathnamea_test3, "file_io/
         bRetVal = FAIL;
         goto cleanUpOne;
     }
-    
+
     /* Initialize the receiving char buffers.
      */
     memset(szReturnedPath, 0, _MAX_DIR+1);
@@ -117,9 +117,9 @@ PALTEST(file_io_GetFullPathNameA_test3_paltest_getfullpathnamea_test3, "file_io/
 
     /* Get the full path to the filename.
      */
-    dwRc = GetFullPathNameA(szFullFileName, 
+    dwRc = GetFullPathNameA(szFullFileName,
                             _MAX_DIR,
-                            szReturnedPath, 
+                            szReturnedPath,
                             &pPathPtr);
     if (dwRc == 0)
     {
@@ -131,7 +131,7 @@ PALTEST(file_io_GetFullPathNameA_test3_paltest_getfullpathnamea_test3, "file_io/
         goto cleanUpTwo;
     }
 
-    /* The returned value should be the parent directory with the 
+    /* The returned value should be the parent directory with the
      * file name appended. */
     hFile = CreateFileA(szReturnedPath,
                         GENERIC_READ,
@@ -143,7 +143,7 @@ PALTEST(file_io_GetFullPathNameA_test3_paltest_getfullpathnamea_test3, "file_io/
 
     if (hFile == INVALID_HANDLE_VALUE)
     {
-        Trace("ERROR :%ld: CreateFileA failed to create \"%s\".\n", 
+        Trace("ERROR :%ld: CreateFileA failed to create \"%s\".\n",
               GetLastError(),
               szReturnedPath);
         bRetVal = FAIL;
@@ -160,7 +160,7 @@ PALTEST(file_io_GetFullPathNameA_test3_paltest_getfullpathnamea_test3, "file_io/
         goto cleanUpThree;
     }
 
-    /* Verify that the file was created, attempt to create 
+    /* Verify that the file was created, attempt to create
      * the file again. */
     hFile = CreateFileA(szReturnedPath,
                         GENERIC_READ,
@@ -169,7 +169,7 @@ PALTEST(file_io_GetFullPathNameA_test3_paltest_getfullpathnamea_test3, "file_io/
                         CREATE_NEW,
                         FILE_ATTRIBUTE_NORMAL,
                         NULL);
-    if ((hFile != INVALID_HANDLE_VALUE) && 
+    if ((hFile != INVALID_HANDLE_VALUE) &&
         (GetLastError() != ERROR_ALREADY_EXISTS))
     {
         Trace("ERROR :%ld: CreateFileA succeeded to create file "
@@ -186,7 +186,7 @@ PALTEST(file_io_GetFullPathNameA_test3_paltest_getfullpathnamea_test3, "file_io/
     {
         Trace("ERROR : Returned filename \"%s\" is not equal to "
              "supplied filename \"%s\".\n",
-             pPathPtr, 
+             pPathPtr,
              szFileName);
         bRetVal = FAIL;
         goto cleanUpThree;
@@ -197,8 +197,8 @@ PALTEST(file_io_GetFullPathNameA_test3_paltest_getfullpathnamea_test3, "file_io/
     bRetVal = PASS;
 
 cleanUpThree:
-    
-    /* Delete the create file. 
+
+    /* Delete the create file.
      */
     if (DeleteFileA(szReturnedPath) != TRUE)
     {
index f463aec087f9101d665d308a41bb0ed7c655bb1c..99dc826971161b299ea71a6f4cd2d8583f31b730 100644 (file)
@@ -10,7 +10,7 @@
 **          Example: ..\test_directory\testing.tmp.
 **          To add to this test, we will also call SetCurrentDirectory to
 **          ensure this is handled properly.
-**          The test will create a file with in the parent directory 
+**          The test will create a file with in the parent directory
 **          to verify that the returned directory is valid.
 **
 ** Depends: SetCurrentDirectory,
@@ -22,7 +22,7 @@
 **          strcmp,
 **          DeleteFileA,
 **          RemoveDirectory.
-**      
+**
 
 **
 **===================================================================*/
@@ -33,9 +33,9 @@
 PALTEST(file_io_GetFullPathNameA_test4_paltest_getfullpathnamea_test4, "file_io/GetFullPathNameA/test4/paltest_getfullpathnamea_test4")
 {
 #ifdef WIN32
-    const char* szSeperator = "\\";
+    const char* szSeparator = "\\";
 #else
-    const char* szSeperator = "//";
+    const char* szSeparator = "//";
 #endif
 
     const char* szDotDot   = "..";
@@ -65,7 +65,7 @@ PALTEST(file_io_GetFullPathNameA_test4_paltest_getfullpathnamea_test4, "file_io/
     /* Create the path to the next level of directory to create.
      */
     strcat( szDirectory, szDotDot );        /* ..                  */
-    strcat( szDirectory, szSeperator );     /* ../                 */
+    strcat( szDirectory, szSeparator );     /* ../                 */
     strcat( szDirectory, szCreatedDir );    /* ../test_directory   */
 
     /* Create a test directory.
@@ -86,16 +86,16 @@ PALTEST(file_io_GetFullPathNameA_test4_paltest_getfullpathnamea_test4, "file_io/
      * in the middle of the path.
      */
     strcat( szFullFileName, szDotDot );     /* ..                            */
-    strcat( szFullFileName, szSeperator );  /* ../                           */
+    strcat( szFullFileName, szSeparator );  /* ../                           */
     strcat( szFullFileName, szCreatedDir ); /* ../test_directory             */
-    strcat( szFullFileName, szSeperator );  /* ../test_directory/            */
+    strcat( szFullFileName, szSeparator );  /* ../test_directory/            */
     strcat( szFullFileName, szFileName );   /* ../test_directory/testing.tmp */
 
     /* Get the full path to the filename.
      */
-    dwRc = GetFullPathNameA(szFullFileName, 
+    dwRc = GetFullPathNameA(szFullFileName,
                             _MAX_DIR,
-                            szReturnedPath, 
+                            szReturnedPath,
                             &pPathPtr);
     if (dwRc == 0)
     {
@@ -107,7 +107,7 @@ PALTEST(file_io_GetFullPathNameA_test4_paltest_getfullpathnamea_test4, "file_io/
         goto cleanUpOne;
     }
 
-    /* The returned value should be the parent directory with the 
+    /* The returned value should be the parent directory with the
      * file name appended. */
     hFile = CreateFileA(szReturnedPath,
                         GENERIC_READ,
@@ -119,7 +119,7 @@ PALTEST(file_io_GetFullPathNameA_test4_paltest_getfullpathnamea_test4, "file_io/
 
     if (hFile == INVALID_HANDLE_VALUE)
     {
-        Trace("ERROR :%ld: CreateFileA failed to create \"%s\".\n", 
+        Trace("ERROR :%ld: CreateFileA failed to create \"%s\".\n",
               GetLastError(),
               szReturnedPath);
         bRetVal = FAIL;
@@ -136,7 +136,7 @@ PALTEST(file_io_GetFullPathNameA_test4_paltest_getfullpathnamea_test4, "file_io/
         goto cleanUpTwo;
     }
 
-    /* Verify that the file was created, attempt to create 
+    /* Verify that the file was created, attempt to create
      * the file again. */
     hFile = CreateFileA(szReturnedPath,
                         GENERIC_READ,
@@ -145,7 +145,7 @@ PALTEST(file_io_GetFullPathNameA_test4_paltest_getfullpathnamea_test4, "file_io/
                         CREATE_NEW,
                         FILE_ATTRIBUTE_NORMAL,
                         NULL);
-    if ((hFile != INVALID_HANDLE_VALUE) && 
+    if ((hFile != INVALID_HANDLE_VALUE) &&
         (GetLastError() != ERROR_ALREADY_EXISTS))
     {
         Trace("ERROR :%ld: CreateFileA succeeded to create file "
@@ -162,7 +162,7 @@ PALTEST(file_io_GetFullPathNameA_test4_paltest_getfullpathnamea_test4, "file_io/
     {
         Trace("ERROR : Returned filename \"%s\" is not equal to "
              "supplied filename \"%s\".\n",
-             pPathPtr, 
+             pPathPtr,
              szFileName);
         bRetVal = FAIL;
         goto cleanUpTwo;
@@ -173,8 +173,8 @@ PALTEST(file_io_GetFullPathNameA_test4_paltest_getfullpathnamea_test4, "file_io/
     bRetVal = PASS;
 
 cleanUpTwo:
-    
-    /* Delete the create file. 
+
+    /* Delete the create file.
      */
     if (DeleteFileA(szReturnedPath) != TRUE)
     {
index 24fa5eff8faa6923fe34e9c47b3ba879ba156ccc..c6b83a2c217d9461869675ebd3777b6b8d92fda4 100644 (file)
@@ -10,7 +10,7 @@
 **          Example: test_directory\level1\..\testing.tmp.
 **          To add to this test, we will also call SetCurrentDirectory to
 **          ensure this is handled properly.
-**          The test will create a file with in the parent directory 
+**          The test will create a file with in the parent directory
 **          to verify that the returned directory is valid.
 **
 ** Depends: SetCurrentDirectory,
@@ -22,7 +22,7 @@
 **          strcmp,
 **          DeleteFileW,
 **          RemoveDirectory.
-**      
+**
 
 **
 **===================================================================*/
@@ -32,9 +32,9 @@
 PALTEST(file_io_GetFullPathNameW_test3_paltest_getfullpathnamew_test3, "file_io/GetFullPathNameW/test3/paltest_getfullpathnamew_test3")
 {
 #ifdef WIN32
-    const WCHAR szSeperator[] = {'\\','\\','\0'};
+    const WCHAR szSeparator[] = {'\\','\\','\0'};
 #else
-    const WCHAR szSeperator[] = {'/','/','\0'};
+    const WCHAR szSeparator[] = {'/','/','\0'};
 #endif
 
     const WCHAR szDotDot[]   = {'.','.','\0'};
@@ -75,7 +75,7 @@ PALTEST(file_io_GetFullPathNameW_test3_paltest_getfullpathnamew_test3, "file_io/
 
     /* Create the path to the next level of directory to create.
     */
-    wcscat(szDirectory, szCreatedDir);        /* test_dir */ 
+    wcscat(szDirectory, szCreatedDir);        /* test_dir */
 
 
     /* Create a test directory.
@@ -89,7 +89,7 @@ PALTEST(file_io_GetFullPathNameW_test3_paltest_getfullpathnamew_test3, "file_io/
 
     /* Create the path to the next level of directory to create.
     */
-    wcscat(szDirectory, szSeperator);         /* / */
+    wcscat(szDirectory, szSeparator);         /* / */
     wcscat(szDirectory, szCreatedNextDir);    /* /level1 */
 
     /* Create a test directory.
@@ -112,18 +112,18 @@ PALTEST(file_io_GetFullPathNameW_test3_paltest_getfullpathnamew_test3, "file_io/
     * in the middle of the path.
     */
     wcscat(szFullFileName, szCreatedDir);   /*test_dir                       */
-    wcscat(szFullFileName, szSeperator);    /*test_dir/                      */
+    wcscat(szFullFileName, szSeparator);    /*test_dir/                      */
     wcscat(szFullFileName, szCreatedNextDir);/*test_dir/level1               */
-    wcscat(szFullFileName, szSeperator);    /*test_dir/level1/               */
+    wcscat(szFullFileName, szSeparator);    /*test_dir/level1/               */
     wcscat(szFullFileName, szDotDot);       /*test_dir/level1/..             */
-    wcscat(szFullFileName, szSeperator);    /*test_dir/level1/../            */
+    wcscat(szFullFileName, szSeparator);    /*test_dir/level1/../            */
     wcscat(szFullFileName, szFileName);     /*test_dir/level1/../testing.tmp */
 
     /* Get the full path to the filename.
     */
-    dwRc = GetFullPathNameW(szFullFileName, 
+    dwRc = GetFullPathNameW(szFullFileName,
                             _MAX_DIR,
-                            szReturnedPath, 
+                            szReturnedPath,
                             &pPathPtr);
     if (dwRc == 0)
     {
@@ -135,7 +135,7 @@ PALTEST(file_io_GetFullPathNameW_test3_paltest_getfullpathnamew_test3, "file_io/
         goto cleanUpTwo;
     }
 
-    /* The returned value should be the parent directory with the 
+    /* The returned value should be the parent directory with the
     * file name appended. */
     hFile = CreateFileW(szReturnedPath,
                         GENERIC_READ,
@@ -147,7 +147,7 @@ PALTEST(file_io_GetFullPathNameW_test3_paltest_getfullpathnamew_test3, "file_io/
 
     if (hFile == INVALID_HANDLE_VALUE)
     {
-        Trace("ERROR :%ld: CreateFileA failed to create \"%S\".\n", 
+        Trace("ERROR :%ld: CreateFileA failed to create \"%S\".\n",
               GetLastError(),
               szReturnedPath);
         bRetVal = FAIL;
@@ -164,7 +164,7 @@ PALTEST(file_io_GetFullPathNameW_test3_paltest_getfullpathnamew_test3, "file_io/
         goto cleanUpThree;
     }
 
-    /* Verify that the file was created, attempt to create 
+    /* Verify that the file was created, attempt to create
     * the file again. */
     hFile = CreateFileW(szReturnedPath,
                         GENERIC_READ,
@@ -173,7 +173,7 @@ PALTEST(file_io_GetFullPathNameW_test3_paltest_getfullpathnamew_test3, "file_io/
                         CREATE_NEW,
                         FILE_ATTRIBUTE_NORMAL,
                         NULL);
-    if ((hFile != INVALID_HANDLE_VALUE) && 
+    if ((hFile != INVALID_HANDLE_VALUE) &&
         (GetLastError() != ERROR_ALREADY_EXISTS))
     {
         Trace("ERROR :%ld: CreateFileA succeeded to create file "
@@ -190,7 +190,7 @@ PALTEST(file_io_GetFullPathNameW_test3_paltest_getfullpathnamew_test3, "file_io/
     {
         Trace("ERROR : Returned filename \"%s\" is not equal to "
             "supplied filename \"%s\".\n",
-            pPathPtr, 
+            pPathPtr,
             szFileName);
         bRetVal = FAIL;
         goto cleanUpThree;
@@ -202,7 +202,7 @@ PALTEST(file_io_GetFullPathNameW_test3_paltest_getfullpathnamew_test3, "file_io/
 
 cleanUpThree:
 
-    /* Delete the create file. 
+    /* Delete the create file.
     */
     if (DeleteFileW(szReturnedPath) != TRUE)
     {
@@ -210,7 +210,7 @@ cleanUpThree:
     GetLastError(),
     szFileName);
     }
-    
+
 cleanUpTwo:
 
     /* Remove the empty directory.
@@ -232,7 +232,7 @@ cleanUpOne:
     GetLastError(),
     szCreatedDir);
     }
-    
+
     /* Terminate the PAL.*/
     PAL_TerminateEx(bRetVal);
     return bRetVal;
index 752abfc0605b7a6f52f1a96586c01fb35e21e8a9..7bc7fceed80d855e47fe3df8d9d112980fdebc34 100644 (file)
@@ -10,7 +10,7 @@
 **          Example: ..\test_directory\testing.tmp.
 **          To add to this test, we will also call SetCurrentDirectory to
 **          ensure this is handled properly.
-**          The test will create a file with in the parent directory 
+**          The test will create a file with in the parent directory
 **          to verify that the returned directory is valid.
 **
 ** Depends: SetCurrentDirectory,
@@ -22,7 +22,7 @@
 **          strcmp,
 **          DeleteFileW,
 **          RemoveDirectory.
-**      
+**
 
 **
 **===================================================================*/
@@ -32,9 +32,9 @@
 PALTEST(file_io_GetFullPathNameW_test4_paltest_getfullpathnamew_test4, "file_io/GetFullPathNameW/test4/paltest_getfullpathnamew_test4")
 {
 #ifdef WIN32
-    const WCHAR szSeperator[] = {'\\','\\','\0'};
+    const WCHAR szSeparator[] = {'\\','\\','\0'};
 #else
-    const WCHAR szSeperator[] = {'/','/','\0'};
+    const WCHAR szSeparator[] = {'/','/','\0'};
 #endif
 
     const WCHAR szDotDot[]   = {'.','.','\0'};
@@ -65,7 +65,7 @@ PALTEST(file_io_GetFullPathNameW_test4_paltest_getfullpathnamew_test4, "file_io/
     /* Create the path to the next level of directory to create.
      */
     wcscat(szDirectory, szDotDot);        /* ..                  */
-    wcscat(szDirectory, szSeperator);     /* ../                 */
+    wcscat(szDirectory, szSeparator);     /* ../                 */
     wcscat(szDirectory, szCreatedDir);    /* ../test_directory   */
 
     /* Create a test directory.
@@ -86,16 +86,16 @@ PALTEST(file_io_GetFullPathNameW_test4_paltest_getfullpathnamew_test4, "file_io/
      * in the middle of the path.
      */
     wcscat( szFullFileName, szDotDot );     /* ..                            */
-    wcscat( szFullFileName, szSeperator );  /* ../                           */
+    wcscat( szFullFileName, szSeparator );  /* ../                           */
     wcscat( szFullFileName, szCreatedDir ); /* ../test_directory             */
-    wcscat( szFullFileName, szSeperator );  /* ../test_directory/            */
+    wcscat( szFullFileName, szSeparator );  /* ../test_directory/            */
     wcscat( szFullFileName, szFileName );   /* ../test_directory/testing.tmp */
 
     /* Get the full path to the filename.
      */
-    dwRc = GetFullPathNameW(szFullFileName, 
+    dwRc = GetFullPathNameW(szFullFileName,
                             _MAX_DIR,
-                            szReturnedPath, 
+                            szReturnedPath,
                             &pPathPtr);
     if (dwRc == 0)
     {
@@ -107,7 +107,7 @@ PALTEST(file_io_GetFullPathNameW_test4_paltest_getfullpathnamew_test4, "file_io/
         goto cleanUpOne;
     }
 
-    /* The returned value should be the parent directory with the 
+    /* The returned value should be the parent directory with the
      * file name appended. */
     hFile = CreateFileW(szReturnedPath,
                         GENERIC_READ,
@@ -119,7 +119,7 @@ PALTEST(file_io_GetFullPathNameW_test4_paltest_getfullpathnamew_test4, "file_io/
 
     if (hFile == INVALID_HANDLE_VALUE)
     {
-        Trace("ERROR :%ld: CreateFileA failed to create \"%S\".\n", 
+        Trace("ERROR :%ld: CreateFileA failed to create \"%S\".\n",
               GetLastError(),
               szReturnedPath);
         bRetVal = FAIL;
@@ -136,7 +136,7 @@ PALTEST(file_io_GetFullPathNameW_test4_paltest_getfullpathnamew_test4, "file_io/
         goto cleanUpTwo;
     }
 
-    /* Verify that the file was created, attempt to create 
+    /* Verify that the file was created, attempt to create
      * the file again. */
     hFile = CreateFileW(szReturnedPath,
                         GENERIC_READ,
@@ -145,7 +145,7 @@ PALTEST(file_io_GetFullPathNameW_test4_paltest_getfullpathnamew_test4, "file_io/
                         CREATE_NEW,
                         FILE_ATTRIBUTE_NORMAL,
                         NULL);
-    if ((hFile != INVALID_HANDLE_VALUE) && 
+    if ((hFile != INVALID_HANDLE_VALUE) &&
         (GetLastError() != ERROR_ALREADY_EXISTS))
     {
         Trace("ERROR :%ld: CreateFileA succeeded to create file "
@@ -162,7 +162,7 @@ PALTEST(file_io_GetFullPathNameW_test4_paltest_getfullpathnamew_test4, "file_io/
     {
         Trace("ERROR : Returned filename \"%S\" is not equal to "
               "supplied filename \"%S\".\n",
-              pPathPtr, 
+              pPathPtr,
               szFileName);
         bRetVal = FAIL;
         goto cleanUpTwo;
@@ -173,8 +173,8 @@ PALTEST(file_io_GetFullPathNameW_test4_paltest_getfullpathnamew_test4, "file_io/
     bRetVal = PASS;
 
 cleanUpTwo:
-    
-    /* Delete the create file. 
+
+    /* Delete the create file.
      */
     if (DeleteFileW(szReturnedPath) != TRUE)
     {
index d856be3571ca99a6680c3fc0c3061d0519e51313..0202ada01287bfab53efc48288ce418ed19a6dbb 100644 (file)
@@ -3,10 +3,10 @@
 
 /*============================================================
 **
-** Source: test1.c 
+** Source: test1.c
 **
 ** Purpose: Test for CreateThread.  Call CreateThread and ensure
-** that it succeeds.  Also check to ensure the paramater is passed
+** that it succeeds.  Also check to ensure the parameter is passed
 ** properly.
 **
 **
@@ -21,10 +21,10 @@ ULONGLONG dwCreateThreadTestParameter = 0;
 DWORD PALAPI CreateThreadTestThread( LPVOID lpParameter)
 {
     DWORD dwRet = 0;
-    
+
     /* save parameter for test */
     dwCreateThreadTestParameter = (ULONGLONG)lpParameter;
-    
+
     return dwRet;
 }
 
@@ -34,7 +34,7 @@ BOOL CreateThreadTest()
     DWORD dwRet = 0;
 
     LPSECURITY_ATTRIBUTES lpThreadAttributes = NULL;
-    DWORD dwStackSize = 0; 
+    DWORD dwStackSize = 0;
     LPTHREAD_START_ROUTINE lpStartAddress =  &CreateThreadTestThread;
     LPVOID lpParameter = (LPVOID)lpStartAddress;
     DWORD dwCreationFlags = 0;  /* run immediately */
@@ -44,17 +44,17 @@ BOOL CreateThreadTest()
 
     dwCreateThreadTestParameter = 0;
 
-    /* Create a thread, passing the appropriate paramaters as declared
+    /* Create a thread, passing the appropriate parameters as declared
        above.
     */
-    
-    hThread = CreateThread( lpThreadAttributes,   
-                            dwStackSize,          
-                            lpStartAddress,       
-                            lpParameter,          
-                            dwCreationFlags,      
-                            &dwThreadId );       
-    
+
+    hThread = CreateThread( lpThreadAttributes,
+                            dwStackSize,
+                            lpStartAddress,
+                            lpParameter,
+                            dwCreationFlags,
+                            &dwThreadId );
+
     /* Ensure that the HANDLE is not invalid! */
     if (hThread != INVALID_HANDLE_VALUE)
     {
@@ -70,7 +70,7 @@ BOOL CreateThreadTest()
             /* Check to ensure that the parameter passed to the thread
                function is the same in the function as what we passed.
             */
-            
+
             if (dwCreateThreadTestParameter != (ULONGLONG)lpParameter)
             {
                 Trace("CreateThreadTest:parameter error.  The "
@@ -91,7 +91,7 @@ BOOL CreateThreadTest()
         Trace("CreateThreadTest:CreateThread failed (%x)\n",GetLastError());
     }
 
-    return bRet; 
+    return bRet;
 }
 
 
@@ -101,12 +101,12 @@ PALTEST(threading_CreateThread_test1_paltest_createthread_test1, "threading/Crea
     {
         return ( FAIL );
     }
-    
-    if(!CreateThreadTest()) 
+
+    if(!CreateThreadTest())
     {
         Fail ("Test failed\n");
     }
-      
+
     Trace("Test Passed\n");
     PAL_Terminate();
     return ( PASS );
index 084ddc504b47566f2c7250faa5ef48fb516e540f..c3b302842b986df40b8bb455849a81452b3b335e 100644 (file)
@@ -3,7 +3,7 @@
 
 /*============================================================
 **
-** Source: test1.c 
+** Source: test1.c
 **
 ** Purpose: Test for ExitThread.  Create a thread and then call
 ** exit thread within the threading function.  Ensure that it exits
@@ -26,7 +26,7 @@ DWORD PALAPI ExitThreadTestThread( LPVOID lpParameter)
     /* Call the ExitThread function */
     ExitThread(dwRet);
 
-    /* If we didn't exit, get caught in this loop.  But, the 
+    /* If we didn't exit, get caught in this loop.  But, the
        program will exit.
     */
     while (!dwRet)
@@ -45,7 +45,7 @@ BOOL ExitThreadTest()
     DWORD dwRet = 0;
 
     LPSECURITY_ATTRIBUTES lpThreadAttributes = NULL;
-    DWORD dwStackSize = 0; 
+    DWORD dwStackSize = 0;
     LPTHREAD_START_ROUTINE lpStartAddress =  &ExitThreadTestThread;
     LPVOID lpParameter = (LPVOID)lpStartAddress;
     DWORD dwCreationFlags = 0;  //run immediately
@@ -56,16 +56,16 @@ BOOL ExitThreadTest()
     dwExitThreadTestParameter = 0;
 
     /* Create a Thread.  We'll need this to test that we're able
-       to exit the thread.  
+       to exit the thread.
     */
-    hThread = CreateThread( lpThreadAttributes, 
-                            dwStackSize, lpStartAddress, lpParameter, 
-                            dwCreationFlags, &dwThreadId ); 
-        
+    hThread = CreateThread( lpThreadAttributes,
+                            dwStackSize, lpStartAddress, lpParameter,
+                            dwCreationFlags, &dwThreadId );
+
     if (hThread != INVALID_HANDLE_VALUE)
     {
         dwRet = WaitForSingleObject(hThread,INFINITE);
-            
+
         if (dwRet != WAIT_OBJECT_0)
         {
             Trace("ExitThreadTest:WaitForSingleObject failed "
@@ -78,7 +78,7 @@ BOOL ExitThreadTest()
             */
             if (dwExitThreadTestParameter != (DWORD)(SIZE_T)lpParameter)
             {
-                Trace("ERROR: The paramater passed should have been "
+                Trace("ERROR: The parameter passed should have been "
                        "%d but turned up as %d.",
                        dwExitThreadTestParameter, lpParameter);
             }
@@ -93,7 +93,7 @@ BOOL ExitThreadTest()
         Trace("ExitThreadTest:CreateThread failed (%x)\n",GetLastError());
     }
 
-    return bRet; 
+    return bRet;
 }
 
 PALTEST(threading_ExitThread_test1_paltest_exitthread_test1, "threading/ExitThread/test1/paltest_exitthread_test1")
@@ -107,7 +107,7 @@ PALTEST(threading_ExitThread_test1_paltest_exitthread_test1, "threading/ExitThre
     {
         Fail ("Test failed\n");
     }
-    
+
     PAL_Terminate();
     return ( PASS );
 }
index 23c7e5eb028b0993d57ec72798d1bd9ad3633240..ab943b11a170602c2d753db16f73c76cc7e06a06 100644 (file)
@@ -8,7 +8,7 @@
 ** Purpose: Test the functionality of simultaneously waiting
 ** on multiple processes. Create the same number of helper
 ** processes and helper threads.
-** Helper threads wait on helper processes to finish. 
+** Helper threads wait on helper processes to finish.
 ** Helper processes wait on the event signal from test
 ** thread before exit.
 ** The test thread can wake up one helper
@@ -47,7 +47,7 @@ TestCaseType TestCase = WakeUpOneThread;
    should be waked up using hThreadFinishEvent instead of helper process. */
 DWORD ThreadIndexOfThreadFinishEvent = 0;
 
-struct helper_process_t 
+struct helper_process_t
 {
     PROCESS_INFORMATION pi;
     HANDLE hProcessReadyEvent;
@@ -56,7 +56,7 @@ struct helper_process_t
 
 HANDLE hProcessStartEvent_WFMO_test5;
 
-struct helper_thread_t 
+struct helper_thread_t
 {
     HANDLE hThread;
     DWORD dwThreadId;
@@ -64,7 +64,7 @@ struct helper_thread_t
     HANDLE hThreadFinishEvent;
 } helper_thread[MAX_HELPER_PROCESS];
 
-/* 
+/*
  * Entry Point for helper thread.
  */
 DWORD PALAPI WaitForProcess(LPVOID lpParameter)
@@ -92,7 +92,7 @@ DWORD PALAPI WaitForProcess(LPVOID lpParameter)
     if(!SetEvent(helper_thread[index].hThreadReadyEvent))
     {
         Fail("test5.WaitProcess: SetEvent of hThreadReadyEvent failed for thread %d. "
-            "GetLastError() returned %d.\n", index, 
+            "GetLastError() returned %d.\n", index,
             GetLastError());
     }
 
@@ -105,7 +105,7 @@ DWORD PALAPI WaitForProcess(LPVOID lpParameter)
         if (dwRet != (WAIT_OBJECT_0+0))
         {
             Fail("test5.WaitForProcess: invalid return value %d for WakupAllThread from WaitForMultipleObjectsEx for thread %d\n"
-                    "LastError:(%u)\n", 
+                    "LastError:(%u)\n",
                     dwRet, index,
                     GetLastError());
         }
@@ -116,11 +116,11 @@ DWORD PALAPI WaitForProcess(LPVOID lpParameter)
            the return value must be either (WAIT_OBJECT_0+index) if the helper thread
            wakes up because the corresponding help process exits,
            or (index+1) if the helper thread wakes up because of hThreadReadyEvent. */
-        if ((index != ThreadIndexOfThreadFinishEvent && dwRet != (WAIT_OBJECT_0+index)) || 
+        if ((index != ThreadIndexOfThreadFinishEvent && dwRet != (WAIT_OBJECT_0+index)) ||
             (index == ThreadIndexOfThreadFinishEvent && dwRet != (index+1)))
         {
             Fail("test5.WaitForProcess: invalid return value %d for WakupOneThread from WaitForMultipleObjectsEx for thread %d\n"
-                    "LastError:(%u)\n", 
+                    "LastError:(%u)\n",
                     dwRet, index,
                     GetLastError());
         }
@@ -132,7 +132,7 @@ DWORD PALAPI WaitForProcess(LPVOID lpParameter)
     return 0;
 }
 
-/* 
+/*
  * Setup the helper processes and helper threads.
  */
 void
@@ -142,7 +142,7 @@ Setup()
     STARTUPINFO si;
     DWORD dwRet;
     int i;
-    
+
     char szEventName[MAX_PATH];
     PWCHAR uniStringHelper;
     PWCHAR uniString;
@@ -151,10 +151,10 @@ Setup()
     uniString = convert(szcHelperProcessStartEvName);
     hProcessStartEvent_WFMO_test5 = CreateEvent(NULL, TRUE, FALSE, uniString);
     free(uniString);
-    if (!hProcessStartEvent_WFMO_test5) 
+    if (!hProcessStartEvent_WFMO_test5)
     {
         Fail("test5.Setup: CreateEvent of '%s' failed. "
-             "GetLastError() returned %d.\n", szcHelperProcessStartEvName, 
+             "GetLastError() returned %d.\n", szcHelperProcessStartEvName,
              GetLastError());
     }
 
@@ -165,9 +165,9 @@ Setup()
     for (i = 0; i < MaxNumHelperProcess; i++)
     {
         ZeroMemory( &helper_process[i].pi, sizeof(PROCESS_INFORMATION));
-        
-        if(!CreateProcess( NULL, uniStringHelper, NULL, NULL, 
-                            FALSE, 0, NULL, NULL, &si, &helper_process[i].pi)) 
+
+        if(!CreateProcess( NULL, uniStringHelper, NULL, NULL,
+                            FALSE, 0, NULL, NULL, &si, &helper_process[i].pi))
         {
             Fail("test5.Setup: CreateProcess failed to load executable for helper process %d.  "
                 "GetLastError() returned %u.\n",
@@ -185,10 +185,10 @@ Setup()
 
         helper_process[i].hProcessReadyEvent = CreateEvent(NULL, FALSE, FALSE, uniString);
         free(uniString);
-        if (!helper_process[i].hProcessReadyEvent) 
+        if (!helper_process[i].hProcessReadyEvent)
         {
             Fail("test5.Setup: CreateEvent of '%s' failed. "
-                "GetLastError() returned %d.\n", szEventName, 
+                "GetLastError() returned %d.\n", szEventName,
                 GetLastError());
         }
 
@@ -203,10 +203,10 @@ Setup()
 
         helper_process[i].hProcessFinishEvent = CreateEvent(NULL, TRUE, FALSE, uniString);
         free(uniString);
-        if (!helper_process[i].hProcessFinishEvent) 
+        if (!helper_process[i].hProcessFinishEvent)
         {
             Fail("test5.Setup: CreateEvent of '%s' failed. "
-                "GetLastError() returned %d.\n", szEventName, 
+                "GetLastError() returned %d.\n", szEventName,
                 GetLastError());
         }
 
@@ -223,12 +223,12 @@ Setup()
 
     /* Wait for ready signals from all helper processes. */
     for (i = 0; i < MaxNumHelperProcess; i++)
-    {  
+    {
         dwRet = WaitForSingleObject(helper_process[i].hProcessReadyEvent, TIMEOUT);
         if (dwRet != WAIT_OBJECT_0)
         {
             Fail("test5.Setup: WaitForSingleObject %s failed for helper process %d\n"
-                    "LastError:(%u)\n", 
+                    "LastError:(%u)\n",
                     szcHelperProcessReadyEvName, i, GetLastError());
         }
     }
@@ -238,7 +238,7 @@ Setup()
     {
         /* Create the event to let helper thread tell us it is ready. */
         helper_thread[i].hThreadReadyEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
-        if (!helper_thread[i].hThreadReadyEvent) 
+        if (!helper_thread[i].hThreadReadyEvent)
         {
             Fail("test5.Setup: CreateEvent of hThreadReadyEvent failed for thread %d\n"
                 "LastError:(%u)\n", i, GetLastError());
@@ -246,15 +246,15 @@ Setup()
 
         /* Create the event to tell helper thread to exit without waiting for helper process. */
         helper_thread[i].hThreadFinishEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
-        if (!helper_thread[i].hThreadFinishEvent) 
+        if (!helper_thread[i].hThreadFinishEvent)
         {
             Fail("test5.Setup: CreateEvent of hThreadFinishEvent failed for thread %d\n"
                 "LastError:(%u)\n", i, GetLastError());
         }
 
         /* Create the helper thread. */
-        helper_thread[i].hThread = CreateThread( NULL, 
-                                0, 
+        helper_thread[i].hThread = CreateThread( NULL,
+                                0,
                                 (LPTHREAD_START_ROUTINE)WaitForProcess,
                                 (LPVOID)i,
                                 0,
@@ -268,7 +268,7 @@ Setup()
 
     /* Wait for ready signals from all helper threads. */
     for (i = 0; i < MaxNumHelperProcess; i++)
-    {  
+    {
         dwRet = WaitForSingleObject(helper_thread[i].hThreadReadyEvent, TIMEOUT);
         if (dwRet != WAIT_OBJECT_0)
         {
@@ -278,7 +278,7 @@ Setup()
     }
 }
 
-/* 
+/*
  * Cleanup the helper processes and helper threads.
  */
 DWORD
@@ -301,16 +301,16 @@ Cleanup_WFMO_test5()
                     "LastError:(%u)\n", i, GetLastError());
         }
 
-        /* check the exit code from the process */       
+        /* check the exit code from the process */
         if (!GetExitCodeProcess(helper_process[i].pi.hProcess, &dwExitCode))
         {
-            Trace( "test5.Cleanup: GetExitCodeProcess %d call failed LastError:(%u)\n", 
-                i, GetLastError()); 
+            Trace( "test5.Cleanup: GetExitCodeProcess %d call failed LastError:(%u)\n",
+                i, GetLastError());
             dwExitCode = FAIL;
         }
         PEDANTIC(CloseHandle, (helper_process[i].pi.hThread));
         PEDANTIC(CloseHandle, (helper_process[i].pi.hProcess));
-        PEDANTIC(CloseHandle, (helper_process[i].hProcessReadyEvent)); 
+        PEDANTIC(CloseHandle, (helper_process[i].hProcessReadyEvent));
         PEDANTIC(CloseHandle, (helper_process[i].hProcessFinishEvent));
     }
 
@@ -328,7 +328,7 @@ Cleanup_WFMO_test5()
     return dwExitCode;
 }
 
-/* 
+/*
  * In this test case, the test thread will signal one helper
  * process to exit at a time starting from the last helper
  * process and then wait for the corresponding helper thread to exit.
@@ -348,7 +348,7 @@ TestWakeupOneThread()
         Fail("test5.TestWaitOnOneThread: Invalid ThreadIndexOfThreadFinishEvent %d\n", ThreadIndexOfThreadFinishEvent);
 
     /* Since helper thread 0 waits on helper process 0,
-       thread 1 waits on on process 0, and 1,
+       thread 1 waits on process 0, and 1,
        thread 2 waits on process 0, 1, and 2, and so on ...,
        and the last helper thread will wait on all helper processes,
        the helper thread can be waked up one at a time by
@@ -383,16 +383,16 @@ TestWakeupOneThread()
                     GetLastError());
             }
         }
-    
+
         dwRet = WaitForSingleObject(helper_thread[i].hThread, TIMEOUT);
         if (WAIT_OBJECT_0 != dwRet)
         {
             Fail("test5.TestWaitOnOneThread: WaitForSingleObject helper thread %d"
-                    "LastError:(%u)\n", 
+                    "LastError:(%u)\n",
                     i, GetLastError());
         }
     }
-    
+
     /* Finally, need to wake up the helper process which the test thread
        skips waking up in the last loop. */
     if (!SetEvent(helper_process[ThreadIndexOfThreadFinishEvent].hProcessFinishEvent))
@@ -404,7 +404,7 @@ TestWakeupOneThread()
     }
 }
 
-/* 
+/*
  * In this test case, the test thread will signal the helper
  * process 0 to exit. Since all helper threads wait on process 0,
  * all helper threads will wake up and exit, and the test thread
@@ -440,17 +440,17 @@ TestWakeupAllThread()
     /* Wait for all helper threads to exit. */
     for (i = 0; i < MaxNumHelperProcess; i++)
     {
-    
+
         dwRet = WaitForSingleObject(helper_thread[i].hThread, TIMEOUT);
         if (WAIT_OBJECT_0 != dwRet)
         {
             Fail("test5.TestWaitOnAllThread: WaitForSingleObject failed for helper thread %d\n"
-                    "LastError:(%u)\n", 
+                    "LastError:(%u)\n",
                     i, GetLastError());
         }
     }
 
-    /* Signal the rest of helper processes to exit. */    
+    /* Signal the rest of helper processes to exit. */
     for (i = 1; i < MaxNumHelperProcess; i++)
     {
         if (!SetEvent(helper_process[i].hProcessFinishEvent))
index f1e341a36b297ee27af6edbfc6a9d8aad0c45110..e557a8e8aabb8a7d094cbd44c435b58b9b5a0a07 100644 (file)
@@ -275,7 +275,7 @@ def parseTemplateNodes(templateNodes):
         structCounts = {}
         arrays = {}
         templateName    = templateNode.getAttribute('tid')
-        var_Dependecies = {}
+        var_Dependencies = {}
         fnPrototypes    = FunctionSignature()
         dataNodes       = getTopLevelElementsByTagName(templateNode,'data')
 
@@ -318,7 +318,7 @@ def parseTemplateNodes(templateNodes):
             if  wintype == "win:GUID":
                 var_Props = "sizeof(GUID)/sizeof(int)"
 
-            var_Dependecies[variable] = var_dependency
+            var_Dependencies[variable] = var_dependency
             fnparam        = FunctionParameter(wintype,variable,wincount,var_Props)
             fnPrototypes.append(variable,fnparam)
 
@@ -337,11 +337,11 @@ def parseTemplateNodes(templateNodes):
             types = [x.attributes['inType'].value for x in structToBeMarshalled.getElementsByTagName("data")]
 
             structCounts[structName] = countVarName
-            var_Dependecies[structName] = [countVarName, structName]
+            var_Dependencies[structName] = [countVarName, structName]
             fnparam_pointer = FunctionParameter("win:Struct", structName, "win:count", countVarName)
             fnPrototypes.append(structName, fnparam_pointer)
 
-        allTemplates[templateName] = Template(templateName, fnPrototypes, var_Dependecies, structCounts, arrays)
+        allTemplates[templateName] = Template(templateName, fnPrototypes, var_Dependencies, structCounts, arrays)
 
     return allTemplates
 
index 58ebedf78146a7f545f1b55d026a362984cf00d0..2766d7226bfb711587448543406703d79e163801 100644 (file)
@@ -108,7 +108,7 @@ namespace ILCompiler
                 // Validate classes, structs, enums, interfaces, and delegates
                 Debug.Assert(type.IsDefType);
 
-                // Don't validate generic definitons
+                // Don't validate generic definitions
                 if (type.IsGenericDefinition)
                 {
                     return type;
index a657279bfd1b1e1cd90b168ced9410ab9884337b..9ae8212de83925314fa177f8b83fb71f2e8e3a92 100644 (file)
@@ -2707,8 +2707,7 @@ namespace Internal.JitInterface
             }
 
             // If both sides are arrays, then the result is either an array or g_pArrayClass.  The above is
-            // actually true about the element type for references types, but I think that that is a little
-            // excessive for sanity.
+            // actually true for reference types as well, but it is a little excessive to deal with.
             if (type1.IsArray && type2.IsArray)
             {
                 TypeDesc arrayClass = _compilation.TypeSystemContext.GetWellKnownType(WellKnownType.Array);
index 68e6371d89e610287a1c6f51a644d28555595f7c..0e6328904c7ee6f69d24266e03c653423961f6f5 100644 (file)
@@ -7,7 +7,7 @@ using Debug = System.Diagnostics.Debug;
 namespace Internal.TypeSystem
 {
     /// <summary>
-    /// RuntimeInterfaces algorithm for for array types which are similar to a generic type
+    /// RuntimeInterfaces algorithm for array types which are similar to a generic type
     /// </summary>
     public sealed class ArrayOfTRuntimeInterfacesAlgorithm : RuntimeInterfacesAlgorithm
     {
@@ -17,7 +17,7 @@ namespace Internal.TypeSystem
         private MetadataType _arrayOfTType;
 
         /// <summary>
-        /// RuntimeInterfaces algorithm for for array types which are similar to a generic type
+        /// RuntimeInterfaces algorithm for array types which are similar to a generic type
         /// </summary>
         /// <param name="arrayOfTType">Open type to instantiate to get the interfaces associated with an array.</param>
         public ArrayOfTRuntimeInterfacesAlgorithm(MetadataType arrayOfTType)
index 2decce4fa742113a74e6cea764767fe0dce2a942..c537f6ea4571e232add13a5253673267a662681a 100644 (file)
@@ -52,7 +52,7 @@ namespace Internal.TypeSystem
 
         private readonly int _pointerSize;
 
-        // Represent field layout bits as as a series of intervals to prevent pathological bad behavior
+        // Represent field layout bits as a series of intervals to prevent pathological bad behavior
         // involving excessively large explicit layout structures.
         private readonly List<FieldLayoutInterval> _fieldLayout;
 
index eb55228d3e5d9e84df7eb2987f1a0fe72090d1b8..daeb4d1be86e63f4c91ce1d5f89db7ac7de98695 100644 (file)
@@ -460,7 +460,7 @@ namespace Internal.TypeSystem
             foreach (MethodDesc memberMethod in unificationGroup.Members)
             {
                 // If a method is both overriden via MethodImpl and name/sig, we don't remove it from the unification list
-                // as the local MethodImpl takes priority over the name/sig match, and prevents the slot disunificaiton
+                // as the local MethodImpl takes priority over the name/sig match, and prevents the slot disunification.
                 if (FindSlotDefiningMethodForVirtualMethod(memberMethod) == FindSlotDefiningMethodForVirtualMethod(originalDefiningMethod))
                     continue;
 
@@ -525,7 +525,7 @@ namespace Internal.TypeSystem
                             unificationGroup.AddMethodRequiringSlotUnification(methodImplRequiredToRemainInEffect);
                         }
 
-                        // Add all members from the decl's unification group except for ones that have been seperated by name/sig matches
+                        // Add all members from the decl's unification group except for ones that have been separated by name/sig matches
                         // or previously processed methodimpls. NOTE: This implies that method impls are order dependent.
                         if (separatedMethods == null || !separatedMethods.Contains(addDeclGroup.DefiningMethod))
                         {
index 4cd56aea6b17c00900b99ed00bfa58330dafdff9..490e804dda6b786ab062bbb3f03f25ce6c7ba5e9 100644 (file)
@@ -19,7 +19,7 @@ namespace Internal.TypeSystem.Interop
 
     // Each type of marshaller knows how to generate the marshalling code for the argument it marshals.
     // Marshallers contain method related marshalling information (which is common to all the Marshallers)
-    // and also argument specific marshalling informaiton
+    // and also argument specific marshalling information.
     abstract partial class Marshaller
     {
         #region Instance state information
index 415dca084fbfa79795cc0615377c4bf709adfd37..68ab76865e1434010812dd89572c024c68d52dd8 100644 (file)
@@ -40,7 +40,7 @@ namespace ILCompiler
             }
         }
 
-        public override void AddDependeciesDueToPInvoke(ref DependencyList dependencies, NodeFactory factory, MethodDesc method)
+        public override void AddDependenciesDueToPInvoke(ref DependencyList dependencies, NodeFactory factory, MethodDesc method)
         {
         }
 
index ca40317e74b23ce86cb2324be0572c63e32093c0..09d58311aee3ae526419a16d35e433a45b57eb84 100644 (file)
@@ -445,7 +445,7 @@ namespace ILCompiler
         }
 
         /// <summary>
-        /// Retreives method whose runtime handle is suitable for use with GVMLookupForSlot.
+        /// Retrieves method whose runtime handle is suitable for use with GVMLookupForSlot.
         /// </summary>
         public MethodDesc GetTargetOfGenericVirtualMethodCall(MethodDesc calledMethod)
         {
index 96dfdf19104bf36302b07e23b2dd024c1aec3354..ce656b1f9859830afffbeccd12e2c8e65e0cc4ae 100644 (file)
@@ -21,7 +21,7 @@ namespace ILCompiler.DependencyAnalysis
         {
             factory.MetadataManager.GetDependenciesDueToMethodCodePresence(ref dependencies, factory, method, methodIL);
 
-            factory.InteropStubManager.AddDependeciesDueToPInvoke(ref dependencies, factory, method);
+            factory.InteropStubManager.AddDependenciesDueToPInvoke(ref dependencies, factory, method);
 
             if (method.OwningType is MetadataType mdOwningType
                 && mdOwningType.Module.GetGlobalModuleType().GetStaticConstructor() is MethodDesc moduleCctor)
index 1261a63c1117c662b615258474f68bbdd545ce39..e81d3471702784960f095daaef5d8b431ee5d55e 100644 (file)
@@ -21,14 +21,14 @@ namespace ILCompiler
             return null;
         }
 
-        public override void AddDependeciesDueToPInvoke(ref DependencyList dependencies, NodeFactory factory, MethodDesc method)
+        public override void AddDependenciesDueToPInvoke(ref DependencyList dependencies, NodeFactory factory, MethodDesc method)
         {
         }
 
         public override void AddInterestingInteropConstructedTypeDependencies(ref DependencyList dependencies, NodeFactory factory, TypeDesc type)
         {
         }
+
         public override void AddMarshalAPIsGenericDependencies(ref DependencyList dependencies, NodeFactory factory, MethodDesc method)
         {
         }
index 87a7a35bb8b1baafd78c47ed2976e82fade134a4..5e99e86115b53e5dcbdcbb5be71650f0ea8b5811 100644 (file)
@@ -16,8 +16,8 @@ namespace ILCompiler
     /// </summary>
     public abstract class InteropStubManager : ICompilationRootProvider
     {
-        public abstract void AddDependeciesDueToPInvoke(ref DependencyList dependencies, NodeFactory factory, MethodDesc method);
-        
+        public abstract void AddDependenciesDueToPInvoke(ref DependencyList dependencies, NodeFactory factory, MethodDesc method);
+
         public abstract void AddInterestingInteropConstructedTypeDependencies(ref DependencyList dependencies, NodeFactory factory, TypeDesc type);
 
         public abstract PInvokeILProvider CreatePInvokeILProvider();
index 430c77f98f9056d482b726350a7eaa04a1fa022e..3b7d912a7c68bf4872fc49d59142b6025969a8e6 100644 (file)
@@ -28,7 +28,7 @@ namespace ILCompiler
             _logger = logger;
         }
 
-        public override void AddDependeciesDueToPInvoke(ref DependencyList dependencies, NodeFactory factory, MethodDesc method)
+        public override void AddDependenciesDueToPInvoke(ref DependencyList dependencies, NodeFactory factory, MethodDesc method)
         {
             if (method.IsPInvoke && method.OwningType is MetadataType type && MarshalHelpers.IsRuntimeMarshallingEnabled(type.Module))
             {
index bc4de930eb8d2eda0e07571da04af1c81344b941..c07d679f9be02ad13eba5fa4d7f356d9ba43e3b2 100644 (file)
@@ -420,7 +420,7 @@ namespace Internal.IL
                     // Either
                     //    1. no constraint resolution at compile time (!directMethod)
                     // OR 2. no code sharing lookup in call
-                    // OR 3. we have have resolved to an instantiating stub
+                    // OR 3. we have resolved to an instantiating stub
 
                     methodAfterConstraintResolution = directMethod;
 
index 2d3b7b07246339025c8316ca068072640cd25658..ddde51c53f0d118108c01bd84ff6aee3092de31e 100644 (file)
@@ -11,16 +11,16 @@ namespace ILCompiler.DependencyAnalysisFramework
     /// <summary>
     /// Implement a dependency analysis framework. This works much like a Garbage Collector's mark algorithm
     /// in that it finds a set of nodes from an initial root set.
-    /// 
+    ///
     /// However, in contrast to a typical GC in addition to simple edges from a node, there may also
     /// be conditional edges where a node has a dependency if some other specific node exists in the
     /// graph, and dynamic edges in which a node has a dependency if some other node exists in the graph,
     /// but what that other node might be is not known until it may exist in the graph.
-    /// 
+    ///
     /// This analyzer also attempts to maintain a serialized state of why nodes are in the graph
     /// with strings describing the reason a given node was added to the graph. The degree of logging
     /// is configurable via the MarkStrategy
-    /// 
+    ///
     /// </summary>
     public sealed class DependencyAnalyzer<MarkStrategy, DependencyContextType> : DependencyAnalyzerBase<DependencyContextType> where MarkStrategy : struct, IDependencyAnalysisMarkStrategy<DependencyContextType>
     {
@@ -244,7 +244,7 @@ namespace ILCompiler.DependencyAnalysisFramework
                     Debug.Assert(currentNode.Marked);
 
                     // Only some marked objects are interesting for dynamic dependencies
-                    // store those in a seperate list to avoid excess scanning over non-interesting
+                    // store those in a separate list to avoid excess scanning over non-interesting
                     // nodes during dynamic dependency discovery
                     if (currentNode.InterestingForDynamicDependencyAnalysis)
                     {
@@ -262,7 +262,7 @@ namespace ILCompiler.DependencyAnalysisFramework
                         _markedNodesWithDynamicDependencies.Add(new DynamicDependencyNode(currentNode));
                     }
 
-                    // If this new node satisfies any stored conditional dependencies, 
+                    // If this new node satisfies any stored conditional dependencies,
                     // add them to the mark stack
                     HashSet<DependencyNodeCore<DependencyContextType>.CombinedDependencyListEntry> storedDependencySet = null;
                     if (_conditional_dependency_store.TryGetValue(currentNode, out storedDependencySet))
index 4ba66a5ca9ccc47b2e5ac263d8b09ec1dec3e792..84ec3e175cbafb0cc9a9613f6f5f5772804b5603 100644 (file)
@@ -100,8 +100,8 @@ namespace ILCompiler
         }
 
         // Compilation Unit Index is the compilation unit of a given module. If the compilation unit
-        // is unknown the module will be given an independent index from other modules, but 
-        // IsCompilationUnitIndexExact will return false for that index. All compilation unit indices 
+        // is unknown the module will be given an independent index from other modules, but
+        // IsCompilationUnitIndexExact will return false for that index. All compilation unit indices
         // are >= 2, to allow for 0 and 1 to be sentinel values.
         private CompilationUnitIndex ModuleToCompilationUnitIndex(ModuleDesc nonEcmaModule)
         {
@@ -111,12 +111,12 @@ namespace ILCompiler
 
             if (!VersionsWithModule(module))
                 return CompilationUnitIndex.OutsideOfVersionBubble;
-            
-            // Assemblies within the version bubble, but not compiled as part of this compilation unit are given 
-            // unique seperate compilation units. The practical effect of this is that the compiler can assume that
+
+            // Assemblies within the version bubble, but not compiled as part of this compilation unit are given
+            // unique separate compilation units. The practical effect of this is that the compiler can assume that
             // types which are entirely defined in one module can be laid out in an optimal fashion, but types
             // which are laid out relying on multiple modules cannot have their type layout precisely known as
-            // it is unknown if the modules are bounding into a single composite image or into individual assemblies. 
+            // it is unknown if the modules are bounding into a single composite image or into individual assemblies.
             lock (_moduleCompilationUnits)
             {
                 if (!_moduleCompilationUnits.TryGetValue(module, out CompilationUnitIndex compilationUnit))
@@ -139,7 +139,7 @@ namespace ILCompiler
             // 2. That any assembly which is compiled in the current process may be considered to be part of a single unit.
             //
             // At some point, the compiler could take new parameters to allow the compiler to know that assemblies not in the current compilation
-            // unit are to be compiled into composite images or into seperate binaries, and this helper function could return true for these other
+            // unit are to be compiled into composite images or into separate binaries, and this helper function could return true for these other
             // compilation unit shapes.
             if (compilationUnitIndex != CompilationUnitIndex.Current)
                 return false;
@@ -175,7 +175,7 @@ namespace ILCompiler
                 {
                     if (_bits == null)
                         return false;
-                        
+
                     return _bits[(int)CompilationUnitIndex.RESERVEDForHasMultipleCompilationUnits];
                 }
             }
@@ -197,7 +197,7 @@ namespace ILCompiler
 
                 if (other._bits.Length > _bits.Length)
                     _bits.Length = other._bits.Length;
-                
+
                 if (other._bits.Length < _bits.Length)
                 {
                     for (int i = 0; i < other._bits.Length; i++)
index 2b09cadceebb057120508a878719e163e0aecf9f..2e7452815e652d07eebff5250b4302fa8483407d 100644 (file)
@@ -1528,7 +1528,7 @@ namespace Internal.JitInterface
                     // Either
                     //    1. no constraint resolution at compile time (!directMethod)
                     // OR 2. no code sharing lookup in call
-                    // OR 3. we have have resolved to an instantiating stub
+                    // OR 3. we have resolved to an instantiating stub
 
                     // This check for introducing an instantiation stub comes from the logic in
                     // MethodTable::TryResolveConstraintMethodApprox at
index 6c691b466924081f9cfcde7ce91adba718757954..1896db9fae827495c81f45e04c6de173bc0abe3d 100644 (file)
@@ -1199,7 +1199,7 @@ namespace Internal.JitInterface
                     // Either
                     //    1. no constraint resolution at compile time (!directMethod)
                     // OR 2. no code sharing lookup in call
-                    // OR 3. we have have resolved to an instantiating stub
+                    // OR 3. we have resolved to an instantiating stub
 
                     methodAfterConstraintResolution = directMethod;
 
index d817bd437b44afccc587c8f2d2a54ec14409ddd4..3a6b3caf084f2269a02ea8c2ad7e6e75bba89eaa 100644 (file)
@@ -45,9 +45,9 @@ namespace Microsoft.Diagnostics.JitTrace
             return input.Replace("\\s", separator).Replace("\\\\", "\\");
         }
 
-        private static string[] SplitAndUnescape(string input, string separator, char[] seperatorCharArray)
+        private static string[] SplitAndUnescape(string input, string separator, char[] separatorCharArray)
         {
-            string[] returnValue = input.Split(seperatorCharArray);
+            string[] returnValue = input.Split(separatorCharArray);
             for (int i = 0; i < returnValue.Length; i++)
             {
                 returnValue[i] = UnescapeStr(returnValue[i], separator);
index a9bfc1db4664aeab90c7ba8a6d5290f3a0d29232..8972d34ef6227bbb17e74674159add7970def170 100644 (file)
@@ -214,7 +214,7 @@ namespace Microsoft.Diagnostics.Tools.Pgo
                 ZippedETLReader etlReader = new ZippedETLReader(inputFileName, log);
                 etlReader.EtlFileName = unzipedEtlFile;
 
-                // Figure out where to put the symbols.  
+                // Figure out where to put the symbols.
                 var inputDir = Path.GetDirectoryName(inputFileName);
                 if (inputDir.Length == 0)
                 {
@@ -1692,7 +1692,7 @@ namespace Microsoft.Diagnostics.Tools.Pgo
 
                 methodPrepareInstruction.Clear();
                 instantiationBuilder.Clear();
-                // Format is FriendlyNameOfMethod~typeIndex~ArgCount~GenericParameterCount:genericParamsSeperatedByColons~MethodName
+                // Format is FriendlyNameOfMethod~typeIndex~ArgCount~GenericParameterCount:genericParamsSeparatedByColons~MethodName
                 // This format is not sufficient to exactly describe methods, so the runtime component may compile similar methods
                 // In the various strings \ is escaped to \\ and in the outer ~ csv the ~ character is escaped to \s. In the inner csv : is escaped to \s
                 try
index fdfc77266881cd4a76cbf7d02c273ab2019c7222..ab36f2fa40b0ca937cb512537ad4b6cfe49d3677 100644 (file)
@@ -915,7 +915,7 @@ void CompileResult::applyRelocs(RelocContext* rc, unsigned char* block1, ULONG b
                         // add that to the MC, not just the CompileResult), and we don't have any control over
                         // where the JIT buffer is allocated. To handle this, if the getRelocTypeHint() was
                         // called on the target address, and the VM returned IMAGE_REL_BASED_REL32, then simply
-                        // use the low-order 32 bits of the target address. This is unique enough for for assembly
+                        // use the low-order 32 bits of the target address. This is unique enough for assembly
                         // diffs, because the delta will compare identically and won't be dependent on where
                         // SuperPMI allocated the JIT memory.
 
@@ -1227,7 +1227,7 @@ void CompileResult::dmpRecordCallSiteWithoutSignature(DWORD key, DWORDLONG metho
 
 void CompileResult::repRecordCallSite(ULONG instrOffset, CORINFO_SIG_INFO* callSig, CORINFO_METHOD_HANDLE methodHandle)
 {
-    
+
     if (RecordCallSiteWithSignature == nullptr)
     {
         // The most call site records have only `methodHandle`, so creating two separate maps give us better perfomance
@@ -1273,7 +1273,7 @@ bool CompileResult::fndRecordCallSiteSigInfo(ULONG instrOffset, CORINFO_SIG_INFO
 
 bool CompileResult::fndRecordCallSiteMethodHandle(ULONG instrOffset, CORINFO_METHOD_HANDLE* pMethodHandle)
 {
-    
+
     if (RecordCallSiteWithSignature != nullptr && RecordCallSiteWithSignature->GetIndex(instrOffset) != -1)
     {
         Agnostic_RecordCallSite value = RecordCallSiteWithSignature->Get(instrOffset);
index 61d506443e9ee76854144356b54777b20160d97b..97be9fbfc9fcace79ae4a21b6e5ebdcf6564f468 100644 (file)
@@ -7130,7 +7130,7 @@ MethodContext::Environment MethodContext::cloneEnvironment()
     return env;
 }
 
-// Check that there is a difference between the current enviroment variables maps and the prevEnv.
+// Check that there is a difference between the current environment variables maps and the prevEnv.
 bool MethodContext::WasEnvironmentChanged(const Environment& prevEnv)
 {
     if (!IsEnvironmentHeaderEqual(prevEnv))
index 3e7c8562355adda2bca0d5137a5a7a9ba0e28b84..458b3ed97c6bd6790db51b15d70230d7bf67c26d 100644 (file)
@@ -501,7 +501,7 @@ CORINFO_CLASS_HANDLE interceptor_ICJI::getTypeInstantiationArgument(CORINFO_CLAS
 // was truncated when copied to the buffer.
 //
 // Operation:
-// 
+//
 // On entry, `*pnBufLen` specifies the size of the buffer pointed to by `*ppBuf` as a count of characters.
 // There are two cases:
 // 1. If the size is zero, the function computes the length of the representation and returns that.
@@ -1933,7 +1933,7 @@ bool interceptor_ICJI::logMsg(unsigned level, const char* fmt, va_list args)
 }
 
 // do an assert.  will return true if the code should retry (DebugBreak)
-// returns false, if the assert should be igored.
+// returns false, if the assert should be ignored.
 int interceptor_ICJI::doAssert(const char* szFile, int iLine, const char* szExpr)
 {
     mc->cr->AddCall("doAssert");
index ebfb397b3b87ecff7d0ee9ad9a13591d15829c4f..a57b14cbee9b0e5b586401133e96a3f305161ac2 100644 (file)
@@ -433,7 +433,7 @@ CORINFO_CLASS_HANDLE MyICJI::getTypeInstantiationArgument(CORINFO_CLASS_HANDLE c
 // was truncated when copied to the buffer.
 //
 // Operation:
-// 
+//
 // On entry, `*pnBufLen` specifies the size of the buffer pointed to by `*ppBuf` as a count of characters.
 // There are two cases:
 // 1. If the size is zero, the function computes the length of the representation and returns that.
@@ -1782,7 +1782,7 @@ bool MyICJI::logMsg(unsigned level, const char* fmt, va_list args)
 }
 
 // do an assert.  will return true if the code should retry (DebugBreak)
-// returns false, if the assert should be igored.
+// returns false, if the assert should be ignored.
 int MyICJI::doAssert(const char* szFile, int iLine, const char* szExpr)
 {
     jitInstance->mc->cr->AddCall("doAssert");
index bdc41b352f6de89b40d8f65247428d4a5dc27bf9..da481413818371de53555b8bf1f0d1d820cc6095 100644 (file)
@@ -588,7 +588,7 @@ bool JitInstance::callJitStartup(ICorJitHost* jithost)
     return param.result;
 }
 
-// Reset JitConfig, that stores Enviroment variables.
+// Reset JitConfig, that stores Environment variables.
 bool JitInstance::resetConfig(MethodContext* firstContext)
 {
     if (pnjitStartup == nullptr)
index aaa026ff693dbf124f0ed5618bfb83eebbfed2c4..5ed5f155c2d235f49fe3baaa6c6a7cd63dba060c 100644 (file)
@@ -355,13 +355,13 @@ int __cdecl main(int argc, char* argv[])
         {
             if (!jit->resetConfig(mc))
             {
-                LogError("JIT can't reset enviroment");
+                LogError("JIT can't reset environment");
             }
             if (o.nameOfJit2 != nullptr)
             {
                 if (!jit2->resetConfig(mc))
                 {
-                    LogError("JIT2 can't reset enviroment");
+                    LogError("JIT2 can't reset environment");
                 }
             }
         }
index 7d2fceb3005e1a6de7a69af99ebac9694c6f4ba7..15ee748575e052dca0ec3c889c01f2f3bb4b5c98 100644 (file)
@@ -39,7 +39,7 @@ void DisableThrowCheck()
 }
 
 #ifdef HAS_ADDRESS_SANITIZER
-// use the functionality from address santizier (which does not throw exceptions)
+// use the functionality from address sanitizer (which does not throw exceptions)
 #else
 
 #define CLRThrowsExceptionWorker() RealCLRThrowsExceptionWorker(__FUNCTION__, __FILE__, __LINE__)
@@ -216,7 +216,7 @@ ClrDebugState *CLRInitDebugState()
 const NoThrow nothrow = { 0 };
 
 #if defined(HAS_ADDRESS_SANITIZER) || defined(DACCESS_COMPILE)
-// use standard heap functions for address santizier
+// use standard heap functions for address sanitizer
 #else
 
 #ifdef _DEBUG
@@ -350,7 +350,7 @@ operator new[](size_t n)
 void * __cdecl operator new(size_t n, const NoThrow&) NOEXCEPT
 {
 #if defined(HAS_ADDRESS_SANITIZER) || defined(DACCESS_COMPILE)
-    // use standard heap functions for address santizier (which doesn't provide for NoThrow)
+    // use standard heap functions for address sanitizer (which doesn't provide for NoThrow)
        void * result = operator new(n);
 #else
     STATIC_CONTRACT_NOTHROW;
@@ -369,7 +369,7 @@ void * __cdecl operator new(size_t n, const NoThrow&) NOEXCEPT
 void * __cdecl operator new[](size_t n, const NoThrow&) NOEXCEPT
 {
 #if defined(HAS_ADDRESS_SANITIZER) || defined(DACCESS_COMPILE)
-    // use standard heap functions for address santizier (which doesn't provide for NoThrow)
+    // use standard heap functions for address sanitizer (which doesn't provide for NoThrow)
        void * result = operator new[](n);
 #else
     STATIC_CONTRACT_NOTHROW;
@@ -386,7 +386,7 @@ void * __cdecl operator new[](size_t n, const NoThrow&) NOEXCEPT
 }
 
 #if defined(HAS_ADDRESS_SANITIZER) || defined(DACCESS_COMPILE)
-// use standard heap functions for address santizier
+// use standard heap functions for address sanitizer
 #else
 void __cdecl
 operator delete(void *p) NOEXCEPT
index 7e72b1bc88de49c9271a30b3bd2fe33143a9faa2..209db00f9e40bfdc1a6f3b7c2fada7717cc8dc15 100644 (file)
@@ -2160,7 +2160,7 @@ CHECK PEDecoder::CheckILMethod(RVA rva)
     CONTRACT_CHECK_END;
 
     //
-    // Incrementaly validate that the entire IL method body is within the bounds of the image
+    // Incrementally validate that the entire IL method body is within the bounds of the image
     //
 
     // We need to have at least the tiny header
@@ -2207,7 +2207,7 @@ CHECK PEDecoder::CheckILMethod(RVA rva)
     // Optional sections following the code
     //
 
-    for (;;)
+    while (true)
     {
         CHECK(CheckRva(rva, UINT32(pSect - pIL) + sizeof(IMAGE_COR_ILMETHOD_SECT_SMALL)));
 
@@ -2294,7 +2294,7 @@ SIZE_T PEDecoder::ComputeILMethodSize(TADDR pIL)
     // DACized copy of code:COR_ILMETHOD_FAT::GetSect
     TADDR pSect = AlignUp(pIL + codeEnd, 4);
 
-    for (;;)
+    while (true)
     {
         PTR_COR_ILMETHOD_SECT_SMALL pSectSmall = PTR_COR_ILMETHOD_SECT_SMALL(pSect);
 
index d562627856295afa5dd599c81117587090a04a3b..39d9915c711d35afa86087cf246032d11512ae4c 100644 (file)
@@ -58,7 +58,7 @@ EXTERN_C void FastCallFinalizeWorker(Object *obj, PCODE funcPtr);
 #define HAS_THISPTR_RETBUF_PRECODE              1
 
 #define CODE_SIZE_ALIGN                         16   // must alloc code blocks on 8-byte boundaries; for perf reasons we use 16 byte boundaries
-#define CACHE_LINE_SIZE                         64   // Current AMD64 processors have 64-byte cache lines as per AMD64 optmization manual
+#define CACHE_LINE_SIZE                         64   // Current AMD64 processors have 64-byte cache lines as per AMD64 optimization manual
 #define LOG2SLOT                                LOG2_PTRSIZE
 
 
index ca978482dc3c29ea8c3d70aca4121ca82bd104a9..17509c3ac1dc51cb0644e2d9da71a394d997642a 100644 (file)
@@ -6,8 +6,6 @@
  */
 //
 
-//
-
 #include "common.h"
 
 #include "frames.h"
@@ -27,8 +25,6 @@
 #include "exceptionhandling.h"
 #include "virtualcallstub.h"
 
-
-
 #if !defined(DACCESS_COMPILE)
 
 VOID ResetCurrentContext()
@@ -199,7 +195,7 @@ RtlVirtualUnwind_Worker (
     // that the debugger is attched when we get here.
     _ASSERTE(CORDebuggerAttached());
 
-    LOG((LF_CORDB, LL_EVERYTHING, "RVU_CBSW: in RtlVitualUnwind_ClrDbgSafeWorker, ControlPc=0x%p\n", ControlPc));
+    LOG((LF_CORDB, LL_EVERYTHING, "RVU_CBSW: in RtlVirtualUnwind_ClrDbgSafeWorker, ControlPc=0x%p\n", ControlPc));
 
     BOOL     InEpilogue = FALSE;
     BOOL     HasManagedBreakpoint = FALSE;
@@ -630,7 +626,7 @@ AdjustContextForVirtualStub(
         return FALSE;
     }
 
-    PCODE callsite = *dac_cast<PTR_PCODE>(GetSP(pContext)); 
+    PCODE callsite = *dac_cast<PTR_PCODE>(GetSP(pContext));
     if (pExceptionRecord != NULL)
     {
         pExceptionRecord->ExceptionAddress = (PVOID)callsite;
@@ -642,4 +638,3 @@ AdjustContextForVirtualStub(
 }
 
 #endif
-
index f83fa90ee60728a89426eb18a74781beac0e948f..c17659825cfda2e26b1b2b0f0ab9ff4bdecd956e 100644 (file)
@@ -2478,10 +2478,6 @@ void FileLoadLock::HolderLeave(FileLoadLock *pThis)
 }
 
 
-
-
-
-
 //
 // Assembly loading:
 //
@@ -2499,7 +2495,7 @@ void FileLoadLock::HolderLeave(FileLoadLock *pThis)
 // this constraint is expected and can be dealt with.
 //
 // Note that there is one case where this still doesn't handle recursion, and that is the
-// security subsytem. The security system runs managed code, and thus must typically fully
+// security subsystem. The security system runs managed code, and thus must typically fully
 // initialize assemblies of permission sets it is trying to use. (And of course, these may be used
 // while those assemblies are initializing.)  This is dealt with in the historical manner - namely
 // the security system passes in a special flag which says that it will deal with null return values
index be804c70ce69f1a85b005ea46cce843179a3281c..14ad9e680b122fdb5867c29aefe21a548ee4cf00 100644 (file)
@@ -954,7 +954,7 @@ BOOL AssemblySpecBindingCache::StoreAssembly(AssemblySpec *pSpec, DomainAssembly
             }
             else
             {
-                // OK if we have have a matching PEAssembly
+                // OK if we have a matching PEAssembly
                 if (entry->GetFile() != NULL
                     && pAssembly->GetPEAssembly()->Equals(entry->GetFile()))
                 {
index 820e69d8cd9cf7596d3049a4b5147a4cf7fad01a..bfaaab3b9449b008ae162075a60f4631008a8fc6 100644 (file)
@@ -561,7 +561,7 @@ private:
 public:
     //#LoaderModule
     // LoaderModule determines in which module an item gets placed.
-    // For everything except paramaterized types and methods the choice is easy.
+    // For everything except parameterized types and methods the choice is easy.
     //
     // If NGEN'ing we may choose to place the item into the current module (which is different from runtime behavior).
     //
index 9119434c0886ceb7accadc9a20ff55eefeb0d2ac..c3341522d4972c20651d046502b242b7fc0078c5 100644 (file)
@@ -1,8 +1,8 @@
 // Licensed to the .NET Foundation under one or more agreements.
 // The .NET Foundation licenses this file to you under the MIT license.
-// codeman.cpp - a managment class for handling multiple code managers
-//
 
+//
+// codeman.cpp - a managment class for handling multiple code managers
 //
 
 #include "common.h"
@@ -929,7 +929,7 @@ PTR_RUNTIME_FUNCTION FindRootEntry(PTR_RUNTIME_FUNCTION pFunctionEntry, TADDR ba
         // Walk backwards in the RUNTIME_FUNCTION array until we find a non-fragment.
         // We're guaranteed to find one, because we require that a fragment live in a function or funclet
         // that has a prolog, which will have non-fragment .xdata.
-        for (;;)
+        while (true)
         {
             if (!IsFunctionFragment(baseAddress, pRootEntry))
             {
@@ -2393,7 +2393,7 @@ VOID EEJitManager::EnsureJumpStubReserve(BYTE * pImageBase, SIZE_T imageSize, SI
     {
         NewHolder<EmergencyJumpStubReserve> pNewReserve(new EmergencyJumpStubReserve());
 
-        for (;;)
+        while (true)
         {
             BYTE * loAddrCurrent = loAddr;
             BYTE * hiAddrCurrent = hiAddr;
@@ -5865,7 +5865,7 @@ PTR_EXCEPTION_CLAUSE_TOKEN ReadyToRunJitManager::GetNextEHClause(EH_CLAUSE_ENUME
 
     CORCOMPILE_EXCEPTION_CLAUSE* pClause = &(dac_cast<PTR_CORCOMPILE_EXCEPTION_CLAUSE>(pEnumState->pExceptionClauseArray)[iCurrentPos]);
 
-    // copy to the input parmeter, this is a nice abstraction for the future
+    // copy to the input parameter, this is a nice abstraction for the future
     // if we want to compress the Clause encoding, we can do without affecting the call sites
     pEHClauseOut->TryStartPC = pClause->TryStartPC;
     pEHClauseOut->TryEndPC = pClause->TryEndPC;
index c9bc65c33fd287fcae4040540789ae4abd8a1dc4..c7b4d56bd7930707d97c98e6c9250e8e48cbe70f 100644 (file)
@@ -21,7 +21,7 @@ typedef void (*FAVORCALLBACK)(void *);
 
 //
 // The purpose of this object is to serve as an entry point to the
-// debugger, which used to reside in a seperate DLL.
+// debugger, which used to reside in a separate DLL.
 //
 
 class DebugInterface
index 47e07ff1e8e9c0baca8c503fb40ec6966d22c1f6..71802141bb9dd68d22bf82759e130956617ea3b6 100644 (file)
@@ -813,7 +813,7 @@ bool        VarIsInReg(ICorDebugInfo::VarLoc varLoc)
  *  Last chance for the runtime support to do fixups in the context
  *  before execution continues inside an EnC updated function.
  *  It also adjusts ESP and munges on the stack. So the caller has to make
- *  sure that that stack region isnt needed (by doing a localloc)
+ *  sure that this stack region is not needed (by doing a localloc).
  *  Also, if this returns EnC_FAIL, we should not have munged the
  *  context ie. transcated commit
  *  The plan of attack is:
@@ -4604,7 +4604,7 @@ bool EECodeManager::EnumGcRefs( PREGDISPLAY     pContext,
      * in order to adjust ESP.
      *
      * Note that we report "this" for all methods, even if
-     * noncontinuable, because because of the off chance they may be
+     * noncontinuable, because of the off chance they may be
      * synchronized and we have to release the monitor on unwind. This
      * could conceivably be optimized, but it turns out to be more
      * expensive to check whether we're synchronized (which involves
index 07586ac3995cfe36c80fe5e23545e7fefa1a9a57..8911f976bf47b6817cf8607aae0f153c5bd03282 100644 (file)
@@ -321,7 +321,7 @@ HRESULT EditAndContinueModule::UpdateMethod(MethodDesc *pMethod)
 
     // Reset any flags relevant to the old code
     //
-    // Note that this only works since we've very carefullly made sure that _all_ references
+    // Note that this only works since we've very carefully made sure that _all_ references
     // to the Method's code must be to the call/jmp blob immediately in front of the
     // MethodDesc itself.  See MethodDesc::IsEnCMethod()
     //
index 546a7e69b423571fbe6f98de3dcb7aa7f67e1d94..204a6cc5a1dbefe2d5b065e769ef5dc3bae9772d 100644 (file)
@@ -1597,7 +1597,7 @@ bool ExceptionTracker::UpdateScannedStackRange(StackFrame sf, bool fIsFirstPass)
     CONTRACTL
     {
         // Since this function will modify the scanned stack range, which is also accessed during the GC stackwalk,
-        // we invoke it in COOP mode so that that access to the range is synchronized.
+        // we invoke it in COOP mode so that the access to this range is synchronized.
         MODE_COOPERATIVE;
         GC_TRIGGERS;
         THROWS;
@@ -2083,7 +2083,7 @@ bool ExceptionTracker::HandleNestedExceptionEscape(StackFrame sf, bool fIsFirstP
     CONTRACTL
     {
         // Since this function can modify the scanned stack range, which is also accessed during the GC stackwalk,
-        // we invoke it in COOP mode so that that access to the range is synchronized.
+        // we invoke it in COOP mode so that the access to this range is synchronized.
         MODE_COOPERATIVE;
         GC_NOTRIGGER;
         NOTHROW;
index 4967da497b5097a80c6e576ff0daac466c16b613..41200e42f76494fd066ad836a76e51167238fbb9 100644 (file)
@@ -182,7 +182,7 @@ VOID DECLSPEC_NORETURN RealCOMPlusThrowOM();
 
 
 //==========================================================================
-// Helpful macros to declare exception handlers, their implementaiton,
+// Helpful macros to declare exception handlers, their implementation,
 // and to call them.
 //==========================================================================
 
index d1939273ada7b86a73c8145da3199f5e002686c6..525ca50a28c2b8562aaf4cf967c9fa7518b37db0 100644 (file)
@@ -3166,7 +3166,7 @@ public:
     }
 };
 
-/* Buid the source files table for DWARF source line info */
+/* Build the source files table for DWARF source line info */
 bool NotifyGdb::BuildFileTable(MemBuf& buf, SymbolsInfo* lines, unsigned nlines, const char * &cuPath)
 {
     FileTableBuilder fileTable(nlines);
index 524b0ebd9ee7d8c5a0f30eca529adf2febc0adce..08282199af41e94db5c6c930755890aa25e3fdcb 100644 (file)
@@ -1767,7 +1767,7 @@ NOINLINE LPVOID COMPlusEndCatchWorker(Thread * pThread)
     EEToProfilerExceptionInterfaceWrapper::ExceptionCatcherLeave();
 
     // no need to set pExInfo->m_ClauseType = (DWORD)COR_PRF_CLAUSE_NONE now that the
-    // notification is done because because the ExInfo record is about to be popped off anyway
+    // notification is done because the ExInfo record is about to be popped off anyway
 
     LOG((LF_EH, LL_INFO1000, "COMPlusPEndCatch:pThread:0x%x\n",pThread));
 
@@ -1805,7 +1805,7 @@ NOINLINE LPVOID COMPlusEndCatchWorker(Thread * pThread)
     // will not be available. Thus, we should reset the severity only if its not such a thread.
     //
     // This behaviour (of debugger doing SetIP) is not allowed on 64bit since the catch clauses are implemented
-    // as a seperate funclet and it's just not allowed to set the IP across EH scopes, such as from inside a catch
+    // as a separate funclet and it's just not allowed to set the IP across EH scopes, such as from inside a catch
     // clause to outside of the catch clause.
     bool fIsDebuggerHelperThread = (g_pDebugInterface == NULL) ? false : g_pDebugInterface->ThisIsHelperThread();
 
index 88d4aa30bd55d99740c3bab64fd14c428ceb1ae4..14046a7f16d0f1a0d59faacb8dd0c52112de22e2 100644 (file)
@@ -413,7 +413,7 @@ namespace
                 // Separate the wrapper from the tracker runtime prior to
                 // passing them onto the caller. This call is okay to make
                 // even if the instance isn't from the tracker runtime.
-                // We switch to Preemptive mode since seperating a wrapper
+                // We switch to Preemptive mode since separating a wrapper
                 // requires us to call out to non-runtime code which could
                 // call back into the runtime and/or trigger a GC.
                 GCX_PREEMP();
index 04014ce17a29119645466f968cbbf3d9ff29d0e8..2c2d3b9a3048ebf14e691b02826359886d99a75e 100644 (file)
@@ -1,8 +1,6 @@
 // Licensed to the .NET Foundation under one or more agreements.
 // The .NET Foundation licenses this file to you under the MIT license.
 
-
-
 #include "common.h"
 #include "jitinterface.h"
 #include "codeman.h"
@@ -3092,7 +3090,7 @@ CORINFO_GENERIC_HANDLE JIT_GenericHandleWorker(MethodDesc * pMD, MethodTable * p
         }
 
         pDeclaringMT = pMT;
-        for (;;)
+        while (true)
         {
             MethodTable * pParentMT = pDeclaringMT->GetParentMethodTable();
             if (pParentMT->GetNumDicts() <= dictionaryIndex)
@@ -5811,7 +5809,7 @@ void WriteJitHelperCountToSTRESSLOG()
             switch (jitHelperLoggingLevel)
             {
             case 1:
-                // This will print a comma seperated list:
+                // This will print a comma separated list:
                 // CORINFO_XXX_HELPER, 10
                 // CORINFO_YYYY_HELPER, 11
                 STRESS_LOG2(logFacility, logLevel, "%s, %d\n", name, count);
index 5e8244137075d89c5cce70b8be5b1613415fd5ee..cb4f697d8ba998d5d7592d1574602ddab60913c0 100644 (file)
@@ -2741,7 +2741,7 @@ void CEEInfo::ScanToken(Module * pModule, CORINFO_RESOLVED_TOKEN * pResolvedToke
     //
     // Scan chain of parent types
     //
-    for (;;)
+    while (true)
     {
         Module * pDefModule = pMT->GetModule();
         if (pDefModule->IsSystem())
@@ -3569,7 +3569,7 @@ uint32_t CEEInfo::getClassAttribs (CORINFO_CLASS_HANDLE clsHnd)
         MODE_PREEMPTIVE;
     } CONTRACTL_END;
 
-    // <REVISIT_TODO>@todo FIX need to really fetch the class atributes.  at present
+    // <REVISIT_TODO>@todo FIX need to really fetch the class attributes.  at present
     // we don't need to because the JIT only cares in the case of COM classes</REVISIT_TODO>
     uint32_t ret = 0;
 
@@ -4375,9 +4375,8 @@ CORINFO_CLASS_HANDLE CEEInfo::mergeClasses(
             _ASSERTE(merged == reflexive);
         }
 
-        //If both sides are arrays, then the result is either an array or g_pArrayClass.  The above is
-        //actually true about the element type for references types, but I think that that is a little
-        //excessive for sanity.
+        // If both sides are arrays, then the result is either an array or g_pArrayClass.  The above is
+        // actually true for reference types as well, but it is a little excessive to deal with.
         if (hnd1.IsArray() && hnd2.IsArray())
         {
             _ASSERTE((merged.IsArray() && reflexive.IsArray())
@@ -4913,7 +4912,7 @@ void CEEInfo::getCallInfo(
             // Either
             //    1. no constraint resolution at compile time (!directMethod)
             // OR 2. no code sharing lookup in call
-            // OR 3. we have have resolved to an instantiating stub
+            // OR 3. we have resolved to an instantiating stub
 
             pMDAfterConstraintResolution = directMethod;
             _ASSERTE(!pMDAfterConstraintResolution->IsInterface());
@@ -12815,7 +12814,7 @@ PCODE UnsafeJitFunction(PrepareCodeConfig* config,
 
 #endif // defined(TARGET_AMD64) || defined(TARGET_ARM64)
 
-    for (;;)
+    while (true)
     {
         CEEJitInfo jitInfo(ftn, ILHeader, jitMgr, !flags.IsSet(CORJIT_FLAGS::CORJIT_FLAG_NO_INLINING));
 
index 4c8e7dc7e2a925c118dd334c46cc2f36765c03e6..57e4bd342e4e7e2668bf24f40fa028aef6876cc9 100644 (file)
@@ -1440,7 +1440,7 @@ MemberLoader::FindConstructor(MethodTable * pMT, PCCOR_SIGNATURE pSignature,DWOR
             continue;
         }
 
-        // Find only the constructor for for this object
+        // Find only the constructor for this object
         _ASSERTE(pCurMethod->GetMethodTable() == pMT->GetCanonicalMethodTable());
 
         PCCOR_SIGNATURE pCurMethodSig;
index 0e62b4a67d66abc7819212436fa371ac859b3ac3..bc58090dd587d7a8582f1d4f9d97a4a84a8dc1d6 100644 (file)
@@ -1122,7 +1122,7 @@ public:
 public:
 
     // True iff it is possible to change the code this method will run using the CodeVersionManager. Note: EnC currently returns
-    // false here because it uses its own seperate scheme to manage versionability. We will likely want to converge them at some
+    // false here because it uses its own separate scheme to manage versionability. We will likely want to converge them at some
     // point.
     bool IsVersionable()
     {
@@ -2167,7 +2167,7 @@ class MethodDescChunk
 
     enum {
         enum_flag_TokenRangeMask                           = 0x07FF, // This must equal METHOD_TOKEN_RANGE_MASK calculated higher in this file
-                                                                     // These are seperate to allow the flags space available and used to be obvious here
+                                                                     // These are separate to allow the flags space available and used to be obvious here
                                                                      // and for the logic that splits the token to be algorithmically generated based on the
                                                                      // #define
         enum_flag_HasCompactEntrypoints                    = 0x4000, // Compact temporary entry points
index 47563cbe66ef4595776b2c02795ce8b38d660f88..78e26991bcf4a0c1e47aa46bfb5ee3c1d67f9cb3 100644 (file)
@@ -8617,7 +8617,7 @@ MethodTableBuilder::HandleExplicitLayout(
         // we will put a catchall "break" here which will cause the typeload to abort (albeit with a probably misleading
         // error message.)
         break;
-    } // for(;;)
+    }
 
     // We only break out of the loop above if we detected an error.
     if (i < bmtMetaData->cFields || !explicitClassTrust.IsLegal())
@@ -9296,9 +9296,8 @@ MethodTableBuilder::LoadExactInterfaceMap(MethodTable *pMT)
     {
         //#LoadExactInterfaceMap_Algorithm2
         // Exact interface instantiation loading TECHNIQUE 2 - The exact instantiation has caused some duplicates to
-        // appear in the interface map!  This may not be an error: if the duplicates
-        // were ones that arose because because of inheritance from
-        // a parent type then we accept that.  For example
+        // appear in the interface map!  This may not be an error: if the duplicates were ones that arose because of
+        // inheritance from a parent type then we accept that.  For example
         //     class C<T> : I<T>
         //     class D<T> : C<T>, I<string>
         // is acceptable even when loading D<string>.  Note that in such a case
@@ -9509,7 +9508,7 @@ MethodTableBuilder::LoadExactInterfaceMap(MethodTable *pMT)
 
                     // Compare original and duplicate interface entries in the dispatch map if they contain
                     // different implementation for the same interface method
-                    for (;;)
+                    while (true)
                     {
                         if (!originalIt.IsValid() || !duplicateIt.IsValid())
                         {   // We reached end of one dispatch map iterator
index 18a0a141a8228b271df1b70afad7ce32fdd10b2c..15d99449068cb4e654845d976fd9612bfce2fe3f 100644 (file)
@@ -5,7 +5,7 @@
 //
 
 // ===========================================================================
-// This file contains the implementation for MultiCore JIT (player in a seperate file MultiCoreJITPlayer.cpp)
+// This file contains the implementation for MultiCore JIT (player in a separate file MultiCoreJITPlayer.cpp)
 // ===========================================================================
 //
 
@@ -993,7 +993,7 @@ HRESULT MulticoreJitRecorder::StartProfile(const WCHAR * pRoot, const WCHAR * pF
     {
         m_fullFileName = pRoot;
 
-        // Append seperator if root does not end with one
+        // Append separator if root does not end with one
         unsigned len = m_fullFileName.GetCount();
 
         if ((len != 0) && (m_fullFileName[len - 1] != '\\'))
index fb03b8b7011257807cd035ab283cfcb28bfc55d3..ae28bee51027d1c414d35afc8b961b712bb88c91 100644 (file)
@@ -6,8 +6,6 @@
 // Definitions of a Com+ Object
 //
 
-
-
 #include "common.h"
 
 #include "vars.hpp"
@@ -877,7 +875,8 @@ BOOL StringObject::CaseInsensitiveCompHelper(_In_reads_(aLength) WCHAR *strAChar
     unsigned charA;
     unsigned charB;
 
-    for(;;) {
+    while (true)
+    {
         charA = *strAChars;
         charB = (unsigned) *strBChars;
 
@@ -1163,7 +1162,7 @@ int OBJECTREF::operator==(const OBJECTREF &objref) const
     {
         // REVISIT_TODO: Weakening the contract system a little bit here. We should really
         // add a special NULLOBJECTREF which can be used for these situations and have
-        // a seperate code path for that with the correct contract protections.
+        // a separate code path for that with the correct contract protections.
         STATIC_CONTRACT_VIOLATION(ModeViolation);
 
         VALIDATEOBJECT(objref.m_asObj);
@@ -1201,7 +1200,7 @@ int OBJECTREF::operator!=(const OBJECTREF &objref) const
     {
         // REVISIT_TODO: Weakening the contract system a little bit here. We should really
         // add a special NULLOBJECTREF which can be used for these situations and have
-        // a seperate code path for that with the correct contract protections.
+        // a separate code path for that with the correct contract protections.
         STATIC_CONTRACT_VIOLATION(ModeViolation);
 
         VALIDATEOBJECT(objref.m_asObj);
index 7d5e4b121f13607cf9d4b63a87d507b02fb32bba..f1b96cf0a9cdd781e8c3b33948c399620edd4f0d 100644 (file)
@@ -1097,7 +1097,7 @@ public:
 //   m_object - a field that has a reference type in it. Used only for RuntimeMethodInfoStub to keep the real type alive.
 // This structure matches the structure up to the m_pMD for several different managed types.
 // (RuntimeConstructorInfo, RuntimeMethodInfo, and RuntimeMethodInfoStub). These types are unrelated in the type
-// system except that they all implement a particular interface. It is important that that interface is not attached to any
+// system except that they all implement a particular interface. It is important that such interface is not attached to any
 // type that does not sufficiently match this data structure.
 class ReflectMethodObject : public BaseObjectWithCachedData
 {
@@ -1141,7 +1141,7 @@ public:
 //   m_object - a field that has a reference type in it. Used only for RuntimeFieldInfoStub to keep the real type alive.
 // This structure matches the structure up to the m_pFD for several different managed types.
 // (RtFieldInfo and RuntimeFieldInfoStub). These types are unrelated in the type
-// system except that they all implement a particular interface. It is important that that interface is not attached to any
+// system except that they all implement a particular interface. It is important that such interface is not attached to any
 // type that does not sufficiently match this data structure.
 class ReflectFieldObject : public BaseObjectWithCachedData
 {
index f9476846130ec48de69d39a1c97531dff2410c89..b9bb8ff068b1f0116009aa1ab84c4520d53e57dc 100644 (file)
@@ -694,7 +694,7 @@ void PEImage::EnumMemoryRegions(CLRDataEnumMemoryFlags flags)
     // This just gets the image headers into the dump.
     // This is used, for example, for ngen images to ensure we have the debug directory so we
     // can find the managed PDBs.
-    // No lock here as the processs should be suspended.
+    // No lock here as the process should be suspended.
     if (m_pLayouts[IMAGE_FLAT].IsValid() && m_pLayouts[IMAGE_FLAT]!=NULL)
         m_pLayouts[IMAGE_FLAT]->EnumMemoryRegions(flags);
     if (m_pLayouts[IMAGE_LOADED].IsValid() &&  m_pLayouts[IMAGE_LOADED]!=NULL)
index 3bc301ec9386a0b8899fcc7b9aafccae48e66f33..c3fe015f053443ec98520991c25083f337c92901 100644 (file)
@@ -255,7 +255,7 @@ PCODE MethodDesc::DoBackpatch(MethodTable * pMT, MethodTable *pDispatchingMT, BO
 // <TODO> FIX IN BETA 2
 //
 // g_pNotificationTable is only modified by the DAC and therefore the
-// optmizer can assume that it will always be its default value and has
+// optimizer can assume that it will always be its default value and has
 // been seen to (on IA64 free builds) eliminate the code in DACNotifyCompilationFinished
 // such that DAC notifications are no longer sent.
 //
index 5162ac38a3bb4cab20371f0e21b6a90be5715d72..4c827783d51b4ac057b56c1d9039fc446d7e415c 100644 (file)
@@ -4156,7 +4156,7 @@ HRESULT ProfToEEInterfaceImpl::GetModuleInfo2(ModuleID     moduleId,
         if (pAssemblyId != NULL)
         {
             // Lie and say the assembly isn't available until we are loaded (even though it is.)
-            // This is for backward compatibilty - we may want to change it
+            // This is for backward compatibility - we may want to change it
             if (pModule->IsProfilerNotified())
             {
                 Assembly *pAssembly = pModule->GetAssembly();
index 5e13028282202c33f624ea1e87a1ac686fe06e12..84c0c5bdcd0292cf33346302a13848fc1727e68a 100644 (file)
@@ -1476,7 +1476,7 @@ void RCW::Initialize(IUnknown* pUnk, DWORD dwSyncBlockIndex, MethodTable *pClass
     // if we're currently in a SendMessage.
     // Also, clients can opt out of this. The option is a per-thread flag which they can
     // set by calling DisableComEagerCleanup on the appropriate thread. Why would they
-    // want to opt out? Because pumping can lead to re-entrancy in in unexpected places.
+    // want to opt out? Because pumping can lead to re-entrancy in unexpected places.
     // If a client decides to opt out, they are required to cleanup RCWs themselves by
     // calling Marshal.CleanupUnusedObjectsInCurrentContext periodically. The best place
     // to make that call is within their own message pump.
index 400d90405e7e5201d182ffc1f30e7fb5676293f6..751870479d9e38aa9baddc04153a6e565a3ac427 100644 (file)
@@ -360,7 +360,7 @@ ULONG __stdcall Unknown_AddRef(IUnknown* pUnk)
     }
     CONTRACTL_END;
 
-    // Allow addrefs to go through, coz we are allowing
+    // Allow addrefs to go through, because we are allowing
     // all releases to go through, otherwise we would
     // have a mismatch of ref-counts
     return Unknown_AddRef_Internal(pUnk);
@@ -406,7 +406,7 @@ ULONG __stdcall Unknown_AddRefInner(IUnknown* pUnk)
     }
     CONTRACTL_END;
 
-    // Allow addrefs to go through, coz we are allowing
+    // Allow addrefs to go through, because we are allowing
     // all releases to go through, otherwise we would
     // have a mismatch of ref-counts
     return Unknown_AddRefInner_Internal(pUnk);
@@ -452,7 +452,7 @@ ULONG __stdcall Unknown_AddRefSpecial(IUnknown* pUnk)
     }
     CONTRACTL_END;
 
-    // Allow addrefs to go through, coz we are allowing
+    // Allow addrefs to go through, because we are allowing
     // all releases to go through, otherwise we would
     // have a mismatch of ref-counts
     return Unknown_AddRefSpecial_Internal(pUnk);
index 17e0d5fa3e031a487d5cafe41f0fb276d78fefa2..6880614f917fb370fef2a2623dd9babe8ec09122 100644 (file)
@@ -96,7 +96,7 @@ StringLiteralMap::~StringLiteralMap()
 
     // We do need to take the globalstringliteralmap lock because we are manipulating
     // StringLiteralEntry objects that belong to it.
-    // Note that we remember the current entry and relaese it only when the
+    // Note that we remember the current entry and release it only when the
     // enumerator has advanced to the next entry so that we don't endup deleteing the
     // current entry itself and killing the enumerator.
 
index 7e20812a57a47fbeb679087ded5209fefe0ef3e5..b5cf0421e016be3b7715c42ce9e91b188fa5d7f0 100644 (file)
@@ -887,13 +887,13 @@ class Stub
 //
 //
 //   UINT RRT.GetSizeOfData(refsize, variationCode)
-//     Returns the total size of the seperate data area (if any) that the
+//     Returns the total size of the separate data area (if any) that the
 //     instruction needs in bytes for a given refsize. For this example
 //     on the SH3
 //          if (refsize==k32) return 4; else return 0;
 //
 //   The default implem of this returns 0, so CPUs that don't have need
-//   for a seperate constant area don't have to worry about it.
+//   for a separate constant area don't have to worry about it.
 //
 //
 //   BOOL CanReach(refsize, variationcode, fExternal, offset)
index a7acad063a1b324d78680ffdaa9c57bc371c107e..78b4b692771cf75523ebff85c65b8a85c441ddbd 100644 (file)
@@ -1,13 +1,10 @@
 // Licensed to the .NET Foundation under one or more agreements.
 // The .NET Foundation licenses this file to you under the MIT license.
-//
-// THREADS.CPP
-//
 
 //
+// THREADS.CPP
 //
 
-
 #include "common.h"
 
 #include "frames.h"
@@ -6157,7 +6154,7 @@ size_t getStackHash(size_t* stackTrace, size_t* stackTop, size_t* stackStop, siz
 
     UINT_PTR uPrevControlPc = uControlPc;
 
-    for (;;)
+    while (true)
     {
         RtlLookupFunctionEntry(uControlPc,
                                ARM_ONLY((DWORD*))(&uImageBase),
@@ -6274,7 +6271,7 @@ BOOL Thread::UniqueStack(void* stackStart)
 #ifdef TARGET_X86
     // Find the stop point (most jitted function)
     Frame* pFrame = pThread->GetFrame();
-    for(;;)
+    while (true)
     {
         // skip GC frames
         if (pFrame == 0 || pFrame == (Frame*) -1)
@@ -8515,7 +8512,7 @@ Thread::EnumMemoryRegionsWorker(CLRDataEnumMemoryFlags flags)
 
         if (!IsAddressInStack(currentSP))
         {
-            _ASSERTE(!"Target stack has been corrupted, SP must in in the stack range.");
+            _ASSERTE(!"Target stack has been corrupted, SP must be in the stack range.");
             break;
         }
 
index d5db56a460dfec0d3943ac4a9dfe478d4a2c0a4a..97232493d6f62061a8308eb4fa0f47b1b6762d66 100644 (file)
@@ -3786,7 +3786,7 @@ public:
         }
 
         // Clears the table.  Useful to do when crossing the managed-code - EE boundary
-        // as you ususally only care about OBJECTREFS that have been created after that
+        // as you usually only care about OBJECTREFS that have been created after that
         static void STDCALL ObjectRefFlush(Thread* thread);
 
 
index 8f74be8866123d8a5d79c6bb4a07c7055a18aed3..a9a1b46daad51a85b0160edcdd7f129131fae782 100644 (file)
@@ -1243,7 +1243,7 @@ Thread::UserAbort(EEPolicy::ThreadAbortTypes abortType, DWORD timeout)
     DWORD dwSwitchCount = 0;
 #endif // !defined(DISABLE_THREADSUSPEND)
 
-    for (;;)
+    while (true)
     {
         // Lock the thread store
         LOG((LF_SYNC, INFO3, "UserAbort obtain lock\n"));
@@ -1617,7 +1617,7 @@ LPrepareRetry:
         }
 #endif
 
-    } // for(;;)
+    } // while (true)
 
     if ((GetAbortEndTime() != MAXULONGLONG)  && IsAbortRequested())
     {
@@ -2121,7 +2121,7 @@ void Thread::RareDisablePreemptiveGC()
 
         DWORD dwSwitchCount = 0;
 
-        for (;;)
+        while (true)
         {
             EnablePreemptiveGC();
 
@@ -3728,7 +3728,7 @@ void EnableStressHeapHelper()
 
 // We're done with our GC.  Let all the threads run again.
 // By this point we've already unblocked most threads.  This just releases the ThreadStore lock.
-void ThreadSuspend::ResumeRuntime(BOOL bFinishedGC, BOOL SuspendSucceded)
+void ThreadSuspend::ResumeRuntime(BOOL bFinishedGC, BOOL SuspendSucceeded)
 {
     CONTRACTL {
         NOTHROW;
@@ -3744,7 +3744,7 @@ void ThreadSuspend::ResumeRuntime(BOOL bFinishedGC, BOOL SuspendSucceded)
     _ASSERTE(IsGCSpecialThread() || ThreadStore::HoldingThreadStore());
     _ASSERTE(!GCHeapUtilities::IsGCInProgress() );
 
-    STRESS_LOG2(LF_SYNC, LL_INFO1000, "Thread::ResumeRuntime(finishedGC=%d, SuspendSucceeded=%d) - Start\n", bFinishedGC, SuspendSucceded);
+    STRESS_LOG2(LF_SYNC, LL_INFO1000, "Thread::ResumeRuntime(finishedGC=%d, SuspendSucceeded=%d) - Start\n", bFinishedGC, SuspendSucceeded);
 
     //
     // Notify everyone who cares, that this suspension is over, and this thread is going to go do other things.
@@ -5525,7 +5525,7 @@ void Thread::UnmarkForSuspension(ULONG mask)
 
 //----------------------------------------------------------------------------
 
-void ThreadSuspend::RestartEE(BOOL bFinishedGC, BOOL SuspendSucceded)
+void ThreadSuspend::RestartEE(BOOL bFinishedGC, BOOL SuspendSucceeded)
 {
     ThreadSuspend::s_fSuspended = false;
 #ifdef TIME_SUSPEND
@@ -5578,7 +5578,7 @@ void ThreadSuspend::RestartEE(BOOL bFinishedGC, BOOL SuspendSucceded)
     Thread  *thread = NULL;
     while ((thread = ThreadStore::GetThreadList(thread)) != NULL)
     {
-        thread->PrepareForEERestart(SuspendSucceded);
+        thread->PrepareForEERestart(SuspendSucceeded);
     }
 
     //
@@ -5605,7 +5605,7 @@ void ThreadSuspend::RestartEE(BOOL bFinishedGC, BOOL SuspendSucceded)
     GCHeapUtilities::GetGCHeap()->SetWaitForGCEvent();
     _ASSERTE(IsGCSpecialThread() || ThreadStore::HoldingThreadStore());
 
-    ResumeRuntime(bFinishedGC, SuspendSucceded);
+    ResumeRuntime(bFinishedGC, SuspendSucceeded);
 
     FireEtwGCRestartEEEnd_V1(GetClrInstanceId());
 
index a600d090eef82ba499f8461366fce8f4e02f5735..6d034b91a1997ac70938fc2fa1e0e7a261652078 100644 (file)
@@ -186,7 +186,7 @@ private:
     static SUSPEND_REASON    m_suspendReason;    // This contains the reason why the runtime is suspended
 
     static void SuspendRuntime(ThreadSuspend::SUSPEND_REASON reason);
-    static void ResumeRuntime(BOOL bFinishedGC, BOOL SuspendSucceded);
+    static void ResumeRuntime(BOOL bFinishedGC, BOOL SuspendSucceeded);
 public:
     // Initialize thread suspension support
     static void Initialize();
@@ -239,7 +239,7 @@ public:
 public:
     //suspend all threads
     static void SuspendEE(SUSPEND_REASON reason);
-    static void RestartEE(BOOL bFinishedGC, BOOL SuspendSucceded); //resume threads.
+    static void RestartEE(BOOL bFinishedGC, BOOL SuspendSucceeded); //resume threads.
 
     static void LockThreadStore(ThreadSuspend::SUSPEND_REASON reason);
     static void UnlockThreadStore(BOOL bThreadDestroyed = FALSE,
index a905c86efb9c63ab6cce2aadaa399098f9076f41..4e4da913e866419d24b74ffdf528769e31179f1f 100644 (file)
@@ -960,7 +960,7 @@ void TieredCompilationManager::ActivateCodeVersion(NativeCodeVersion nativeCodeV
     }
 }
 
-// Dequeues the next method in the optmization queue.
+// Dequeues the next method in the optimization queue.
 // This runs on the background thread.
 NativeCodeVersion TieredCompilationManager::GetNextMethodToOptimize()
 {
index 7636b6b2ef1449be9ff98d7b609d8d2c36276aaf..e7eacb9c2ff85f2ac90e6394bdeba5e9d0d646e9 100644 (file)
@@ -1,18 +1,14 @@
 // Licensed to the .NET Foundation under one or more agreements.
 // The .NET Foundation licenses this file to you under the MIT license.
+
 //
 // File: typedesc.cpp
-//
-
-
 //
 // This file contains definitions for methods in the code:TypeDesc class and its
 // subclasses
 //     code:ParamTypeDesc,
 //     code:TyVarTypeDesc,
 //     code:FnPtrTypeDesc
-//
-
 //
 // ============================================================================
 
@@ -861,7 +857,7 @@ void TypeVarTypeDesc::LoadConstraints(ClassLoadLevel level /* = CLASS_LOADED */)
         if (numConstraints != 0)
         {
             LoaderAllocator* pAllocator = GetModule()->GetLoaderAllocator();
-            // If there is a single class constraint we put in in element 0 of the array
+            // If there is a single class constraint we place it at index 0 of the array
             AllocMemHolder<TypeHandle> constraints
                 (pAllocator->GetLowFrequencyHeap()->AllocMem(S_SIZE_T(numConstraints) * S_SIZE_T(sizeof(TypeHandle))));
 
index e635568623d4175a8cc08068bd5a01b2ba999f03..1439dc8e040b72ff1e1c610c585d1eb11376a995 100644 (file)
@@ -1793,7 +1793,7 @@ void InitializeClrNotifications()
 // <TODO> FIX IN BETA 2
 //
 // g_dacNotificationFlags is only modified by the DAC and therefore the
-// optmizer can assume that it will always be its default value and has
+// optimizer can assume that it will always be its default value and has
 // been seen to eliminate the code in DoModuleLoadNotification,
 // etc... such that DAC notifications are no longer sent.
 //
index 9b349afb25895d44df070c43749abdc739d07c0a..2e1e9d547da7ed724c49bc105bd38655eb77174d 100644 (file)
@@ -1,11 +1,8 @@
 // Licensed to the .NET Foundation under one or more agreements.
 // The .NET Foundation licenses this file to you under the MIT license.
+
 //
 // File: VirtualCallStub.h
-//
-
-
-
 //
 // See code:VirtualCallStubManager for details
 //
@@ -14,7 +11,6 @@
 #ifndef _VIRTUAL_CALL_STUB_H
 #define _VIRTUAL_CALL_STUB_H
 
-
 #define CHAIN_LOOKUP
 
 #if defined(TARGET_X86)
@@ -984,7 +980,7 @@ because a stub/entry is not present in a table, e.g. has been removed, that does
 it is not in use.  It also implies that internal table structures, such as discarded hash table buckets,
 cannot be freely recycled since another concurrent thread may still be walking thru it.
 
-4. Occassionaly it is necessary to pick up the pieces that have been dropped on the floor
+4. Occassionally it is necessary to pick up the pieces that have been dropped on the floor
 so to speak, e.g. actually recycle hash buckets that aren't in use.  Since we have a natural
 sync point already in the GC, we use that to provide cleanup points.  We need to make sure that code that
 is walking our structures is not a GC safe point.  Hence if the GC calls back into us inside the GC
index f9d8dc45b8b8e72b23fa155afddb202ac503c767..cefb377f40c09441a66047ae1d4cf3890132f101 100644 (file)
@@ -183,7 +183,7 @@ namespace System.Net.Http.HPack
             while (currentIndex < data.Length);
 
             // If a header range was set, but the value was not in the data, then copy the range
-            // to the name buffer. Must copy because because the data will be replaced and the range
+            // to the name buffer. Must copy because the data will be replaced and the range
             // will no longer be valid.
             if (_headerNameRange != null)
             {
index 9e3d8fe8a219c7de009f4ac03d3fe262875a907d..394cc1aee72a5fbd0bf821386373ffd7d47933dd 100644 (file)
@@ -239,7 +239,7 @@ namespace System.Net.Http.QPack
             while (currentIndex < data.Length);
 
             // If a header range was set, but the value was not in the data, then copy the range
-            // to the name buffer. Must copy because because the data will be replaced and the range
+            // to the name buffer. Must copy because the data will be replaced and the range
             // will no longer be valid.
             if (_headerNameRange != null)
             {
index a7a2dc95cc2075004f57c1ac22010677fc0d841d..d581fac9dc1e185da779c9fc28b008d3e4b7e270 100644 (file)
@@ -556,7 +556,7 @@ namespace System.IO.Compression
                             if (expectException)
                                 continue;
 
-                            throw new XunitException($"An unexpected error occured while decompressing data:{e}");
+                            throw new XunitException($"An unexpected error occurred while decompressing data:{e}");
                         }
 
                         if (expectException)
index c277f8d47a28175f9ed17118ee01df370782ff52..a1db4f5fad21e35ebcaaf5ab27763c26f9f858bd 100644 (file)
@@ -6,7 +6,7 @@
 # Firewall configuration
 $script:firewallGroup = "Libraries Testing"
 $script:firewallRules = @(
-    @{Name = "LibariesNet - HTTP 80"; Port = 80},
+    @{Name = "LibrariesNet - HTTP 80"; Port = 80},
     @{Name = "LibrariesNet - HTTP 443"; Port = 443}
 )
 
index 99e03904aef915dc934c7c179e1f76f3aec7519c..f0761570a476bb8b8ca39b2c918a09ee6368a1d2 100644 (file)
@@ -8,7 +8,7 @@ namespace System.Security.Cryptography.Encryption.Aes.Tests
     using Aes = System.Security.Cryptography.Aes;
 
     [SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser")]
-    public static class DecryptorReusabilty
+    public static class DecryptorReusability
     {
         // See https://github.com/dotnet/runtime/issues/21354 for details
         [ConditionalFact(nameof(ShouldDecryptorBeReusable))]
index 1d117cfcb669c7c91db6939499c1b335a5dff659..6b84064f61fad25dcea7a010a9105dd5c9908381 100644 (file)
@@ -75,7 +75,7 @@ namespace OLEDB.Test.ModuleCore
                 {
                     CKeywordParser.Tokens tokens = new CKeywordParser.Tokens();
                     tokens.Equal = " ";
-                    tokens.Seperator = "/";
+                    tokens.Separator = "/";
                     s_hashOptions = CKeywordParser.ParseKeywords(CommandLine, tokens);
                 }
                 return s_hashOptions;
index 0e1d4e333ad1e914856cfece2b1915c84329eb4e..091c9c3296d305e0ed65b6572d58bc2f93633fbc 100644 (file)
@@ -34,7 +34,7 @@ namespace OLEDB.Test.ModuleCore
         public class Tokens
         {
             public string Equal = "=";
-            public string Seperator = ";";
+            public string Separator = ";";
             public string SingleQuote = "'";
             public string DoubleQuote = "\"";
         };
@@ -94,7 +94,7 @@ namespace OLEDB.Test.ModuleCore
                             {
                                 state = PARSE.DoubleBegin;
                             }
-                            else if (tokens.Seperator.IndexOf(ch) >= 0)
+                            else if (tokens.Separator.IndexOf(ch) >= 0)
                             {
                                 keywords[key] = string.Empty;
                                 state = PARSE.Initial;
@@ -107,7 +107,7 @@ namespace OLEDB.Test.ModuleCore
                             break;
 
                         case PARSE.Value:
-                            if (tokens.Seperator.IndexOf(ch) >= 0)
+                            if (tokens.Separator.IndexOf(ch) >= 0)
                             {
                                 keywords[key] = (builder.ToString()).Trim();
                                 state = PARSE.Initial;
@@ -161,7 +161,7 @@ namespace OLEDB.Test.ModuleCore
                             break;
 
                         case PARSE.End:
-                            if (tokens.Seperator.IndexOf(ch) >= 0)
+                            if (tokens.Separator.IndexOf(ch) >= 0)
                             {
                                 state = PARSE.Initial;
                             }
diff --git a/src/libraries/Microsoft.Extensions.HostFactoryResolver/tests/ApplicationNameSetFromAgrument/ApplicationNameSetFromAgrument.csproj b/src/libraries/Microsoft.Extensions.HostFactoryResolver/tests/ApplicationNameSetFromAgrument/ApplicationNameSetFromAgrument.csproj
deleted file mode 100644 (file)
index 1d8d76f..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-<Project Sdk="Microsoft.NET.Sdk">
-
-  <PropertyGroup>
-    <TargetFrameworks>$(NetCoreAppCurrent);$(NetFrameworkMinimum)</TargetFrameworks>
-    <EnableDefaultItems>true</EnableDefaultItems>
-    <OutputType>Exe</OutputType>
-  </PropertyGroup>
-
-  <ItemGroup>
-    <ProjectReference Include="..\MockHostTypes\MockHostTypes.csproj" />
-  </ItemGroup>
-
-</Project>
diff --git a/src/libraries/Microsoft.Extensions.HostFactoryResolver/tests/ApplicationNameSetFromAgrument/Program.cs b/src/libraries/Microsoft.Extensions.HostFactoryResolver/tests/ApplicationNameSetFromAgrument/Program.cs
deleted file mode 100644 (file)
index f83f5c1..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-
-using System;
-using Microsoft.Extensions.Configuration;
-using Microsoft.Extensions.Hosting;
-
-var host = new HostBuilder().ConfigureAppConfiguration(builder => builder.AddCommandLine(args)).Build();
\ No newline at end of file
diff --git a/src/libraries/Microsoft.Extensions.HostFactoryResolver/tests/ApplicationNameSetFromArgument/ApplicationNameSetFromArgument.csproj b/src/libraries/Microsoft.Extensions.HostFactoryResolver/tests/ApplicationNameSetFromArgument/ApplicationNameSetFromArgument.csproj
new file mode 100644 (file)
index 0000000..1d8d76f
--- /dev/null
@@ -0,0 +1,13 @@
+<Project Sdk="Microsoft.NET.Sdk">
+
+  <PropertyGroup>
+    <TargetFrameworks>$(NetCoreAppCurrent);$(NetFrameworkMinimum)</TargetFrameworks>
+    <EnableDefaultItems>true</EnableDefaultItems>
+    <OutputType>Exe</OutputType>
+  </PropertyGroup>
+
+  <ItemGroup>
+    <ProjectReference Include="..\MockHostTypes\MockHostTypes.csproj" />
+  </ItemGroup>
+
+</Project>
diff --git a/src/libraries/Microsoft.Extensions.HostFactoryResolver/tests/ApplicationNameSetFromArgument/Program.cs b/src/libraries/Microsoft.Extensions.HostFactoryResolver/tests/ApplicationNameSetFromArgument/Program.cs
new file mode 100644 (file)
index 0000000..f83f5c1
--- /dev/null
@@ -0,0 +1,8 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+using System;
+using Microsoft.Extensions.Configuration;
+using Microsoft.Extensions.Hosting;
+
+var host = new HostBuilder().ConfigureAppConfiguration(builder => builder.AddCommandLine(args)).Build();
\ No newline at end of file
index d6cf530c94e93ab3def282ac0bb4d31a6a3275ba..fe26636fa8501aa934eb1e1579b46e95aaeda8c7 100644 (file)
@@ -264,14 +264,14 @@ namespace Microsoft.Extensions.Hosting.Tests
         }
 
         [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))]
-        public void ApplicationNameSetFromAgrument()
+        public void ApplicationNameSetFromArgument()
         {
-            Assembly assembly = Assembly.Load("ApplicationNameSetFromAgrument");
+            Assembly assembly = Assembly.Load("ApplicationNameSetFromArgument");
             var factory = HostFactoryResolver.ResolveServiceProviderFactory(assembly, s_WaitTimeout);
             IServiceProvider? serviceProvider = factory(Array.Empty<string>());
 
             var configuration = (IConfiguration)serviceProvider.GetService(typeof(IConfiguration));
-            Assert.Contains("ApplicationNameSetFromAgrument", configuration["applicationName"]);
+            Assert.Contains("ApplicationNameSetFromArgument", configuration["applicationName"]);
         }
 
         [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))]
index 61edd76da9ceb2d182b4fac6fed1254a23681614..d24d1061440392b872ab74da19edff042423c45f 100644 (file)
@@ -14,7 +14,7 @@
   </ItemGroup>
 
   <ItemGroup>
-    <ProjectReference Include="ApplicationNameSetFromAgrument\ApplicationNameSetFromAgrument.csproj" />
+    <ProjectReference Include="ApplicationNameSetFromArgument\ApplicationNameSetFromArgument.csproj" />
     <ProjectReference Include="BuildWebHostInvalidSignature\BuildWebHostInvalidSignature.csproj" />
     <ProjectReference Include="BuildWebHostPatternTestSite\BuildWebHostPatternTestSite.csproj" />
     <ProjectReference Include="CreateHostBuilderInvalidSignature\CreateHostBuilderInvalidSignature.csproj" />
index 50a806a8a8f342206441bda5c8f7159c4ad37a40..1b1b8b305e4c8cdb58284821022ed85e61f18c66 100644 (file)
@@ -389,7 +389,7 @@ namespace Microsoft.Extensions.Http
             Assert.False(factory.CleanupTimerStarted.IsSet, "Cleanup timer not started");
         }
 
-        // Seprate to avoid the HttpClient getting its lifetime extended by
+        // Separate to avoid the HttpClient getting its lifetime extended by
         // the state machine of the test.
         [MethodImpl(MethodImplOptions.NoInlining)]
         private async Task<ExpiredHandlerTrackingEntry> SimulateClientUse_Factory_CleanupCycle_DisposesEligibleHandler(TestHttpClientFactory factory)
@@ -459,7 +459,7 @@ namespace Microsoft.Extensions.Http
             Assert.False(factory.CleanupTimerStarted.IsSet, "Cleanup timer not started");
         }
 
-        // Seprate to avoid the HttpClient getting its lifetime extended by
+        // Separate to avoid the HttpClient getting its lifetime extended by
         // the state machine of the test.
         [MethodImpl(MethodImplOptions.NoInlining)]
         private async Task<ExpiredHandlerTrackingEntry> SimulateClientUse_Factory_CleanupCycle_DisposesLiveHandler(
index 387beac8cc43495e4779805b6e509de8b448ff16..3b90ed58db2ba658de01e3a38400d7540dacc8de 100644 (file)
@@ -9,7 +9,7 @@ using Xunit;
 
 namespace Microsoft.Extensions.Options.ConfigurationExtensions.Tests
 {
-    public class OptionsBuidlerConfigurationExtensionsTests
+    public class OptionsBuilderConfigurationExtensionsTests
     {
         [Fact]
         public static void BindConfiguration_ThrowsForNullBuilder()
index ff87277720b4fd5159024cdfef420c3b175d710f..b51ca252f742963f723a383dba22623e90c59660 100644 (file)
@@ -52,9 +52,9 @@ Namespace Microsoft.VisualBasic
                 ' as well as skipping over quotations used around embedded spaces within
                 ' the application name
                 '  examples:
-                '       f:\"Program Files"\Microsoft\foo.exe  a b  d   e  f 
-                '       "f:\"Program Files"\Microsoft\foo.exe" a b  d   e  f 
-                '       f:\Program Files\Microsoft\foo.exe                  a b  d   e  f 
+                '       f:\"Program Files"\Microsoft\foo.exe  a b  d   e  f
+                '       "f:\"Program Files"\Microsoft\foo.exe" a b  d   e  f
+                '       f:\Program Files\Microsoft\foo.exe                  a b  d   e  f
                 Dim LengthOfAppName, j As Integer
 
                 'Remove the app name from the arguments
@@ -150,7 +150,7 @@ Namespace Microsoft.VisualBasic
         '============================================================================
         Public Function Choose(ByVal Index As Double, ByVal ParamArray Choice() As Object) As Object
 
-            Dim FixedIndex As Integer = CInt(Fix(Index) - 1) 'ParamArray is 0 based, but Choose assumes 1 based 
+            Dim FixedIndex As Integer = CInt(Fix(Index) - 1) 'ParamArray is 0 based, but Choose assumes 1 based
 
             If Choice.Rank <> 1 Then
                 Throw New ArgumentException(SR.Format(SR.Argument_RankEQOne1, "Choice"))
@@ -228,7 +228,7 @@ Namespace Microsoft.VisualBasic
             End If
 
             'Build-up the string.  Calculate number of spaces needed: VB3 uses Stop + 1.
-            'This may seem bogus but it has to be this way for VB3 compatibilty.
+            'This may seem bogus but it has to be this way for VB3 compatibility.
             Buffer1 = CStr([Stop] + 1)
             Buffer2 = CStr(Start - 1)
 
@@ -253,7 +253,7 @@ Namespace Microsoft.VisualBasic
                 InsertNumber(Buffer, Lower, Spaces)
             End If
 
-            'Insert the partition 
+            'Insert the partition
             Buffer = Buffer & ":"
 
             'Insert upper-end of partition range
index 4c181db60da07170e0afef321b41e34f087f6741..b2bd0a8c8aade7401e3180857633eaa8bfd93d85 100644 (file)
@@ -2068,7 +2068,7 @@ namespace Microsoft.VisualBasic
             Output.Write(')');
         }
 
-        // In VB, constraints are put right after the type paramater name.
+        // In VB, constraints are put right after the type parameter name.
         // In C#, there is a separate "where" statement
         private void OutputTypeParameterConstraints(CodeTypeParameter typeParameter)
         {
index 1c7f01b32e870c27887414aef1d20f30f413a9bd..f14b829009aec7c42d57ab71bdb4d5aabcd1867d 100644 (file)
@@ -14,7 +14,7 @@ namespace System.ComponentModel.Composition.Hosting
         /// <summary>
         /// Implementation of IComposablePartTraversal supporting the Dependents traveral pattern.
         /// The implementation is optimized for a situation when the traversal is expected to be rather short-lived - that is,
-        /// if the chains of dependecies are rather small. To achieve that we do a very minimal structure prep upfront - merely creating a contract-based
+        /// if the chains of dependencies are rather small. To achieve that we do a very minimal structure prep upfront - merely creating a contract-based
         /// index of imports - and the verify the full match of imports during the traversal. Given that most parts have a very few imports this should perform well.
         /// </summary>
         internal sealed class DependentsTraversal : IComposablePartCatalogTraversal
index 10a7acc02fe2a756fadfa359442d35d4b0dbc042..57ad4ed0d92cae715bfb58013eb2d208a35eb249 100644 (file)
@@ -11,7 +11,7 @@ namespace System.ComponentModel.Composition.Hosting
     public partial class FilteredCatalog
     {
         /// <summary>
-        /// Creates a new instance of the <see cref="FilteredCatalog"/> that conatains all the parts from the orignal filtered catalog and all their dependecies.
+        /// Creates a new instance of the <see cref="FilteredCatalog"/> that conatains all the parts from the orignal filtered catalog and all their dependencies.
         /// </summary>
         /// <returns></returns>
         public FilteredCatalog IncludeDependencies()
index 7cc2e443adab13c6ebb22b508466ffdb0f93f38f..101781a8b30ed34194f7ad9075e8a120586c5bfd 100644 (file)
@@ -53,7 +53,7 @@ namespace System.ComponentModel.Composition.AttributedModel
         }
 
         [Fact]
-        public void CreatePart_From_InvalidPartDefiniton_ShouldThrowArgumentException()
+        public void CreatePart_From_InvalidPartDefinition_ShouldThrowArgumentException()
         {
             Assert.Throws<ArgumentException>("partDefinition", () =>
             {
index 3326cef3d3a5ed094eff74ca192a5bcd68d78604..debc005bb09d64f64b4607fbfe0d7dcc55f480b1 100644 (file)
@@ -50,7 +50,7 @@ namespace System.ComponentModel.Composition
         }
 
         [Fact]
-        public void IsMultiple_ValueAsValueArgument_ShouldSetPropert()
+        public void IsMultiple_ValueAsValueArgument_ShouldSetProperty()
         {
             var expectations = Expectations.GetBooleans();
 
index 712637375d096e404fe3040328d55e83d0b23a00..8876db46066bf7659ae4041e27666006f64e1fb3 100644 (file)
@@ -381,7 +381,7 @@ namespace System.ComponentModel.Composition
         }
 
         //=========================================================================================================================================
-        //  Test cases for AssemblyCatalog(string codebase, ICompositionElement definitonOrigin) constructor
+        //  Test cases for AssemblyCatalog(string codebase, ICompositionElement definitionOrigin) constructor
         //=========================================================================================================================================
         [Fact]
         [ActiveIssue("https://github.com/dotnet/runtime/issues/24240")]
@@ -490,7 +490,7 @@ namespace System.ComponentModel.Composition
         }
 
         //=========================================================================================================================================
-        //  Test cases for AssemblyCatalog(string codebase, ICompositionElement definitonOrigin, ReflectionContext reflectionContext) constructor
+        //  Test cases for AssemblyCatalog(string codebase, ICompositionElement definitionOrigin, ReflectionContext reflectionContext) constructor
         //=========================================================================================================================================
         [Fact]
         public void Constructor4_ValueAsCodebaseArgument_ShouldSetAssemblyProperty()
@@ -606,7 +606,7 @@ namespace System.ComponentModel.Composition
             });
         }
         //=========================================================================================================================================
-        //  Test cases for AssemblyCatalog(string codebase, ICompositionElement definitonOrigin) constructor
+        //  Test cases for AssemblyCatalog(string codebase, ICompositionElement definitionOrigin) constructor
         //=========================================================================================================================================
         [Fact]
         [ActiveIssue("https://github.com/dotnet/runtime/issues/24240")]
@@ -671,7 +671,7 @@ namespace System.ComponentModel.Composition
         }
 
         //=========================================================================================================================================
-        //  Test cases for AssemblyCatalog(string codebase, ICompositionElement definitonOrigin, ReflectionContext reflectionContext) constructor
+        //  Test cases for AssemblyCatalog(string codebase, ICompositionElement definitionOrigin, ReflectionContext reflectionContext) constructor
         //=========================================================================================================================================
         [Fact]
         public void Constructor8_ValueAsAssemblyArgument_ShouldSetAssemblyProperty()
index a521c72efe157c25e34b4a94f68dd1d2d2339126..1b886750dd49d47cc39e3f83b83b582e2cfbde2a 100644 (file)
@@ -715,7 +715,7 @@ namespace System.ComponentModel.Composition.ReflectionModel
         }
 
         [Fact]
-        public void CreateImportDefinition_Parameter_NullAsParamater_ShouldThrowArgumentNull()
+        public void CreateImportDefinition_Parameter_NullAsParameter_ShouldThrowArgumentNull()
         {
             ParameterInfo parameter = typeof(TestPart).GetConstructor(new Type[] { typeof(int) }).GetParameters()[0];
             Lazy<ParameterInfo> expectedLazyParameter = parameter.AsLazy();
index 782c3039fda33c41335e1aabff3d1085e1cab73b..96a4518378ae6d471787da98ca023bf913a04ba1 100644 (file)
@@ -35,7 +35,7 @@ namespace Tests.Integration
         }
 
         [Fact]
-        public void PartTypeLoadedLazilyEagerDependeciesLoadEagerly()
+        public void PartTypeLoadedLazilyEagerDependenciesLoadEagerly()
         {
             var catalog = new TypeLoadNotifyingCatalog(typeof(ExportingPart), typeof(PartImportingEagerly));
             var container = new CompositionContainer(catalog);
@@ -56,7 +56,7 @@ namespace Tests.Integration
         }
 
         [Fact]
-        public void PartTypeLoadedLazilyLazyDependeciesLoadLazily()
+        public void PartTypeLoadedLazilyLazyDependenciesLoadLazily()
         {
             var catalog = new TypeLoadNotifyingCatalog(typeof(ExportingPart), typeof(PartImportingLazily));
             var container = new CompositionContainer(catalog);
@@ -77,7 +77,7 @@ namespace Tests.Integration
         }
 
         [Fact]
-        public void PartTypeLoadedLazilyEagerCollectionDependeciesLoadEagerly()
+        public void PartTypeLoadedLazilyEagerCollectionDependenciesLoadEagerly()
         {
             var catalog = new TypeLoadNotifyingCatalog(typeof(ExportingPart), typeof(PartImportingCollectionEagerly));
             var container = new CompositionContainer(catalog);
@@ -98,7 +98,7 @@ namespace Tests.Integration
         }
 
         [Fact]
-        public void PartTypeLoadedLazilyLazyCollectionDependeciesLoadLazily()
+        public void PartTypeLoadedLazilyLazyCollectionDependenciesLoadLazily()
         {
             var catalog = new TypeLoadNotifyingCatalog(typeof(ExportingPart), typeof(PartImportingCollectionLazily));
             var container = new CompositionContainer(catalog);
index 232709f9e5777a7a8e09aa51be3744ad08e7a13b..100beeb2875365a85363957832ce81908d8222c0 100644 (file)
@@ -59,7 +59,7 @@ namespace System.ComponentModel
         private static readonly int s_bitAmbientValueQueried = InterlockedBitVector32.CreateMask(s_bitReadOnlyChecked);
         private static readonly int s_bitSetOnDemand = InterlockedBitVector32.CreateMask(s_bitAmbientValueQueried);
 
-        private InterlockedBitVector32 _state;             // Contains the state bits for this proeprty descriptor.
+        private InterlockedBitVector32 _state;             // Contains the state bits for this property descriptor.
         [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)]
         private readonly Type _componentClass;             // used to determine if we should all on us or on the designer
         private readonly Type _type;                       // the data type of the property
index a7933d5656191f40385ab4f78d847a3ff676bfb8..31443ab20e553c9eff6e333f3e865d80949bd11e 100644 (file)
@@ -112,9 +112,9 @@ namespace System.Composition.UnitTests
         public void VerifyAssemblyNameCanBeUsedWithContainer()
         {
             var test = new ContainerConfiguration()
-                .WithAssembly(typeof(ClassWithDependecy).GetTypeInfo().Assembly)
+                .WithAssembly(typeof(ClassWithDependency).GetTypeInfo().Assembly)
                 .CreateContainer();
-            var b = test.GetExport<ClassWithDependecy>();
+            var b = test.GetExport<ClassWithDependency>();
             Assert.NotNull(b);
             Assert.NotNull(b._dep);
         }
@@ -123,9 +123,9 @@ namespace System.Composition.UnitTests
         public void VerifyAssemblyWithTwoBaseTypeWithOnlyOneExportedWorks()
         {
             var test = new ContainerConfiguration()
-                .WithAssembly(typeof(ClassWithDependecy).GetTypeInfo().Assembly)
+                .WithAssembly(typeof(ClassWithDependency).GetTypeInfo().Assembly)
                 .CreateContainer();
-            var b = test.GetExport<ClassWithDependecyAndSameBaseType>();
+            var b = test.GetExport<ClassWithDependencyAndSameBaseType>();
             Assert.NotNull(b);
             Assert.NotNull(b._dep);
             Assert.Equal(typeof(TestDependency), b._dep.GetType());
index 7f306622203cdd92d201202adca99abe1e38557d..411cdf6152d169e2b9aba5a2738b17fbc67104ef 100644 (file)
@@ -6,22 +6,22 @@ using System.Composition;
 namespace TestLibrary
 {
     [Export]
-    public class ClassWithDependecy
+    public class ClassWithDependency
     {
         public TestDependency _dep;
         [ImportingConstructor]
-        public ClassWithDependecy(TestDependency dep)
+        public ClassWithDependency(TestDependency dep)
         {
             _dep = dep;
         }
     }
 
     [Export]
-    public class ClassWithDependecyAndSameBaseType
+    public class ClassWithDependencyAndSameBaseType
     {
         public IDependency _dep;
         [ImportingConstructor]
-        public ClassWithDependecyAndSameBaseType(IDependency dep)
+        public ClassWithDependencyAndSameBaseType(IDependency dep)
         {
             _dep = dep;
         }
index 4877a395d912a7a0f4498dd97d9950fc14c36308..20a486c6e3b425500ac1376f867ee22bd06483a9 100644 (file)
@@ -803,7 +803,7 @@ namespace System.Configuration
                     }
                     catch
                     {
-                        // Ignore the error if we are attempting to retreive
+                        // Ignore the error if we are attempting to retrieve
                         // the last known good configuration.
                         if (!getLkg) throw;
                     }
@@ -848,7 +848,7 @@ namespace System.Configuration
                     //
                     // It WILL be common in web scenarios for there to be
                     // deep hierarchies of config files, most of which have
-                    // sparse input. Therefore we do not want to retreive a
+                    // sparse input. Therefore we do not want to retrieve a
                     // factory record if it is not necessary to do so, as
                     // it would always lead to an order N-squared operation,
                     // where N is the depth of the config hierarchy.
@@ -1075,7 +1075,7 @@ namespace System.Configuration
                 }
                 catch
                 {
-                    // Ignore the error if we are attempting to retreive
+                    // Ignore the error if we are attempting to retrieve
                     // the last known good configuration.
                     if (!getLkg) throw;
                 }
@@ -1189,7 +1189,7 @@ namespace System.Configuration
                     }
                     catch
                     {
-                        // Ignore the error if we are attempting to retreive
+                        // Ignore the error if we are attempting to retrieve
                         // the last known good configuration.
                         if (!getLkg) throw;
                     }
index 38c03d6d6c284711099ddc3a0c7ba5fe503cc972..733fcd5adf9813b7c3af907394363c7e48a18dbc 100644 (file)
@@ -81,7 +81,7 @@
     <Compile Include="System\Configuration\SettingElementTests.cs" />
     <Compile Include="System\Configuration\SettingsDescriptionAttributeTests.cs" />
     <Compile Include="System\Configuration\SettingsGroupDescriptionAttributeTests.cs" />
-    <Compile Include="System\Configuration\SettingsManageabilityAtrributeTests.cs" />
+    <Compile Include="System\Configuration\SettingsManageabilityAttributeTests.cs" />
     <Compile Include="System\Configuration\SettingsPropertyIsReadOnlyExceptionTests.cs" />
     <Compile Include="System\Configuration\SettingsPropertyNotFoundExceptionTests.cs" />
     <Compile Include="System\Configuration\SettingsPropertyWrongTypeExceptionTests.cs" />
diff --git a/src/libraries/System.Configuration.ConfigurationManager/tests/System/Configuration/SettingsManageabilityAtrributeTests.cs b/src/libraries/System.Configuration.ConfigurationManager/tests/System/Configuration/SettingsManageabilityAtrributeTests.cs
deleted file mode 100644 (file)
index cf5dd53..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-
-using Xunit;
-
-namespace System.Configuration
-{
-    public class SettingsManageabilityAtrributeTests
-    {
-        [Fact]
-        public void GetValueIsExpected()
-        {
-            var testSettingManageabilityAttribute = new SettingsManageabilityAttribute(SettingsManageability.Roaming);
-            Assert.Equal(SettingsManageability.Roaming, testSettingManageabilityAttribute.Manageability);
-        }
-    }
-}
diff --git a/src/libraries/System.Configuration.ConfigurationManager/tests/System/Configuration/SettingsManageabilityAttributeTests.cs b/src/libraries/System.Configuration.ConfigurationManager/tests/System/Configuration/SettingsManageabilityAttributeTests.cs
new file mode 100644 (file)
index 0000000..dcd6d77
--- /dev/null
@@ -0,0 +1,17 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+using Xunit;
+
+namespace System.Configuration
+{
+    public class SettingsManageabilityAttributeTests
+    {
+        [Fact]
+        public void GetValueIsExpected()
+        {
+            var testSettingManageabilityAttribute = new SettingsManageabilityAttribute(SettingsManageability.Roaming);
+            Assert.Equal(SettingsManageability.Roaming, testSettingManageabilityAttribute.Manageability);
+        }
+    }
+}
index 5f3d16b5993064368a33e1b7b42b771d3d4aa48c..6cbecabd9b820e0e1f9c928704ebdc436bfe69d1 100644 (file)
@@ -6503,12 +6503,12 @@ namespace System.Data
                 else
                 {
                     string CurrentTableNamespace = string.Empty;
-                    int nsSeperator = CurrentTableFullName.IndexOf(':');
-                    if (nsSeperator > -1)
+                    int nsSeparator = CurrentTableFullName.IndexOf(':');
+                    if (nsSeparator > -1)
                     {
-                        CurrentTableNamespace = CurrentTableFullName.Substring(0, nsSeperator);
+                        CurrentTableNamespace = CurrentTableFullName.Substring(0, nsSeparator);
                     }
-                    string CurrentTableName = CurrentTableFullName.Substring(nsSeperator + 1);
+                    string CurrentTableName = CurrentTableFullName.Substring(nsSeparator + 1);
 
                     currentTable = ds.Tables[CurrentTableName, CurrentTableNamespace];
                 }
index 44687a102bb39230ec84898bc1a59f576c490864..e3af9a2cfcb8960d81e7ef4406e2bb7e9687c4a4 100644 (file)
@@ -2708,7 +2708,7 @@ namespace System.Data.SqlTypes
                     // D5. Test remainder. Carry indicates result<0, therefore QH 1 too large
                     if (HI(dwlAccum) == 0)
                     {
-                        // D6. Add back - probabilty is 2**(-31). R += D. Q[digit] -= 1
+                        // D6. Add back - probability is 2**(-31). R += D. Q[digit] -= 1
                         uint ulCarry;
 
                         rgulQ[iulRindex - ciulD] = QH - 1;
index 6b6f56caa68cdbe49c09c0e43ee3c7f9b88f5b34..2157ca6002db88410f71244752594302822d12b4 100644 (file)
@@ -1852,11 +1852,11 @@ namespace System.Data.Tests
             DataRow[] drSelect;
             List<DataRow> al;
 
-            //add some rows
+            // add some rows
             dt.Rows.Add(new object[] { 99, 88, "bla", "wowww" });
             dt.Rows.Add(new object[] { 999, 888, string.Empty, "woowww" });
 
-            //get excepted resault
+            // get excepted result
             al = new List<DataRow>();
             foreach (DataRow dr in dt.Rows)
             {
@@ -1869,7 +1869,7 @@ namespace System.Data.Tests
             drSelect = dt.Select("ChildId=1", "ParentId Desc");
             Assert.Equal(al.ToArray(), drSelect);
 
-            //get excepted resault
+            // get excepted result
             al = new List<DataRow>();
             foreach (DataRow dr in dt.Rows)
             {
@@ -1882,7 +1882,7 @@ namespace System.Data.Tests
             drSelect = dt.Select("String1='1-String1'", "ParentId Desc");
             Assert.Equal(al.ToArray(), drSelect);
 
-            //get excepted resault
+            // get excepted result
             al = new List<DataRow>();
             foreach (DataRow dr in dt.Rows)
             {
@@ -1897,7 +1897,7 @@ namespace System.Data.Tests
             Assert.Equal(al.ToArray(), drSelect);
 
 
-            //get excepted resault
+            // get excepted result
             al = new List<DataRow>();
             foreach (DataRow dr in dt.Rows)
             {
index 7b4887893f6277c2b67a54366216862df9cee722..1e97a9c6455a9f551130a0bdfccad8c7909ae648 100644 (file)
@@ -112,7 +112,7 @@ namespace System.Data.Odbc
                 //Random
                 //Means that the user can ask for the values int any order (ie: out of order).
                 //  In order to achieve this on a forward only stream, we need to actually
-                //  retreive all the value in between so they can go back to values they've skipped
+                //  retrieve all the value in between so they can go back to values they've skipped
                 for (int c = 0; c < i; c++)
                 {
                     if (values[c] == null)
index d1cee50654a96f2fce4e78e7740b9093b9fcd1a4..6e95445410917ef86118d878d3afb21f58dd4d2f 100644 (file)
@@ -519,7 +519,7 @@ namespace System.Data.Odbc
                 case ODBC32.SQLRETURN.SUCCESS_WITH_INFO:
                     {
                         //Optimize to only create the event objects and obtain error info if
-                        //the user is really interested in retriveing the events...
+                        //the user is really interested in retrieveing the events...
                         if (_infoMessageEventHandler != null)
                         {
                             OdbcErrorCollection errors = ODBC32.GetDiagErrors(null, hrHandle, retcode);
index f4072666b291e66cd20bb7285d49b052ef033866..8ba753333243be78e534245b38b8d5242dfffb53 100644 (file)
@@ -11,7 +11,7 @@ namespace System.Diagnostics
     public delegate ActivitySamplingResult SampleActivity<T>(ref ActivityCreationOptions<T> options);
 
     /// <summary>
-    /// ActivityListener allows listening to the start and stop Activity events and give the oppertunity to decide creating the Activity for sampling scenarios.
+    /// ActivityListener allows listening to the start and stop Activity events and give the opportunity to decide creating the Activity for sampling scenarios.
     /// </summary>
     public sealed class ActivityListener : IDisposable
     {
index a36e31139209542bf145355c15f4776131484467..67767349084fc48fddaab2077b317254275d753c 100644 (file)
@@ -1190,12 +1190,12 @@ namespace System.Diagnostics
                     if (0 <= dotIdx)
                         idIdx = dotIdx + 1;
 
-                    string propertName = transformSpec.Substring(idIdx, endIdx - idIdx);
-                    _fetches = new PropertySpec(propertName, _fetches);
+                    string propertyName = transformSpec.Substring(idIdx, endIdx - idIdx);
+                    _fetches = new PropertySpec(propertyName, _fetches);
 
                     // If the user did not explicitly set a name, it is the last one (first to be processed from the end).
                     if (_outputName == null)
-                        _outputName = propertName;
+                        _outputName = propertyName;
 
                     endIdx = dotIdx;    // This works even when LastIndexOf return -1.
                 }
index de3a6cb340f1902ceacf4bcc8685f286c9b9d4b4..83c625a8284acf112cd86f80ff95ab57c367d240 100644 (file)
@@ -360,7 +360,7 @@ namespace System.Diagnostics.Metrics
                 return false;
             }
 
-            private static readonly char[] s_instrumentSeperators = new char[] { '\r', '\n', ',', ';' };
+            private static readonly char[] s_instrumentSeparators = new char[] { '\r', '\n', ',', ';' };
 
             [UnsupportedOSPlatform("browser")]
             private void ParseSpecs(string? metricsSpecs)
@@ -369,7 +369,7 @@ namespace System.Diagnostics.Metrics
                 {
                     return;
                 }
-                string[] specStrings = metricsSpecs.Split(s_instrumentSeperators, StringSplitOptions.RemoveEmptyEntries);
+                string[] specStrings = metricsSpecs.Split(s_instrumentSeparators, StringSplitOptions.RemoveEmptyEntries);
                 foreach (string specString in specStrings)
                 {
                     if (!MetricSpec.TryParse(specString, out MetricSpec spec))
index 424bd204c4f50e37f2bcac99a82f324d00c48c33..d8ba5d93a16bab612a8aa9aac7b4144f4ba0702c 100644 (file)
@@ -1169,7 +1169,7 @@ namespace System.Diagnostics.Tests
             activity.Stop();
 
             /****************************************************/
-            // Confirm that that flags are propagated to children.
+            // Confirm that the flags are propagated to children.
             activity = new Activity("activity4");
             activity.SetParentId("00-0123456789abcdef0123456789abcdef-0123456789abcdef-01");
             activity.Start();
index b70e89445db8dc9b8bd03290da9131c169761a0c..c41416115e4c458114526900987e2408e4e7d210 100644 (file)
@@ -107,7 +107,7 @@ namespace Microsoft.Win32
         }
 
         [StructLayout(LayoutKind.Explicit, CharSet = CharSet.Auto)]
-#pragma warning disable 618 // Ssytem.Core still uses SecurityRuleSet.Level1
+#pragma warning disable 618 // System.Core still uses SecurityRuleSet.Level1
         [SecurityCritical(SecurityCriticalScope.Everything)]
 #pragma warning restore 618
         internal struct EvtVariant
index 436bda8ae393d56400dd813066ee8b424d759826..26ce253a585c4783b2c997e4b91c024a28b5c9e7 100644 (file)
@@ -78,7 +78,7 @@ PerfView /onlyProviders=*Samples.EventCounterDemos.Minimal:*:Critical:EventCount
 
 Notice the `Critical` keyword in the command line, that is used to filter out the other events with lower priorities.
 
-In the next relaese of PerfView (> 2.0.26), we can visualize the counters using PerfView. To do so, you can right click on the event like this and choose the show event counter graph item:
+In the next release of PerfView (> 2.0.26), we can visualize the counters using PerfView. To do so, you can right click on the event like this and choose the show event counter graph item:
 
 <img src="PerfViewCapture_Menu.png" alt="Show EventCounter graph menu item" title="Show EventCounter graph menu item" />
 
index 7542fc06fb090358d997bf3aa3ab9375bf4ac27f..06fa26cc6eac0dc0e92bdf658d7870c96112e088 100644 (file)
@@ -590,7 +590,7 @@ namespace System.DirectoryServices.AccountManagement
 
             List<byte[]> sidList = new List<byte[]>(_foreignMembersCurrentGroup.Count);
 
-            // Foreach foreign principal retrive the sid.
+            // Foreach foreign principal retrieve the sid.
             // If the SID is for a fake object we have to track it separately.  If we were attempt to translate it
             // it would fail and not be returned and we would lose it.
             // Once we have a list of sids then translate them against the target store in one call.
index a7e18fa436016bec8a17c0a48f45af68fe586b8a..806b76fb9905e05f7e98d557aadc0c0b2563b870 100644 (file)
@@ -1390,7 +1390,7 @@ namespace System.DirectoryServices.AccountManagement
             // SID search
             //
             //
-            //  If we can read the defaultNamingContext and retrive the well known path for the foreignSecurityPrincipal container start there.
+            //  If we can read the defaultNamingContext and retrieve the well known path for the foreignSecurityPrincipal container start there.
             //  If we can only read the defaultNamingContext then start there
             //  Else just start at the base DN from the original context
             //
@@ -1436,7 +1436,7 @@ namespace System.DirectoryServices.AccountManagement
 
                         GlobalDebug.WriteLineIf(GlobalDebug.Info, "ADStoreCtx", "GetGroupsMemberOf(ctx): Read DNC of {0}", this.DefaultNamingContext);
 
-                        fspWkDn = ADUtils.RetriveWkDn(dncContainer, this.DefaultNamingContext, this.UserSuppliedServerName, Constants.GUID_FOREIGNSECURITYPRINCIPALS_CONTAINER_BYTE);
+                        fspWkDn = ADUtils.RetrieveWkDn(dncContainer, this.DefaultNamingContext, this.UserSuppliedServerName, Constants.GUID_FOREIGNSECURITYPRINCIPALS_CONTAINER_BYTE);
 
                         if (null != fspWkDn)
                         {
@@ -1521,7 +1521,7 @@ namespace System.DirectoryServices.AccountManagement
                 }
                 else
                 {
-                    // We don't need to retrive the Primary group ID here because we have already established that this user is not from this domain
+                    // We don't need to retrieve the Primary group ID here because we have already established that this user is not from this domain
                     // and the users primary group must be from the same domain as the user.
                     Debug.Assert(foreignPrincipal.ContextType != ContextType.ApplicationDirectory);
 
index ee0aaa86f7c636c7cd64c79ff8924c727abd31ff..672b9c6ea462939ef1d133e1d9270c83439328a1 100644 (file)
@@ -467,7 +467,7 @@ namespace System.DirectoryServices.AccountManagement
             {
             }
 
-            // Since we were able to retrive the computer domain above we should be able to access the current forest here.
+            // Since we were able to retrieve the computer domain above we should be able to access the current forest here.
             Forest currentForest = Forest.GetCurrentForest();
 
             Domain targetdom = Domain.GetDomain(new DirectoryContext(DirectoryContextType.Domain, targetDomain, username, password));
@@ -488,7 +488,7 @@ namespace System.DirectoryServices.AccountManagement
             return false;
         }
 
-        internal static string RetriveWkDn(DirectoryEntry deBase, string defaultNamingContext, string serverName, byte[] wellKnownContainerGuid)
+        internal static string RetrieveWkDn(DirectoryEntry deBase, string defaultNamingContext, string serverName, byte[] wellKnownContainerGuid)
         {
             /*
                             bool w2k3Supported  = false;
index 326d14d4e5ca3f170b90c36b8e6471e26257aa91..c1c2dc398ebfb9c40004be5e5e2a1bd326ff16ef 100644 (file)
@@ -86,7 +86,7 @@ namespace System.DirectoryServices.AccountManagement
                     throw new InvalidOperationException(SR.InvalidPropertyForStore);
 
                 // If we get to this point we know that the value of the property has changed and we should not load it from the store.
-                // If value is retrived the state is set to loaded.  Even if user modifies the reference we will
+                // If value is retrieved the state is set to loaded.  Even if user modifies the reference we will
                 // not overwrite it because we mark it as loaded.
                 // If the user sets it before reading it we mark it as changed.  When the users accesses it we just return the current
                 // value.  All change tracking to the store is done off of an actual object comparison because users can change the value
index a18cdb60d62845fa4a8d8a5061c6474c60384f23..eb08e73efd2fe283f84e0bf0cbd5c5cb0547408b 100644 (file)
@@ -728,7 +728,7 @@ namespace System.DirectoryServices.AccountManagement
                 return false;
             }
 
-            // Retrive the parsed username which has had the domain removed because LogonUser
+            // Retrieve the parsed username which has had the domain removed because LogonUser
             // expects creds this way.
             string userName = credential.ParsedUserName;
             string password = credential.Password;
index a0522a61abc1822115a20a5f30da2f87cf8b33e1..2de6a96dd5b4b46b5d465a9af89417fcb27858e7 100644 (file)
@@ -118,7 +118,7 @@ namespace System.DirectoryServices.Protocols.Tests
             var connection = new LdapConnection("server");
             connection.AuthType = AuthType.Anonymous;
             // When calling Bind we make sure that the exception thrown is not that there was a NullReferenceException
-            // trying to retrive a null password's lenght, but instead an LdapException given the server cannot be reached.
+            // trying to retrieve a null password's lenght, but instead an LdapException given the server cannot be reached.
             Assert.Throws<LdapException>(() => connection.Bind());
         }
 
index 76c5e4376f97240076689f691b42ebe66d6b5d76..d055b21f0343b5c56de95d45429fd6adb420b8f8 100644 (file)
@@ -76,7 +76,7 @@ namespace System.DirectoryServices.ActiveDirectory
 
             //
             // this api obtains the list of DCs/GCs based on dns records. The DCs/GCs that have registered
-            // non site specific records for the domain/forest are returned. Additonally DCs/GCs that have registered site specific records
+            // non site specific records for the domain/forest are returned. Additionally DCs/GCs that have registered site specific records
             // (site is either specified or defaulted to the site of the local machine) are also returned in this list.
             //
 
index 3b3a6d20515db4eead78c7a617c2e42a168caa0a..dcdea0d5993f5347322cac228d7e750f419ac46d 100644 (file)
@@ -141,7 +141,7 @@ namespace System.DirectoryServices
             _options = new DirectoryEntryConfiguration(this);
 
             // We are starting from an already bound connection so make sure the options are set properly.
-            // If this is an externallly managed com object then we don't want to change it's current behavior
+            // If this is an externally managed com object then we don't want to change it's current behavior
             if (!AdsObjIsExternal)
             {
                 InitADsObjectOptions();
index c694a53161981f9d048316fd9bcd1c7bc4a364d8..ac0f4c11a4244f87936b10b37591421c48d346ee 100644 (file)
@@ -148,7 +148,7 @@ namespace System.IO.Tests
             T item = GetExistingItem();
 
             // These linq calls make an IEnumerable of pairs of functions that are not identical
-            // (eg. not (creationtime, creationtime)), includes both orders as seperate entries
+            // (eg. not (creationtime, creationtime)), includes both orders as separate entries
             // as they it have different behavior in reverse order (of functions), in addition
             // to the pairs of functions, there is a reverse bool that allows a test for both
             // increasing and decreasing timestamps as to not limit the test unnecessarily.
index 27b923dbd39c2288e7bc24e933ab8ca8f50abfe3..7b2355746eadbd228473d8b5981fe391bb22d623 100644 (file)
@@ -109,7 +109,7 @@ internal class IOServices
 
         while (path.Length < characterCount)
         {
-            // Add directory seperator after each dir but not at the end of the path
+            // Add directory separator after each dir but not at the end of the path
             path.Append(Path.DirectorySeparatorChar);
 
             // Continue adding unique path segments until the character count is hit
index 40f1c22e820812f42af3c4925459010cedde4904..a814cd8b5e32467f62cefa059865e25baf1c5780 100644 (file)
@@ -287,7 +287,7 @@ namespace Legacy.Support
         {
             _properties.Clear();
 
-            // For each key in the defaultProperties Hashtable set poperties[key]
+            // For each key in the defaultProperties Hashtable set properties[key]
             // with the corresponding value in defaultProperties
             foreach (object key in defaultProperties.Keys)
             {
index b0309c31fec8edbab138bc3cb5ec45f4712bf5b0..6bc6d136cfc34e88e5e6d556086aa45a5496b49a 100644 (file)
@@ -120,7 +120,7 @@ namespace System.Linq.Expressions
             VisitExpressions(open, expressions, close, ", ");
         }
 
-        private void VisitExpressions<T>(char open, ReadOnlyCollection<T> expressions, char close, string seperator) where T : Expression
+        private void VisitExpressions<T>(char open, ReadOnlyCollection<T> expressions, char close, string separator) where T : Expression
         {
             Out(open);
             if (expressions != null)
@@ -134,7 +134,7 @@ namespace System.Linq.Expressions
                     }
                     else
                     {
-                        Out(seperator);
+                        Out(separator);
                     }
                     Visit(e);
                 }
index da7dd6e6ceda0e5fd3ec71d72202de2a2c322825..bfc685a9f952f3506463d047b89af5be33f0a1b4 100644 (file)
@@ -122,7 +122,7 @@ namespace System.Linq.Expressions.Tests
         }
 
         [Fact]
-        public static void VisitChangingOnlyParmeters()
+        public static void VisitChangingOnlyParameters()
         {
             BlockExpression block = Expression.Block(
                 new[] { Expression.Parameter(typeof(int)), Expression.Parameter(typeof(string)) },
@@ -132,7 +132,7 @@ namespace System.Linq.Expressions.Tests
         }
 
         [Fact]
-        public static void VisitChangingOnlyParmetersMultiStatementBody()
+        public static void VisitChangingOnlyParametersMultiStatementBody()
         {
             BlockExpression block = Expression.Block(
                 new[] { Expression.Parameter(typeof(int)), Expression.Parameter(typeof(string)) },
@@ -143,7 +143,7 @@ namespace System.Linq.Expressions.Tests
         }
 
         [Fact]
-        public static void VisitChangingOnlyParmetersTyped()
+        public static void VisitChangingOnlyParametersTyped()
         {
             BlockExpression block = Expression.Block(
                 typeof(object),
index 723ec56c884f5b173abb2ec9d81de313bf6cf5f9..be0757916810ade8c2f1f82a16fc2a557e935b67 100644 (file)
@@ -577,7 +577,7 @@ namespace System.Linq.Expressions.Tests
             AssertExtensions.Throws<ArgumentException>("switchValue", () => Expression.Switch(typeof(int), Expression.Empty(), Expression.Constant(1), default(MethodInfo), Enumerable.Empty<SwitchCase>()));
         }
 
-        public static IEnumerable<object[]> ComparisonsWithInvalidParmeterCounts()
+        public static IEnumerable<object[]> ComparisonsWithInvalidParameterCounts()
         {
             Func<bool> nullary = () => true;
             yield return new object[] { nullary.GetMethodInfo() };
@@ -589,7 +589,7 @@ namespace System.Linq.Expressions.Tests
             yield return new object[] { quaternary.GetMethodInfo() };
         }
 
-        [Theory, MemberData(nameof(ComparisonsWithInvalidParmeterCounts))]
+        [Theory, MemberData(nameof(ComparisonsWithInvalidParameterCounts))]
         public void InvalidComparisonMethodParameterCount(MethodInfo comparison)
         {
             AssertExtensions.Throws<ArgumentException>("comparison", () => Expression.Switch(Expression.Constant(0), Expression.Empty(), comparison));
index dfa1e0911882d411dc81b4b90d10e1e13d47addf..1c43875350a9c3380b1fbd0e5e9e0f9c167ae3b4 100644 (file)
@@ -1078,7 +1078,7 @@ namespace System.Management
 
         /// <summary>
         /// Function for generating the helper class "ManagementSystemProperties" which is
-        /// used for seperating the system properties from the other properties. This is used
+        /// used for separating the system properties from the other properties. This is used
         /// just to make the drop down list in the editor to look good.
         /// </summary>
         private CodeTypeDeclaration GenerateSystemPropertiesClass()
@@ -4716,7 +4716,7 @@ namespace System.Management
         }
 
         /// <summary>
-        /// Function to convert a given ValueMap or BitMap name to propert enum name
+        /// Function to convert a given ValueMap or BitMap name to property enum name
         /// </summary>
         private static string ConvertValuesToName(string str)
         {
index 501b6446bb8d9ad5ed4a464fc4dc3dc5df635f0a..ac4d036552f1444005a34fb3420af04c3edf0505 100644 (file)
@@ -14,7 +14,7 @@
     <Compile Include="BaseCertificateTest.cs" />
     <Compile Include="ServerCertificateTest.cs" />
     <Compile Include="WinHttpHandlerTest.cs" />
-    <Compile Include="XunitTestAssemblyAtrributes.cs" />
+    <Compile Include="XunitTestAssemblyAttributes.cs" />
     <Compile Include="$(CommonPath)\System\Net\Http\HttpHandlerDefaults.cs"
              Link="Common\System\Net\Http\HttpHandlerDefaults.cs" />
     <Compile Include="$(CommonTestPath)System\IO\DelegateStream.cs"
diff --git a/src/libraries/System.Net.Http.WinHttpHandler/tests/FunctionalTests/XunitTestAssemblyAtrributes.cs b/src/libraries/System.Net.Http.WinHttpHandler/tests/FunctionalTests/XunitTestAssemblyAtrributes.cs
deleted file mode 100644 (file)
index 9a5c869..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-
-using System;
-
-using Xunit;
-
-// The WinHttpHandler unit tests need to have parallelism turned off between test classes since they rely on
-// a mock network with simulated failures controlled by singleton static classes (TestControl, TestServer).
-// This attribute will put all test classes into a single collection. Default Xunit behavior is to run tests
-// within a single collection in series and not in parallel.
-[assembly: CollectionBehavior(CollectionBehavior.CollectionPerAssembly)]
diff --git a/src/libraries/System.Net.Http.WinHttpHandler/tests/FunctionalTests/XunitTestAssemblyAttributes.cs b/src/libraries/System.Net.Http.WinHttpHandler/tests/FunctionalTests/XunitTestAssemblyAttributes.cs
new file mode 100644 (file)
index 0000000..9a5c869
--- /dev/null
@@ -0,0 +1,12 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+using System;
+
+using Xunit;
+
+// The WinHttpHandler unit tests need to have parallelism turned off between test classes since they rely on
+// a mock network with simulated failures controlled by singleton static classes (TestControl, TestServer).
+// This attribute will put all test classes into a single collection. Default Xunit behavior is to run tests
+// within a single collection in series and not in parallel.
+[assembly: CollectionBehavior(CollectionBehavior.CollectionPerAssembly)]
index a3e5400761f3ee76954b250b84f6235ea8dac470..8cc30e517ac4465bd135ec72ae6d746c9a35f70c 100644 (file)
     <Compile Include="WinHttpRequestStreamTest.cs" />
     <Compile Include="WinHttpResponseHeaderReaderTest.cs" />
     <Compile Include="WinHttpResponseStreamTest.cs" />
-    <Compile Include="XunitTestAssemblyAtrributes.cs" />
+    <Compile Include="XunitTestAssemblyAttributes.cs" />
   </ItemGroup>
 </Project>
diff --git a/src/libraries/System.Net.Http.WinHttpHandler/tests/UnitTests/XunitTestAssemblyAtrributes.cs b/src/libraries/System.Net.Http.WinHttpHandler/tests/UnitTests/XunitTestAssemblyAtrributes.cs
deleted file mode 100644 (file)
index 9a5c869..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-
-using System;
-
-using Xunit;
-
-// The WinHttpHandler unit tests need to have parallelism turned off between test classes since they rely on
-// a mock network with simulated failures controlled by singleton static classes (TestControl, TestServer).
-// This attribute will put all test classes into a single collection. Default Xunit behavior is to run tests
-// within a single collection in series and not in parallel.
-[assembly: CollectionBehavior(CollectionBehavior.CollectionPerAssembly)]
diff --git a/src/libraries/System.Net.Http.WinHttpHandler/tests/UnitTests/XunitTestAssemblyAttributes.cs b/src/libraries/System.Net.Http.WinHttpHandler/tests/UnitTests/XunitTestAssemblyAttributes.cs
new file mode 100644 (file)
index 0000000..9a5c869
--- /dev/null
@@ -0,0 +1,12 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+using System;
+
+using Xunit;
+
+// The WinHttpHandler unit tests need to have parallelism turned off between test classes since they rely on
+// a mock network with simulated failures controlled by singleton static classes (TestControl, TestServer).
+// This attribute will put all test classes into a single collection. Default Xunit behavior is to run tests
+// within a single collection in series and not in parallel.
+[assembly: CollectionBehavior(CollectionBehavior.CollectionPerAssembly)]
index b9705ccd873150887bd92d13dbb1136e7fcd9931..626c46158b31ab218773ecf0702ee5bac975e960 100644 (file)
@@ -7,7 +7,7 @@ namespace System.Net
     internal enum CloseExState
     {
         Normal = 0x0,          // just a close
-        Abort = 0x1,          // unconditionaly release resources
+        Abort = 0x1,          // unconditionally release resources
         Silent = 0x2           // do not throw on close if possible
     }
 
index 022a57c0ca2b89c53ae3d60a46d9982fdd34953d..05dfce4137f053e24e99b47bca93a1a542f78ab7 100644 (file)
@@ -59,7 +59,7 @@ namespace System.Net.Security.Tests
             }
         }
 
-        // MacOS has has special validation rules for apple.com and icloud.com
+        // MacOS has special validation rules for apple.com and icloud.com
         [ConditionalTheory]
         [OuterLoop("Uses external servers")]
         [InlineData("www.apple.com")]
index 9fb542d8335e876ada7147deb27a8196b6245ed3..673e85b593e24e6998d837e8f2a2ec2334489134 100644 (file)
@@ -79,7 +79,7 @@ namespace System.Net.Sockets.Tests
         }
 
         [Fact]
-        public async Task TcpClientSocket_WhenBoundToWildcardAddress_LocalEPChangeToSpecificOnConnnect()
+        public async Task TcpClientSocket_WhenBoundToWildcardAddress_LocalEPChangeToSpecificOnConnect()
         {
             using (Socket server = CreateTcpSocket())
             using (Socket client = CreateTcpSocket())
@@ -103,7 +103,7 @@ namespace System.Net.Sockets.Tests
         }
 
         [Fact]
-        public async Task TcpClientSocket_WhenNotBound_LocalEPChangeToSpecificOnConnnect()
+        public async Task TcpClientSocket_WhenNotBound_LocalEPChangeToSpecificOnConnect()
         {
             using (Socket server = CreateTcpSocket())
             using (Socket client = CreateTcpSocket())
index bd741f8ab13811ee43ca3742397965f8ea639172..981d7644f5d1eef8b36b3f89b6730e24f0a714b4 100644 (file)
@@ -63,7 +63,7 @@ namespace System.Collections.Generic
                 {
                     if (t != null)
                     {
-                        hashCode ^= t.GetHashCode(); // same hashcode as as default comparer
+                        hashCode ^= t.GetHashCode(); // same hashcode as default comparer
                     }
                 }
             }
index 0f190d79f2ee618508d499f9bad7eec0f556f49c..07af75661e9c5a50e23f7ce124686e16b0b53987 100644 (file)
@@ -379,7 +379,7 @@ namespace System
             return path;
         }
 
-        // Seperate type so a .cctor is not created for Enviroment which then would be triggered during startup
+        // Separate type so a .cctor is not created for Environment which then would be triggered during startup
         private static class WindowsVersion
         {
             // Cache the value in static readonly that can be optimized out by the JIT
index a67fa5cca0be58d9332a4e247962bbd55ebc4008..a4fe66a66d93a493314e80645ebc09344fd09e45 100644 (file)
@@ -5379,7 +5379,7 @@ new DS[] { DS.ERROR,  DS.TX_NNN,  DS.TX_NNN,  DS.TX_NNN,  DS.ERROR,   DS.ERROR,
                     {
                         tokenType = tempType;
                         tokenValue = tempValue;
-                        // This is a token, so the Index has been advanced propertly in DTFI.Tokenizer().
+                        // This is a token, so the Index has been advanced properly in DTFI.Tokenizer().
                     }
                     else
                     {
index f7064b15ad6d66116b7ceafee8f8ea4b6855b3e3..9edb16152bf62f5ce50f2c62e9da00d9b1c98687 100644 (file)
@@ -724,7 +724,7 @@ namespace System.Globalization
                         else if (!IsWordSeparator(charType))
                         {
                             // This category is considered to be part of the word.
-                            // This is any category that is marked as false in wordSeprator array.
+                            // This is any category that is marked as false in wordSeparator array.
                             i += charLen;
                         }
                         else
@@ -852,7 +852,7 @@ namespace System.Globalization
 
         // Used in ToTitleCase():
         // When we find a starting letter, the following array decides if a category should be
-        // considered as word seprator or not.
+        // considered as word separator or not.
         private const int c_wordSeparatorMask =
             /* false */ (0 <<  0) | // UppercaseLetter = 0,
             /* false */ (0 <<  1) | // LowercaseLetter = 1,
index d3a8bab317eecf345e53229501d78adddd8f4c40..bc9f9c3f67463480bdc929c88345aaefd00fdc79 100644 (file)
@@ -132,7 +132,7 @@ namespace System.IO
         {
             // This was probably meant to call _unmanagedStream.SetLength(value), but it was forgotten in V.4.0.
             // Now this results in a call to the base which touches the underlying array which is never actually used.
-            // We cannot fix it due to compat now, but we should fix this at the next SxS release oportunity.
+            // We cannot fix it due to compat now, but we should fix this at the next SxS release opportunity.
             base.SetLength(value);
         }
 
index c59ce522ea8722a6a9d8af34849b201153d15dfe..30c6ed4a4a49681e95db7161f135ba5bf24f7648 100644 (file)
@@ -17,7 +17,7 @@ namespace System.Reflection
         NestedFamANDAssem = 0x00000006,     // Class is nested with family and assembly visibility.
         NestedFamORAssem = 0x00000007,     // Class is nested with family or assembly visibility.
 
-        // Use this mask to retrieve class layout informaiton
+        // Use this mask to retrieve class layout information
         // 0 is AutoLayout, 0x2 is SequentialLayout, 4 is ExplicitLayout
         LayoutMask = 0x00000018,
         AutoLayout = 0x00000000,     // Class fields are auto-laid out
index 431a8b8c67910d9d9ee4a342f74727dc79d9094a..c0c2bf3e0c039db167e3411468129bb81bd9bb03 100644 (file)
@@ -315,7 +315,7 @@ namespace System.Runtime.InteropServices
         /// If unable to get the <typeparamref name="TManager"/> type, returns false.
         /// </summary>
         /// <typeparam name="T">The element type of the <paramref name="memory" />.</typeparam>
-        /// <typeparam name="TManager">The type of <see cref="MemoryManager{T}"/> to try and retrive.</typeparam>
+        /// <typeparam name="TManager">The type of <see cref="MemoryManager{T}"/> to try and retrieve.</typeparam>
         /// <param name="memory">The memory to get the manager for.</param>
         /// <param name="manager">The returned manager of the <see cref="ReadOnlyMemory{T}"/>.</param>
         /// <returns>A <see cref="bool"/> indicating if it was successful.</returns>
@@ -334,7 +334,7 @@ namespace System.Runtime.InteropServices
         /// If unable to get the <typeparamref name="TManager"/> type, returns false.
         /// </summary>
         /// <typeparam name="T">The element type of the <paramref name="memory" />.</typeparam>
-        /// <typeparam name="TManager">The type of <see cref="MemoryManager{T}"/> to try and retrive.</typeparam>
+        /// <typeparam name="TManager">The type of <see cref="MemoryManager{T}"/> to try and retrieve.</typeparam>
         /// <param name="memory">The memory to get the manager for.</param>
         /// <param name="manager">The returned manager of the <see cref="ReadOnlyMemory{T}"/>.</param>
         /// <param name="start">The offset from the start of the <paramref name="manager" /> that the <paramref name="memory" /> represents.</param>
index 28d70524c2b430c054b16e1d6792b4ad7564e5d3..ba82f7237e518ba54616107d05333a1dee0c67a7 100644 (file)
@@ -68,7 +68,7 @@ namespace System.Threading
             if (processorCount > 1 && (spinIndex < sleep0Threshold || (spinIndex - sleep0Threshold) % 2 != 0))
             {
                 // Cap the maximum spin count to a value such that many thousands of CPU cycles would not be wasted doing
-                // the equivalent of YieldProcessor(), as that that point SwitchToThread/Sleep(0) are more likely to be able to
+                // the equivalent of YieldProcessor(), as at that point SwitchToThread/Sleep(0) are more likely to be able to
                 // allow other useful work to run. Long YieldProcessor() loops can help to reduce contention, but Sleep(1) is
                 // usually better for that.
                 int n = Thread.OptimalMaxSpinWaitsPerSpinIteration;
index ad283039b324b2a8e69cf738a434fd94b0535beb..fefc3e64969b5d0c0ceb53aad43557c4d96ed14e 100644 (file)
@@ -759,7 +759,7 @@ namespace System
                     throw new InvalidOperationException(SR.net_uri_NotAbsolute);
                 }
 
-                // Note: Compatibilty with V1 that does not report user info
+                // Note: Compatibility with V1 that does not report user info
                 return GetParts(UriComponents.Host | UriComponents.Port, UriFormat.UriEscaped);
             }
         }
index 32be21bdf918ebabf556f29a6d99519ccdcb5aad..0635b79d2b49a7f5ac5220cdd7f8abe04b60a9a3 100644 (file)
@@ -117,13 +117,13 @@ namespace System.PrivateUri.Tests
         }
 
         [Fact]
-        public void UriMailTo_TwoSemiColonSepratedAddresses_Success()
+        public void UriMailTo_TwoSemiColonSeparatedAddresses_Success()
         {
             Assert.ThrowsAny<FormatException>(() => new Uri("mailto:User@Host;User@Host"));
         }
 
         [Fact]
-        public void UriMailTo_TwoCommaSepratedAddresses_Success()
+        public void UriMailTo_TwoCommaSeparatedAddresses_Success()
         {
             Assert.ThrowsAny<FormatException>(() => new Uri("mailto:User@Host,User@Host"));
         }
index 623fd2ad6d07e53b39e0fa96695a1344a2090065..e4c75f5e5faac5c088bff7268b34ed32faeda171 100644 (file)
@@ -30,7 +30,7 @@ namespace CoreXml.Test.XLinq
         public static XmlSchemaSet schemaSet;
         public static string xmlString;
         public static XDocument xmlDocument;
-        public static bool validationSucceded;
+        public static bool validationSucceeded;
 
         // initialize values for tests
         public SchemaExtensionsTests()
@@ -72,7 +72,7 @@ namespace CoreXml.Test.XLinq
                      <body>Don't forget to call me!</body>
                       </note>";
             xmlDocument = XDocument.Load(new StringReader(xmlString));
-            validationSucceded = false;
+            validationSucceeded = false;
 
             /*
              * Use this method to load the above data from disk
@@ -88,17 +88,17 @@ namespace CoreXml.Test.XLinq
         // this gets called when a validation error occurs
         private void TestValidationHandler(object sender, ValidationEventArgs e)
         {
-            validationSucceded = false;
+            validationSucceeded = false;
         }
 
         // test succesful validation
         [Fact]
         public void XDocumentSuccessValidate()
         {
-            validationSucceded = true;
+            validationSucceeded = true;
             ExtensionsClass.Validate(xmlDocument, schemaSet,
                 new ValidationEventHandler(TestValidationHandler));
-            Assert.True(validationSucceded);
+            Assert.True(validationSucceeded);
         }
 
         // test failed validation
@@ -112,10 +112,10 @@ namespace CoreXml.Test.XLinq
             var newElement = new XElement(elementName, elementValue);
             xmlDocument.Root.Add(newElement);
 
-            validationSucceded = true;
+            validationSucceeded = true;
             ExtensionsClass.Validate(xmlDocument, schemaSet,
                 new ValidationEventHandler(TestValidationHandler));
-            Assert.False(validationSucceded);
+            Assert.False(validationSucceeded);
         }
 
         /*
@@ -160,10 +160,10 @@ namespace CoreXml.Test.XLinq
             }
 
             // populate XML with PSVI
-            validationSucceded = true;
+            validationSucceeded = true;
             ExtensionsClass.Validate(xmlDocument, schemaSet,
                 new ValidationEventHandler(TestValidationHandler), true);
-            Assert.True(validationSucceded);
+            Assert.True(validationSucceeded);
 
             // no. of elements after validation
             elements = xmlDocument.Elements();
@@ -211,10 +211,10 @@ namespace CoreXml.Test.XLinq
             }
 
             // don't populate XML with PSVI
-            validationSucceded = true;
+            validationSucceeded = true;
             ExtensionsClass.Validate(xmlDocument, schemaSet,
                 new ValidationEventHandler(TestValidationHandler), false);
-            Assert.True(validationSucceded);
+            Assert.True(validationSucceeded);
 
             // no. of elements after validation
             elements = xmlDocument.Elements();
@@ -246,17 +246,17 @@ namespace CoreXml.Test.XLinq
             object attributeValue = "2010-05-27";
 
             // validate the entire document
-            validationSucceded = true;
+            validationSucceeded = true;
             ExtensionsClass.Validate(xmlDocument, schemaSet,
                 new ValidationEventHandler(TestValidationHandler), true);
-            Assert.True(validationSucceded);
+            Assert.True(validationSucceeded);
 
             // change and re-validate attribute value
             XAttribute date = xmlDocument.Element(elementName).Attribute(attributeName);
             date.SetValue(attributeValue);
             ExtensionsClass.Validate(date, date.GetSchemaInfo().SchemaAttribute,schemaSet,
                 new ValidationEventHandler(TestValidationHandler));
-            Assert.True(validationSucceded);
+            Assert.True(validationSucceeded);
         }
 
         // attribute validation fails after change
@@ -268,17 +268,17 @@ namespace CoreXml.Test.XLinq
             object attributeValue = "2010-12-32";
 
             // validate the entire document
-            validationSucceded = true;
+            validationSucceeded = true;
             ExtensionsClass.Validate(xmlDocument, schemaSet,
                 new ValidationEventHandler(TestValidationHandler),true);
-            Assert.True(validationSucceded);
+            Assert.True(validationSucceeded);
 
             // change and re-validate attribute value
             XAttribute date = xmlDocument.Element(elementName).Attribute(attributeName);
             date.SetValue(attributeValue);
             ExtensionsClass.Validate(date, date.GetSchemaInfo().SchemaAttribute, schemaSet,
                 new ValidationEventHandler(TestValidationHandler));
-            Assert.False(validationSucceded);
+            Assert.False(validationSucceeded);
         }
 
         /*
@@ -293,10 +293,10 @@ namespace CoreXml.Test.XLinq
             object attributeValue =  "2010-12-32";
 
             // validate the entire document
-            validationSucceded = true;
+            validationSucceeded = true;
             ExtensionsClass.Validate(xmlDocument, schemaSet,
                 new ValidationEventHandler(TestValidationHandler),true);
-            Assert.True(validationSucceded);
+            Assert.True(validationSucceeded);
 
             // change and re-validate attribute value
             XAttribute date = xmlDocument.Element(elementName).Attribute(attributeName);
@@ -313,10 +313,10 @@ namespace CoreXml.Test.XLinq
             object childElementValue = "Please call me!";
 
             // validate the entire document
-            validationSucceded = true;
+            validationSucceeded = true;
             ExtensionsClass.Validate(xmlDocument, schemaSet,
                 new ValidationEventHandler(TestValidationHandler), true);
-            Assert.True(validationSucceded);
+            Assert.True(validationSucceeded);
 
             // alter element
             XElement root = xmlDocument.Element(parentElementName);
@@ -324,7 +324,7 @@ namespace CoreXml.Test.XLinq
 
             ExtensionsClass.Validate(root, root.GetSchemaInfo().SchemaElement, schemaSet,
                 new ValidationEventHandler(TestValidationHandler));
-            Assert.True(validationSucceded);
+            Assert.True(validationSucceeded);
         }
 
         // element validation fails after change
@@ -336,10 +336,10 @@ namespace CoreXml.Test.XLinq
             object childElementValue = "Don't forget to call me! Please!";
 
             // validate the entire document
-            validationSucceded = true;
+            validationSucceeded = true;
             ExtensionsClass.Validate(xmlDocument, schemaSet,
                 new ValidationEventHandler(TestValidationHandler), true);
-            Assert.True(validationSucceded);
+            Assert.True(validationSucceeded);
 
             // alter element
             XElement root = xmlDocument.Element(parentElementName);
@@ -347,7 +347,7 @@ namespace CoreXml.Test.XLinq
 
             ExtensionsClass.Validate(root, root.GetSchemaInfo().SchemaElement, schemaSet,
                 new ValidationEventHandler(TestValidationHandler));
-            Assert.False(validationSucceded);
+            Assert.False(validationSucceeded);
 
         }
 
@@ -363,10 +363,10 @@ namespace CoreXml.Test.XLinq
             object childElementValue = "Don't forget to call me! Please!";
 
             // validate the entire document
-            validationSucceded = true;
+            validationSucceeded = true;
             ExtensionsClass.Validate(xmlDocument, schemaSet,
                 new ValidationEventHandler(TestValidationHandler), true);
-            Assert.True(validationSucceded);
+            Assert.True(validationSucceeded);
 
             // alter element
             XElement root = xmlDocument.Element(parentElementName);
@@ -383,16 +383,16 @@ namespace CoreXml.Test.XLinq
             string attributeName = "date";
 
             // validate the entire document
-            validationSucceded = true;
+            validationSucceeded = true;
             ExtensionsClass.Validate(xmlDocument, schemaSet,
                 new ValidationEventHandler(TestValidationHandler), true);
-            Assert.True(validationSucceded);
+            Assert.True(validationSucceeded);
 
             // validate attribute
             XAttribute date = xmlDocument.Element(elementName).Attribute(attributeName);
             ExtensionsClass.Validate(date, date.GetSchemaInfo().SchemaAttribute, schemaSet,
                 new ValidationEventHandler(TestValidationHandler));
-            Assert.True(validationSucceded);
+            Assert.True(validationSucceeded);
 
             IXmlSchemaInfo schemaInfo =  ExtensionsClass.GetSchemaInfo(date);
             Assert.NotNull(schemaInfo);
@@ -405,16 +405,16 @@ namespace CoreXml.Test.XLinq
             string elementName = "body";
 
             // validate the entire document
-            validationSucceded = true;
+            validationSucceeded = true;
             ExtensionsClass.Validate(xmlDocument, schemaSet,
                 new ValidationEventHandler(TestValidationHandler), true);
-            Assert.True(validationSucceded);
+            Assert.True(validationSucceeded);
 
             // validate element
             XElement body = xmlDocument.Root.Element(elementName);
             ExtensionsClass.Validate(body, body.GetSchemaInfo().SchemaElement, schemaSet,
                 new ValidationEventHandler(TestValidationHandler));
-            Assert.True(validationSucceded);
+            Assert.True(validationSucceeded);
 
             IXmlSchemaInfo schemaInfo = ExtensionsClass.GetSchemaInfo(body);
             Assert.NotNull(schemaInfo);
index 1818eeaa973fe6c4aa2e164a688aac757b26252b..02c857b30f66cf542fa8f6d7fd0b903cb610fc27 100644 (file)
@@ -34,7 +34,7 @@ namespace Microsoft.Test.ModuleCore
         public class Tokens
         {
             public string Equal = "=";
-            public string Seperator = ";";
+            public string Separator = ";";
             public string SingleQuote = "'";
             public string DoubleQuote = "\"";
         }
@@ -71,7 +71,7 @@ namespace Microsoft.Test.ModuleCore
                             break;
 
                         case PARSE.Keyword:
-                            if (tokens.Seperator.IndexOf(ch) >= 0)
+                            if (tokens.Separator.IndexOf(ch) >= 0)
                             {
                                 state = PARSE.Initial;
                             }
@@ -98,7 +98,7 @@ namespace Microsoft.Test.ModuleCore
                             {
                                 state = PARSE.DoubleBegin;
                             }
-                            else if (tokens.Seperator.IndexOf(ch) >= 0)
+                            else if (tokens.Separator.IndexOf(ch) >= 0)
                             {
                                 keywords.Update(key, string.Empty);
                                 state = PARSE.Initial;
@@ -111,7 +111,7 @@ namespace Microsoft.Test.ModuleCore
                             break;
 
                         case PARSE.Value:
-                            if (tokens.Seperator.IndexOf(ch) >= 0)
+                            if (tokens.Separator.IndexOf(ch) >= 0)
                             {
                                 keywords.Update(key, (builder.ToString()).Trim());
                                 state = PARSE.Initial;
@@ -165,7 +165,7 @@ namespace Microsoft.Test.ModuleCore
                             break;
 
                         case PARSE.End:
-                            if (tokens.Seperator.IndexOf(ch) >= 0)
+                            if (tokens.Separator.IndexOf(ch) >= 0)
                             {
                                 state = PARSE.Initial;
                             }
index cb377772a9ed332c48be2d9e31ccc17880066021..51bdf4bf8f835f67ae456f6e20b7c1631049cf46 100644 (file)
@@ -34,7 +34,7 @@ namespace Microsoft.Test.ModuleCore
                     //CommandLine Options
                     KeywordParser.Tokens tokens = new KeywordParser.Tokens();
                     tokens.Equal = " ";
-                    tokens.Seperator = "/";
+                    tokens.Separator = "/";
                     Dictionary<string, string> options = KeywordParser.ParseKeywords(commandline, tokens);
                     foreach (string key in options.Keys)
                         s_pproperties["CommandLine/" + key] = options[key];
@@ -66,7 +66,7 @@ namespace Microsoft.Test.ModuleCore
                         //CommandLine Options
                         KeywordParser.Tokens tokens = new KeywordParser.Tokens();
                         tokens.Equal = " ";
-                        tokens.Seperator = "/";
+                        tokens.Separator = "/";
                         Dictionary<string, string> options = KeywordParser.ParseKeywords(commandLine, tokens);
                         foreach (string key in options.Keys)
                             TestInput.Properties["CommandLine/" + key] = options[key];
index 95a5930371055fe4f46fbb892a75f45f0e098756..fc7812a4ded4ad720574314c61706dfdef4bea6a 100644 (file)
@@ -579,7 +579,7 @@ namespace CoreXml.Test.XLinq
                     this.AddChild(new TestVariation(writeValue_13) { Attribute = new VariationAttribute("Write multiple atomic values inside element, separate by WriteWhitespace(' ')") { Id = 13, Priority = 1 } });
                     this.AddChild(new TestVariation(writeValue_14) { Attribute = new VariationAttribute("Write multiple atomic values inside element, separate by WriteString(' ')") { Id = 14, Priority = 1 } });
                     this.AddChild(new TestVariation(writeValue_15) { Attribute = new VariationAttribute("Write multiple atomic values inside attribute, separate by WriteWhitespace(' ')") { Id = 15, Priority = 1 } });
-                    this.AddChild(new TestVariation(writeValue_16) { Attribute = new VariationAttribute("Write multiple atomic values inside attribute, seperate by WriteString(' ')") { Id = 16, Priority = 1 } });
+                    this.AddChild(new TestVariation(writeValue_16) { Attribute = new VariationAttribute("Write multiple atomic values inside attribute, separate by WriteString(' ')") { Id = 16, Priority = 1 } });
                     this.AddChild(new TestVariation(writeValue_17) { Attribute = new VariationAttribute("WriteValue(long)") { Id = 17, Priority = 1 } });
                 }
             }
index 74d4c175441130b80217ea7fb7625b0493d728d4..4029b82f49b04b2a87b26cde39c551769999cc76 100644 (file)
@@ -94,9 +94,9 @@ namespace CoreXml.Test.XLinq
                 if (originalReader.NodeType == XmlNodeType.Element)
                 {
                     // read all r1 attributes
-                    var origAttrs = MoveAtrributeEnumerator(originalReader).ToArray();
+                    var origAttrs = MoveAttributeEnumerator(originalReader).ToArray();
                     // read all r2 attributes
-                    var filteredAttrs = MoveAtrributeEnumerator(filteredReader).ToArray();
+                    var filteredAttrs = MoveAttributeEnumerator(filteredReader).ToArray();
 
                     // Verify HasAttributes consistency
                     TestLog.Compare(filteredAttrs.Any(), filteredReader.HasAttributes, "has attributes");
@@ -241,7 +241,7 @@ namespace CoreXml.Test.XLinq
             }
         }
 
-        private static IEnumerable<string[]> IndexedAtrributeEnumerator(XmlReader r, bool moveToElement)
+        private static IEnumerable<string[]> IndexedAttributeEnumerator(XmlReader r, bool moveToElement)
         {
             TestLog.Compare(r.NodeType, XmlNodeType.Element, "Assert for enumerator");  // assert
             int aCount = r.AttributeCount;
@@ -254,7 +254,7 @@ namespace CoreXml.Test.XLinq
             r.MoveToElement();
         }
 
-        private static IEnumerable<string[]> MoveAtrributeEnumerator(XmlReader r)
+        private static IEnumerable<string[]> MoveAttributeEnumerator(XmlReader r)
         {
             TestLog.Compare(r.NodeType, XmlNodeType.Element, "Assert for enumerator");  // assert
             if (r.MoveToFirstAttribute())
index f9f838382dcbd4fd55b0be8219b0058746b67db1..57974af51a66569ccaae8952806dc0d0854cc389 100644 (file)
@@ -1,17 +1,17 @@
 ï»¿<?xml version="1.0" encoding="utf-8"?>
 <root>
-  <!-- 
-    Microsoft ResX Schema 
-    
+  <!--
+    Microsoft ResX Schema
+
     Version 2.0
-    
-    The primary goals of this format is to allow a simple XML format 
-    that is mostly human readable. The generation and parsing of the 
-    various data types are done through the TypeConverter classes 
+
+    The primary goals of this format is to allow a simple XML format
+    that is mostly human readable. The generation and parsing of the
+    various data types are done through the TypeConverter classes
     associated with the data types.
-    
+
     Example:
-    
+
     ... ado.net/XML headers & schema ...
     <resheader name="resmimetype">text/microsoft-resx</resheader>
     <resheader name="version">2.0</resheader>
         <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
         <comment>This is a comment</comment>
     </data>
-                
-    There are any number of "resheader" rows that contain simple 
+
+    There are any number of "resheader" rows that contain simple
     name/value pairs.
-    
-    Each data row contains a name, and value. The row also contains a 
-    type or mimetype. Type corresponds to a .NET class that support 
-    text/value conversion through the TypeConverter architecture. 
-    Classes that don't support this are serialized and stored with the 
+
+    Each data row contains a name, and value. The row also contains a
+    type or mimetype. Type corresponds to a .NET class that support
+    text/value conversion through the TypeConverter architecture.
+    Classes that don't support this are serialized and stored with the
     mimetype set.
-    
-    The mimetype is used for serialized objects, and tells the 
-    ResXResourceReader how to depersist the object. This is currently not 
+
+    The mimetype is used for serialized objects, and tells the
+    ResXResourceReader how to depersist the object. This is currently not
     extensible. For a given mimetype the value must be set accordingly:
-    
-    Note - application/x-microsoft.net.object.binary.base64 is the format 
-    that the ResXResourceWriter will generate, however the reader can 
+
+    Note - application/x-microsoft.net.object.binary.base64 is the format
+    that the ResXResourceWriter will generate, however the reader can
     read any of the formats listed below.
-    
+
     mimetype: application/x-microsoft.net.object.binary.base64
-    value   : The object must be serialized with 
+    value   : The object must be serialized with
             : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
             : and then encoded with base64 encoding.
-    
+
     mimetype: application/x-microsoft.net.object.soap.base64
-    value   : The object must be serialized with 
+    value   : The object must be serialized with
             : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
             : and then encoded with base64 encoding.
 
     mimetype: application/x-microsoft.net.object.bytearray.base64
-    value   : The object must be serialized into a byte array 
+    value   : The object must be serialized into a byte array
             : using a System.ComponentModel.TypeConverter
             : and then encoded with base64 encoding.
     -->
   <data name="Xml_NoDTDPresent" xml:space="preserve">
     <value>No DTD found.</value>
   </data>
-  <data name="Xml_MultipleValidaitonTypes" xml:space="preserve">
+  <data name="Xml_MultipleValidationTypes" xml:space="preserve">
     <value>Unsupported combination of validation types.</value>
   </data>
   <data name="Xml_NoValidation" xml:space="preserve">
@@ -3401,7 +3401,7 @@ building and deploying the assemblies with the application.
 Usage: dotnet {0} [--assembly &lt;assembly file path&gt;] [--type &lt;type name&gt;]</value>
   </data>
   <data name="HelpDevOptions" xml:space="preserve">
-    <value>  
+    <value>
   Developer options:</value>
   </data>
   <data name="HelpAssembly" xml:space="preserve">
@@ -3420,7 +3420,7 @@ Usage: dotnet {0} [--assembly &lt;assembly file path&gt;] [--type &lt;type name&
     <value>     {0}|{1}        Output directory name (default: target assembly location).</value>
   </data>
   <data name="HelpMiscOptions" xml:space="preserve">
-    <value>  
+    <value>
   Miscellaneous options:</value>
   </data>
   <data name="HelpHelp" xml:space="preserve">
index 6c12e3a0586b837466de9de3139cb92d82ac5a59..1c34c045b2bf90039559f673f604e950f989dd4a 100644 (file)
@@ -3679,7 +3679,7 @@ namespace System.Xml
 
             _ps.charPos += 5;
 
-            // parsing of text declarations cannot change global stringBuidler or curNode as we may be in the middle of a text node
+            // parsing of text declarations cannot change global stringBuilder or curNode as we may be in the middle of a text node
             Debug.Assert(_stringBuilder.Length == 0 || isTextDecl);
             StringBuilder sb = isTextDecl ? new StringBuilder() : _stringBuilder;
 
index dc3e99fd89de9238e84cf83077411aa63066cd48..a017a26ed71a8a1437c55b342d794b016f01d9a4 100644 (file)
@@ -1237,7 +1237,7 @@ namespace System.Xml
             }
             _ps.charPos += 5;
 
-            // parsing of text declarations cannot change global stringBuidler or curNode as we may be in the middle of a text node
+            // parsing of text declarations cannot change global stringBuilder or curNode as we may be in the middle of a text node
             Debug.Assert(_stringBuilder.Length == 0 || isTextDecl);
             StringBuilder sb = isTextDecl ? new StringBuilder() : _stringBuilder;
 
index 65acfb5264be00b5fb05ed35ceabfed01fd213e4..a523db7ee2704dc3799fea8c6e89dc6ee3005deb 100644 (file)
@@ -51,8 +51,8 @@ namespace System.Xml.Schema
             if (depth == this.curDepth - 1)
             {
                 // really need to move the current node pointer to parent
-                // what i did here is for seperating the case of IsDss or only IsChild
-                // bcoz in the first case i need to expect "a" from random depth
+                // what i did here is for separating the case of IsDss or only IsChild
+                // because in the first case i need to expect "a" from random depth
                 // -1 means it doesn't expect some specific depth (referecing the dealing to -1 in movetochild method
                 // while in the second case i can't change the root depth which is 1.
                 if ((this.curNode.Input == parent.RootNode) && (parent.IsDss))
index 482b596d915dabe0fff33d912aa25ea8c15fd838..327f490d57f49cf41f61b59f43cf4c499a92bafb 100644 (file)
@@ -1729,7 +1729,7 @@ namespace System.Xml.Schema
 
                 if (complexType.Particle != null || complexType.Attributes != null)
                 {
-                    // this is illigal
+                    // this is illegal
                 }
                 if (complexType.ContentModel is XmlSchemaSimpleContent)
                 {
index 3dab0b2b2a91304e8e8adc5404ab19dfed99874a..e011edae37964b3060d3ea9ed6a955a225bbfa20 100644 (file)
@@ -1381,7 +1381,7 @@ namespace System.Xml.Schema
 
                 if (complexType.Particle != null || complexType.Attributes != null)
                 {
-                    // this is illigal
+                    // this is illegal
                 }
                 if (complexType.ContentModel is XmlSchemaSimpleContent)
                 {
index 9094f3939ebb7c993c6b553de3daf0f0976198df..7de4c7d56ef586e219370b786aed33b529b0a142 100644 (file)
@@ -599,7 +599,7 @@ namespace System.Xml.Schema
             {
                 CompileAttributeGroup(baseAttributeGroup);
                 CompileAttributeGroup(attributeGroup);
-                CheckAtrributeGroupRestriction(baseAttributeGroup, attributeGroup);
+                CheckAttributeGroupRestriction(baseAttributeGroup, attributeGroup);
             }
         }
 
@@ -2327,7 +2327,7 @@ namespace System.Xml.Schema
             }
         }
 
-        private void CheckAtrributeGroupRestriction(XmlSchemaAttributeGroup baseAttributeGroup, XmlSchemaAttributeGroup derivedAttributeGroup)
+        private void CheckAttributeGroupRestriction(XmlSchemaAttributeGroup baseAttributeGroup, XmlSchemaAttributeGroup derivedAttributeGroup)
         {
             XmlSchemaAnyAttribute? baseAnyAtt = baseAttributeGroup.AttributeWildcard;
             XmlSchemaAnyAttribute? derivedAnyAtt = derivedAttributeGroup.AttributeWildcard;
index 6c91f1f48dcb478bb2e2ddff3234ab709baf5032..092fd0c5eefe0385d5b771ac744c2bcea1957330 100644 (file)
@@ -392,7 +392,7 @@ namespace System.Xml.Schema
             {
                 if (schemaInfo.SchemaType != SchemaType.XDR)
                 {
-                    throw new XmlException(SR.Xml_MultipleValidaitonTypes, string.Empty, this.PositionInfo.LineNumber, this.PositionInfo.LinePosition);
+                    throw new XmlException(SR.Xml_MultipleValidationTypes, string.Empty, this.PositionInfo.LineNumber, this.PositionInfo.LinePosition);
                 }
 
                 this.schemaInfo.Add(schemaInfo, EventHandler);
index a37bc74bf47f00991219f94548c25c23dae5e7d3..a41ef94dd7d5db62f8944b0088841ff7487d37fc 100644 (file)
@@ -2185,7 +2185,7 @@ namespace System.Xml.Schema
             } // foreach constraint /constraintstruct
 
             // added on June 19, make connections between new keyref tables with key/unique tables in stack
-            // i can't put it in the above loop, coz there will be key on the same level
+            // i can't put it in the above loop, because there will be key on the same level
             for (int i = 0; i < _context.Constr.Length; ++i)
             {
                 if (_context.Constr[i].constraint.Role == CompiledIdentityConstraint.ConstraintRole.Keyref)
index 3ae730e42d5318b81d9d5fe10fa4d7e7d3acf871..4e33a421969910d430f836c512cc48bbbb2e85f0 100644 (file)
@@ -638,7 +638,7 @@ namespace System.Xml.Schema
             {
                 if (schemaInfo.SchemaType != SchemaType.XSD)
                 {
-                    throw new XmlException(SR.Xml_MultipleValidaitonTypes, string.Empty, this.PositionInfo.LineNumber, this.PositionInfo.LinePosition);
+                    throw new XmlException(SR.Xml_MultipleValidationTypes, string.Empty, this.PositionInfo.LineNumber, this.PositionInfo.LinePosition);
                 }
                 SchemaInfo.Add(schemaInfo, EventHandler);
                 return;
@@ -864,7 +864,7 @@ namespace System.Xml.Schema
             } // foreach constraint /constraintstruct
 
             // added on June 19, make connections between new keyref tables with key/unique tables in stack
-            // i can't put it in the above loop, coz there will be key on the same level
+            // i can't put it in the above loop, because there will be key on the same level
             for (int i = 0; i < context.Constr.Length; ++i)
             {
                 if (context.Constr[i].constraint.Role == CompiledIdentityConstraint.ConstraintRole.Keyref)
index 0d004975a39f67340996f86ab9738089ddf1038c..1c5c500088eb5819f4ec84c0f131c40557f9749d 100644 (file)
@@ -348,7 +348,7 @@ namespace System.Xml.Xsl.Xslt
         // 3. In context of global variable
         // We treating this methods differentely when they are called to create implicit arguments.
         // Implicite argument (position, last) are rare and lead to uneficiant code. So we treating them
-        // specialy to be able eliminate them later, wen we compiled everithing and can detect was they used or not.
+        // specially to be able eliminate them later, wen we compiled everithing and can detect was they used or not.
 
         // Returns context node
         private QilNode GetCurrentNode()
@@ -2562,7 +2562,7 @@ namespace System.Xml.Xsl.Xslt
 
         // Fills invokeArgs with values from actualArgs in order given by formalArgs
         // Returns true if formalArgs maps 1:1 with actual args.
-        // Formaly this is n*n algorithm. We can optimize it by calculationg "signature"
+        // Formally this is n*n algorithm. We can optimize it by calculationg "signature"
         // of the function as sum of all hashes of its args names.
         private static bool FillupInvokeArgs(IList<QilNode> formalArgs, IList<XslNode> actualArgs, QilList invokeArgs)
         {
index 08ad280514f437115baa7d23e5071bfa82c6eaf8..82e95b719de6e76d04f1c8a4570c621eefa9facf 100644 (file)
@@ -104,7 +104,7 @@ namespace System.Xml.Xsl.XsltOld
             _variables[variable.Name!] = variable;
         }
 
-        internal int GetVeriablesCount()
+        internal int GetVariablesCount()
         {
             if (_variables == null)
             {
index f19259e508374bcc8ae7385e8b6ab2e29d485f4b..4ba7cf133088ecd4d735f93f57c6a4a578c5cdf0 100644 (file)
@@ -60,7 +60,7 @@ namespace System.Xml.Xsl.XsltOld
         private bool _firstLine = true;
         private bool _secondRoot;
 
-        // Cached Output propertes:
+        // Cached Output properties:
         private XsltOutput _output;
         private bool _isHtmlOutput;
         private bool _isXmlOutput;
index 0b536e51a9447bd6613f5be3edfa744f3a433324..9b170d6ec9f4889ef976bfbf0603ca3ec11ed53d 100644 (file)
@@ -1017,7 +1017,7 @@ namespace System.Reflection.Emit.Tests
         [Theory]
         [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)]
         [MemberData(nameof(NotSupportedPrimitives_TestData))]
-        [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "Coreclr fixed an issue where IntPtr/UIntPtr in propertValues causes a corrupt created binary.")]
+        [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "Coreclr fixed an issue where IntPtr/UIntPtr in propertyValues causes a corrupt created binary.")]
         public static void NotSupportedPrimitiveInPropertyValues_ThrowsArgumentException(object value)
         {
             ConstructorInfo con = typeof(TestAttribute).GetConstructor(new Type[0]);
index 1a005f42e1fca1739e9e01db7c2b2fd27e2a5a8a..43dcc00666a7fc773543de116f87034aca8dc0ac 100644 (file)
@@ -232,7 +232,7 @@ namespace System.Reflection.Emit.Tests
         [Theory]
         [InlineData(AssemblyBuilderAccess.Run)]
         [InlineData(AssemblyBuilderAccess.RunAndCollect)]
-        public void SetCustomAttribute_ConstructorBuidler_ByteArray(AssemblyBuilderAccess access)
+        public void SetCustomAttribute_ConstructorBuilder_ByteArray(AssemblyBuilderAccess access)
         {
             AssemblyBuilder assembly = Helpers.DynamicAssembly(access: access);
             ConstructorInfo constructor = typeof(BoolAllAttribute).GetConstructor(new Type[] { typeof(bool) });
@@ -243,14 +243,14 @@ namespace System.Reflection.Emit.Tests
         }
 
         [Fact]
-        public void SetCustomAttribute_ConstructorBuidler_ByteArray_NullConstructorBuilder_ThrowsArgumentNullException()
+        public void SetCustomAttribute_ConstructorBuildler_ByteArray_NullConstructorBuilder_ThrowsArgumentNullException()
         {
             AssemblyBuilder assembly = Helpers.DynamicAssembly();
             AssertExtensions.Throws<ArgumentNullException>("con", () => assembly.SetCustomAttribute(null, new byte[0]));
         }
 
         [Fact]
-        public void SetCustomAttribute_ConstructorBuidler_ByteArray_NullByteArray_ThrowsArgumentNullException()
+        public void SetCustomAttribute_ConstructorBuildler_ByteArray_NullByteArray_ThrowsArgumentNullException()
         {
             AssemblyBuilder assembly = Helpers.DynamicAssembly();
             ConstructorInfo constructor = typeof(IntAllAttribute).GetConstructor(new Type[] { typeof(int) });
@@ -398,12 +398,12 @@ namespace System.Reflection.Emit.Tests
 
            Assert.Throws<MethodAccessException>(() => d ());
        }
-       
+
        [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))]
        void Invoke_Private_SameAssembly_ThrowsMethodAccessException()
        {
            ModuleBuilder modb = Helpers.DynamicModule();
-           
+
            string calleeName = "PrivateMethod";
 
            TypeBuilder tbCalled = modb.DefineType ("CalledClass", TypeAttributes.Public);
index c23a93346ed79ca34c1006b3f5bf2280376ce342..ac375d87ad78b68c905a615272e57811afe582ec 100644 (file)
@@ -17,7 +17,7 @@ namespace System.Reflection.PortableExecutable.Tests
 
             using (var rsa = RSA.Create())
             {
-                rsa.ImportParameters(RSAParamatersFromBlob(privateKey));
+                rsa.ImportParameters(RSAParametersFromBlob(privateKey));
                 var signature = rsa.SignHash(hash, HashAlgorithmName.SHA1, RSASignaturePadding.Pkcs1);
                 Array.Reverse(signature);
                 return signature;
@@ -43,7 +43,7 @@ namespace System.Reflection.PortableExecutable.Tests
             }
         }
 
-        private static RSAParameters RSAParamatersFromBlob(byte[] blob)
+        private static RSAParameters RSAParametersFromBlob(byte[] blob)
         {
             RSAParameters key;
 
index 9558e92d656d60e17017a8af50d644090a483131..23341e6709d27732f2d88bfd57d5615314dff91e 100644 (file)
@@ -71,11 +71,11 @@ namespace System.Reflection.TypeLoading.Ecma
         public MethodSig<RoParameter> SpecializeMethodSig(IRoMethodBase roMethodBase)
         {
             MetadataReader reader = Reader;
-            MethodDefinition methodDefiniton = MethodDefinition;
-            MethodSignature<RoType> sig = methodDefiniton.DecodeSignature(_module, roMethodBase.TypeContext);
+            MethodDefinition methodDefinition = MethodDefinition;
+            MethodSignature<RoType> sig = methodDefinition.DecodeSignature(_module, roMethodBase.TypeContext);
             int numParameters = sig.RequiredParameterCount;
             MethodSig<RoParameter> methodSig = new MethodSig<RoParameter>(numParameters);
-            foreach (ParameterHandle ph in methodDefiniton.GetParameters())
+            foreach (ParameterHandle ph in methodDefinition.GetParameters())
             {
                 Parameter p = ph.GetParameter(reader);
                 int position = p.SequenceNumber - 1;
index 7d7c45c55e953259d2734d61f950f00adc1b6f35..35949f76935fd5c8639e0d4b4162101b9d456f96 100644 (file)
@@ -1729,7 +1729,7 @@ namespace System.Numerics.Tests
             return ret;
         }
 
-        private static string GenerateGroups(int[] sizes, string seperator, Random random)
+        private static string GenerateGroups(int[] sizes, string separator, Random random)
         {
             List<int> total_sizes = new List<int>();
             int total;
@@ -1780,14 +1780,14 @@ namespace System.Numerics.Tests
                 num_digits -= group_size;
                 if (num_digits > 0)
                 {
-                    digits += seperator;
+                    digits += separator;
                 }
             }
 
             return digits;
         }
 
-        private static string GroupFormatDigits(string input, string seperator, int[] sizes, string point, int places)
+        private static string GroupFormatDigits(string input, string separator, int[] sizes, string point, int places)
         {
             string output = string.Empty;
             int currentspot = input.Length - 1;
@@ -1813,7 +1813,7 @@ namespace System.Numerics.Tests
                     }
                     else
                     {
-                        output = seperator + ZeroString(size) + output;
+                        output = separator + ZeroString(size) + output;
                         currentspot -= size;
                     }
                     if (currentsize < sizes.Length - 1)
@@ -1840,7 +1840,7 @@ namespace System.Numerics.Tests
                 }
                 else
                 {
-                    output = seperator + input.Substring(currentspot - size + 1, size) + output;
+                    output = separator + input.Substring(currentspot - size + 1, size) + output;
                     currentspot -= size;
                 }
                 if (currentsize < sizes.Length - 1)
index 0aa38f0824da16453f09101d71d1a502b6b8fc2d..785dc209b24e647afea9f24e87516d538a84ddc0 100644 (file)
@@ -253,12 +253,12 @@ namespace System.Numerics.Tests
             for (int i = 0; i < s_samples; i++)
             {
                 int[] sizes = null;
-                string seperator = null;
+                string separator = null;
                 string digits = null;
 
                 sizes = CultureInfo.CurrentCulture.NumberFormat.NumberGroupSizes;
-                seperator = CultureInfo.CurrentCulture.NumberFormat.NumberGroupSeparator;
-                digits = GenerateGroups(sizes, seperator, random);
+                separator = CultureInfo.CurrentCulture.NumberFormat.NumberGroupSeparator;
+                digits = GenerateGroups(sizes, separator, random);
                 if (NoGrouping(sizes))
                 {
                     VerifyParseToString(digits);
@@ -382,12 +382,12 @@ namespace System.Numerics.Tests
             for (int i = 0; i < s_samples; i++)
             {
                 int[] sizes = null;
-                string seperator = null;
+                string separator = null;
                 string digits = null;
 
                 sizes = CultureInfo.CurrentCulture.NumberFormat.NumberGroupSizes;
-                seperator = CultureInfo.CurrentCulture.NumberFormat.NumberGroupSeparator;
-                digits = GenerateGroups(sizes, seperator, random);
+                separator = CultureInfo.CurrentCulture.NumberFormat.NumberGroupSeparator;
+                digits = GenerateGroups(sizes, separator, random);
                 VerifyParseToString(digits, ns, NoGrouping(sizes) || ((ns & NumberStyles.AllowThousands) != 0));
             }
 
@@ -767,7 +767,7 @@ namespace System.Numerics.Tests
             return y2;
         }
 
-        private static string GenerateGroups(int[] sizes, string seperator, Random random)
+        private static string GenerateGroups(int[] sizes, string separator, Random random)
         {
             List<int> total_sizes = new List<int>();
             int total;
@@ -823,7 +823,7 @@ namespace System.Numerics.Tests
                 num_digits -= group_size;
                 if (num_digits > 0)
                 {
-                    digits += seperator;
+                    digits += separator;
                 }
             }
 
index 7493bb07a979b941f91e6cba95d35eed5d504535..57825bdcc018806e7db87e6ab745f11538a688d2 100644 (file)
@@ -533,9 +533,9 @@ namespace SerializationTestTypes
             return Globals.DefaultNamespace + clrNs.Replace('.', '/');
         }
 
-        static string GetGlobalContractNamespace(string clrNs, ICustomAttributeProvider customAttribuetProvider)
+        static string GetGlobalContractNamespace(string clrNs, ICustomAttributeProvider customAttributeProvider)
         {
-            object[] nsAttributes = customAttribuetProvider.GetCustomAttributes(typeof(ContractNamespaceAttribute), false);
+            object[] nsAttributes = customAttributeProvider.GetCustomAttributes(typeof(ContractNamespaceAttribute), false);
             string dataContractNs = null;
             for (int i = 0; i < nsAttributes.Length; i++)
             {
index 56ae020b746fccb49f078aa45dc25af9069edbd7..5f75ab78519f23729e01571de1ce4e5cd0b00042 100644 (file)
@@ -115,7 +115,7 @@ namespace System.Security.Cryptography
         }
 
         /// <summary>
-        ///     Use the secret agreement as the HMAC key rather than supplying a seperate one
+        ///     Use the secret agreement as the HMAC key rather than supplying a separate one
         /// </summary>
         public bool UseSecretAgreementAsHmacKey
         {
index 04947f11aa09c8a207c94c6fce3f41a10ec2e570..1832e5c8ef651030da3bf34264fa0f4433b73134 100644 (file)
@@ -152,9 +152,9 @@ namespace System.Speech.Internal.GrammarBuilding
 
         internal void CreateChildrenElements(IElementFactory elementFactory, IRule parent, IdentifierCollection ruleIds)
         {
-            foreach (GrammarBuilderBase buider in Items)
+            foreach (GrammarBuilderBase builder in Items)
             {
-                IElement element = buider.CreateElement(elementFactory, parent, parent, ruleIds);
+                IElement element = builder.CreateElement(elementFactory, parent, parent, ruleIds);
                 if (element != null)
                 {
                     element.PostParse(parent);
@@ -165,9 +165,9 @@ namespace System.Speech.Internal.GrammarBuilding
 
         internal void CreateChildrenElements(IElementFactory elementFactory, IItem parent, IRule rule, IdentifierCollection ruleIds)
         {
-            foreach (GrammarBuilderBase buider in Items)
+            foreach (GrammarBuilderBase builder in Items)
             {
-                IElement element = buider.CreateElement(elementFactory, parent, rule, ruleIds);
+                IElement element = builder.CreateElement(elementFactory, parent, rule, ruleIds);
                 if (element != null)
                 {
                     element.PostParse(parent);
index 93ff7cea77f9a0f0bebedff3c5b40ac4b9ee9994..421b71e80f0494f9e360193cc9c8d600073a0ee1 100644 (file)
@@ -14,7 +14,7 @@ namespace System.Text.Json
         public const byte LineFeed = (byte)'\n';
         public const byte Tab = (byte)'\t';
         public const byte ListSeparator = (byte)',';
-        public const byte KeyValueSeperator = (byte)':';
+        public const byte KeyValueSeparator = (byte)':';
         public const byte Quote = (byte)'"';
         public const byte BackSlash = (byte)'\\';
         public const byte Slash = (byte)'/';
index d8f74ddc091306849834cb4b3fb9dfd7dff47ed0..c4cfe678a5c8e3854e4d57a179851302dfbfd7e6 100644 (file)
@@ -89,7 +89,7 @@ namespace System.Text.Json
             propertySection[0] = JsonConstants.Quote;
             utf8Value.CopyTo(propertySection.AsSpan(1, length));
             propertySection[++length] = JsonConstants.Quote;
-            propertySection[++length] = JsonConstants.KeyValueSeperator;
+            propertySection[++length] = JsonConstants.KeyValueSeparator;
 
             return propertySection;
         }
index efe4ab9dc9dbdc0dbfc6b8c9973afe5094055541..fffb8f29e4b77c939204d960ffe5636b2e77277c 100644 (file)
@@ -732,8 +732,8 @@ namespace System.Text.Json
                 first = _buffer[_consumed];
             }
 
-            // The next character must be a key / value seperator. Validate and skip.
-            if (first != JsonConstants.KeyValueSeperator)
+            // The next character must be a key / value separator. Validate and skip.
+            if (first != JsonConstants.KeyValueSeparator)
             {
                 ThrowHelper.ThrowJsonReaderException(ref this, ExceptionResource.ExpectedSeparatorAfterPropertyNameNotFound, first);
             }
index 543c9fa5beac2463db06086100f01861ae07351b..fb19d52032b21fccfc23954fe919e2c1c1873e04 100644 (file)
@@ -1250,8 +1250,8 @@ namespace System.Text.Json
                 first = _buffer[_consumed];
             }
 
-            // The next character must be a key / value seperator. Validate and skip.
-            if (first != JsonConstants.KeyValueSeperator)
+            // The next character must be a key / value separator. Validate and skip.
+            if (first != JsonConstants.KeyValueSeparator)
             {
                 ThrowHelper.ThrowJsonReaderException(ref this, ExceptionResource.ExpectedSeparatorAfterPropertyNameNotFound, first);
             }
index 4cc66797f65f26709627e6bcd8f50cfc534c6618..1c95db2f6cce3c649f421340bb8fa9f4f1de57d7 100644 (file)
@@ -234,7 +234,7 @@ namespace System.Text.Json
             TranscodeAndWrite(escapedPropertyName, output);
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
 
             output[BytesPending++] = JsonConstants.Quote;
 
@@ -270,7 +270,7 @@ namespace System.Text.Json
             BytesPending += escapedPropertyName.Length;
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
 
             output[BytesPending++] = JsonConstants.Quote;
 
@@ -319,7 +319,7 @@ namespace System.Text.Json
             TranscodeAndWrite(escapedPropertyName, output);
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
             output[BytesPending++] = JsonConstants.Space;
 
             output[BytesPending++] = JsonConstants.Quote;
@@ -370,7 +370,7 @@ namespace System.Text.Json
             BytesPending += escapedPropertyName.Length;
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
             output[BytesPending++] = JsonConstants.Space;
 
             output[BytesPending++] = JsonConstants.Quote;
index cdd3e8930b14fcb569c093d4e91a83a7e5c07701..55c079f008faa20a2593be26ceeee6a7577e4b18 100644 (file)
@@ -237,7 +237,7 @@ namespace System.Text.Json
             TranscodeAndWrite(escapedPropertyName, output);
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
 
             output[BytesPending++] = JsonConstants.Quote;
 
@@ -271,7 +271,7 @@ namespace System.Text.Json
             BytesPending += escapedPropertyName.Length;
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
 
             output[BytesPending++] = JsonConstants.Quote;
 
@@ -319,7 +319,7 @@ namespace System.Text.Json
             TranscodeAndWrite(escapedPropertyName, output);
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
             output[BytesPending++] = JsonConstants.Space;
 
             output[BytesPending++] = JsonConstants.Quote;
@@ -368,7 +368,7 @@ namespace System.Text.Json
             BytesPending += escapedPropertyName.Length;
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
             output[BytesPending++] = JsonConstants.Space;
 
             output[BytesPending++] = JsonConstants.Quote;
index 3251fa4e1c14b1520dce3484a47a125e63d90792..f25b3eae83336acdce2f2e2261598f94acda0ae1 100644 (file)
@@ -236,7 +236,7 @@ namespace System.Text.Json
             TranscodeAndWrite(escapedPropertyName, output);
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
 
             output[BytesPending++] = JsonConstants.Quote;
 
@@ -270,7 +270,7 @@ namespace System.Text.Json
             BytesPending += escapedPropertyName.Length;
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
 
             output[BytesPending++] = JsonConstants.Quote;
 
@@ -318,7 +318,7 @@ namespace System.Text.Json
             TranscodeAndWrite(escapedPropertyName, output);
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
             output[BytesPending++] = JsonConstants.Space;
 
             output[BytesPending++] = JsonConstants.Quote;
@@ -367,7 +367,7 @@ namespace System.Text.Json
             BytesPending += escapedPropertyName.Length;
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
             output[BytesPending++] = JsonConstants.Space;
 
             output[BytesPending++] = JsonConstants.Quote;
index f90ad0ab5abd694cf17ba603250b949955b0f4c5..933fcffc4fc1b1f5c8a0c5359415b79f40aba9c0 100644 (file)
@@ -236,7 +236,7 @@ namespace System.Text.Json
             TranscodeAndWrite(escapedPropertyName, output);
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
 
             bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten);
             Debug.Assert(result);
@@ -267,7 +267,7 @@ namespace System.Text.Json
             BytesPending += escapedPropertyName.Length;
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
 
             bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten);
             Debug.Assert(result);
@@ -312,7 +312,7 @@ namespace System.Text.Json
             TranscodeAndWrite(escapedPropertyName, output);
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
             output[BytesPending++] = JsonConstants.Space;
 
             bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten);
@@ -358,7 +358,7 @@ namespace System.Text.Json
             BytesPending += escapedPropertyName.Length;
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
             output[BytesPending++] = JsonConstants.Space;
 
             bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten);
index 71e0f57993674f249a961a4c7bf5b2b24153e647..73bcc75f72edeb76226854324071ff2c09d38429 100644 (file)
@@ -240,7 +240,7 @@ namespace System.Text.Json
             TranscodeAndWrite(escapedPropertyName, output);
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
 
             bool result = TryFormatDouble(value, output.Slice(BytesPending), out int bytesWritten);
             Debug.Assert(result);
@@ -271,7 +271,7 @@ namespace System.Text.Json
             BytesPending += escapedPropertyName.Length;
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
 
             bool result = TryFormatDouble(value, output.Slice(BytesPending), out int bytesWritten);
             Debug.Assert(result);
@@ -316,7 +316,7 @@ namespace System.Text.Json
             TranscodeAndWrite(escapedPropertyName, output);
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
             output[BytesPending++] = JsonConstants.Space;
 
             bool result = TryFormatDouble(value, output.Slice(BytesPending), out int bytesWritten);
@@ -362,7 +362,7 @@ namespace System.Text.Json
             BytesPending += escapedPropertyName.Length;
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
             output[BytesPending++] = JsonConstants.Space;
 
             bool result = TryFormatDouble(value, output.Slice(BytesPending), out int bytesWritten);
index b6b952daa835daf54372be4c30e71dd182a092d9..bb695740d290fa3c4de7766d2f321e109a4ef1cf 100644 (file)
@@ -240,7 +240,7 @@ namespace System.Text.Json
             TranscodeAndWrite(escapedPropertyName, output);
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
 
             bool result = TryFormatSingle(value, output.Slice(BytesPending), out int bytesWritten);
             Debug.Assert(result);
@@ -271,7 +271,7 @@ namespace System.Text.Json
             BytesPending += escapedPropertyName.Length;
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
 
             bool result = TryFormatSingle(value, output.Slice(BytesPending), out int bytesWritten);
             Debug.Assert(result);
@@ -316,7 +316,7 @@ namespace System.Text.Json
             TranscodeAndWrite(escapedPropertyName, output);
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
             output[BytesPending++] = JsonConstants.Space;
 
             bool result = TryFormatSingle(value, output.Slice(BytesPending), out int bytesWritten);
@@ -362,7 +362,7 @@ namespace System.Text.Json
             BytesPending += escapedPropertyName.Length;
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
             output[BytesPending++] = JsonConstants.Space;
 
             bool result = TryFormatSingle(value, output.Slice(BytesPending), out int bytesWritten);
index 9178873dd2fa0658c4133d54cf926c2b08303fc0..a0c5713374ca1b0d49c64c261adf2c31b139a728 100644 (file)
@@ -236,7 +236,7 @@ namespace System.Text.Json
             TranscodeAndWrite(escapedPropertyName, output);
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
 
             output[BytesPending++] = JsonConstants.Quote;
 
@@ -271,7 +271,7 @@ namespace System.Text.Json
             BytesPending += escapedPropertyName.Length;
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
 
             output[BytesPending++] = JsonConstants.Quote;
 
@@ -320,7 +320,7 @@ namespace System.Text.Json
             TranscodeAndWrite(escapedPropertyName, output);
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
             output[BytesPending++] = JsonConstants.Space;
 
             output[BytesPending++] = JsonConstants.Quote;
@@ -370,7 +370,7 @@ namespace System.Text.Json
             BytesPending += escapedPropertyName.Length;
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
             output[BytesPending++] = JsonConstants.Space;
 
             output[BytesPending++] = JsonConstants.Quote;
index 3ea7aeaa1aaed424c7df4c1b9d7e4a404d24d6b8..0c68ef88f8fb921d95b50525de75e1c9ffbde6b4 100644 (file)
@@ -82,7 +82,7 @@ namespace System.Text.Json
             BytesPending += escapedPropertyName.Length;
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
             output[BytesPending++] = token;
         }
 
@@ -125,7 +125,7 @@ namespace System.Text.Json
 
             output[BytesPending++] = JsonConstants.Quote;
 
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
             output[BytesPending++] = JsonConstants.Space;
             output[BytesPending++] = token;
         }
@@ -154,7 +154,7 @@ namespace System.Text.Json
             TranscodeAndWrite(escapedPropertyName, output);
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
             output[BytesPending++] = token;
         }
 
@@ -197,7 +197,7 @@ namespace System.Text.Json
 
             output[BytesPending++] = JsonConstants.Quote;
 
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
             output[BytesPending++] = JsonConstants.Space;
             output[BytesPending++] = token;
         }
index 7a68bc6512cfb7cfeeb7e40cf60f2be5af0595e4..e73131b7192f9317f42d9c1bebd13c31323d2ef0 100644 (file)
@@ -359,7 +359,7 @@ namespace System.Text.Json
             TranscodeAndWrite(escapedPropertyName, output);
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
 
             value.CopyTo(output.Slice(BytesPending));
             BytesPending += value.Length;
@@ -390,7 +390,7 @@ namespace System.Text.Json
             BytesPending += escapedPropertyName.Length;
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
 
             value.CopyTo(output.Slice(BytesPending));
             BytesPending += value.Length;
@@ -463,7 +463,7 @@ namespace System.Text.Json
             TranscodeAndWrite(escapedPropertyName, output);
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
             output[BytesPending++] = JsonConstants.Space;
 
             value.CopyTo(output.Slice(BytesPending));
@@ -509,7 +509,7 @@ namespace System.Text.Json
             BytesPending += escapedPropertyName.Length;
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
             output[BytesPending++] = JsonConstants.Space;
 
             value.CopyTo(output.Slice(BytesPending));
index b7dfaaa8411e79ca5070cd070323c0b3f083f931..10c390a98ffc435367e152cff6c893a86d729e16 100644 (file)
@@ -312,7 +312,7 @@ namespace System.Text.Json
             TranscodeAndWrite(escapedPropertyName, output);
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
 
             bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten);
             Debug.Assert(result);
@@ -343,7 +343,7 @@ namespace System.Text.Json
             BytesPending += escapedPropertyName.Length;
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
 
             bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten);
             Debug.Assert(result);
@@ -388,7 +388,7 @@ namespace System.Text.Json
             TranscodeAndWrite(escapedPropertyName, output);
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
             output[BytesPending++] = JsonConstants.Space;
 
             bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten);
@@ -434,7 +434,7 @@ namespace System.Text.Json
             BytesPending += escapedPropertyName.Length;
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
             output[BytesPending++] = JsonConstants.Space;
 
             bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten);
index 50b6fd38ef7c5328dead0e3750c5e50c97dad834..74eeb9eeed2925db12e1d92885a14e90ae8f81e0 100644 (file)
@@ -183,7 +183,7 @@ namespace System.Text.Json
             TranscodeAndWrite(escapedPropertyName, output);
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
         }
 
         private void WriteStringIndentedPropertyName(ReadOnlySpan<char> escapedPropertyName)
@@ -223,7 +223,7 @@ namespace System.Text.Json
             TranscodeAndWrite(escapedPropertyName, output);
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
             output[BytesPending++] = JsonConstants.Space;
         }
 
@@ -347,7 +347,7 @@ namespace System.Text.Json
             BytesPending += escapedPropertyName.Length;
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
         }
 
         // AggressiveInlining used since this is only called from one location.
@@ -416,7 +416,7 @@ namespace System.Text.Json
             BytesPending += escapedPropertyName.Length;
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
             output[BytesPending++] = JsonConstants.Space;
         }
 
@@ -1433,7 +1433,7 @@ namespace System.Text.Json
             TranscodeAndWrite(escapedPropertyName, output);
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
 
             output[BytesPending++] = JsonConstants.Quote;
 
@@ -1468,7 +1468,7 @@ namespace System.Text.Json
             BytesPending += escapedPropertyName.Length;
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
 
             output[BytesPending++] = JsonConstants.Quote;
 
@@ -1504,7 +1504,7 @@ namespace System.Text.Json
             TranscodeAndWrite(escapedPropertyName, output);
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
 
             output[BytesPending++] = JsonConstants.Quote;
 
@@ -1541,7 +1541,7 @@ namespace System.Text.Json
             BytesPending += escapedPropertyName.Length;
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
 
             output[BytesPending++] = JsonConstants.Quote;
 
@@ -1590,7 +1590,7 @@ namespace System.Text.Json
             TranscodeAndWrite(escapedPropertyName, output);
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
             output[BytesPending++] = JsonConstants.Space;
 
             output[BytesPending++] = JsonConstants.Quote;
@@ -1640,7 +1640,7 @@ namespace System.Text.Json
             BytesPending += escapedPropertyName.Length;
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
             output[BytesPending++] = JsonConstants.Space;
 
             output[BytesPending++] = JsonConstants.Quote;
@@ -1691,7 +1691,7 @@ namespace System.Text.Json
             TranscodeAndWrite(escapedPropertyName, output);
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
             output[BytesPending++] = JsonConstants.Space;
 
             output[BytesPending++] = JsonConstants.Quote;
@@ -1743,7 +1743,7 @@ namespace System.Text.Json
             BytesPending += escapedPropertyName.Length;
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
             output[BytesPending++] = JsonConstants.Space;
 
             output[BytesPending++] = JsonConstants.Quote;
index d256de5517e61745aa398d884c7c06050accf32d..ab73c36582c64004d90b3710b362bc03e5bbf40d 100644 (file)
@@ -321,7 +321,7 @@ namespace System.Text.Json
             TranscodeAndWrite(escapedPropertyName, output);
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
 
             bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten);
             Debug.Assert(result);
@@ -352,7 +352,7 @@ namespace System.Text.Json
             BytesPending += escapedPropertyName.Length;
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
 
             bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten);
             Debug.Assert(result);
@@ -397,7 +397,7 @@ namespace System.Text.Json
             TranscodeAndWrite(escapedPropertyName, output);
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
             output[BytesPending++] = JsonConstants.Space;
 
             bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten);
@@ -443,7 +443,7 @@ namespace System.Text.Json
             BytesPending += escapedPropertyName.Length;
 
             output[BytesPending++] = JsonConstants.Quote;
-            output[BytesPending++] = JsonConstants.KeyValueSeperator;
+            output[BytesPending++] = JsonConstants.KeyValueSeparator;
             output[BytesPending++] = JsonConstants.Space;
 
             bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten);
index ffb5ca658eb401dacb2a808d0ae7dd67117f14c3..c1961e7c23caa09c3cc5671ce688a235cf0bcb42 100644 (file)
@@ -252,7 +252,7 @@ namespace System.Text.Json.SourceGeneration.Tests
         public void EnsureHelperMethodGenerated_ImplicitPropertyFactory()
         {
             // ContextWithImplicitStringEnum does not have an entry for EnumWrittenAsString since it is
-            // implictly added by PocoWithEnum. Verify helper methods are still being created properly.
+            // implicitly added by PocoWithEnum. Verify helper methods are still being created properly.
 
             const string Json = "{\"MyEnum\":\"A\"}";
 
index 0c37dd0d7c5c33d87db0ac46fe2ad5fa20181794..5b94d2d9ec193a7bd61fbc3d86c1655ea00a3eab 100644 (file)
@@ -16,7 +16,7 @@ namespace System.Text.Json.Tests.Serialization
         [InlineData(typeof(Interface))]
         [InlineData(typeof(Class))]
         [InlineData(typeof(GenericClass<int>))]
-        public static void SupportedBaseTypeArgument_ShouldSucced(Type baseType)
+        public static void SupportedBaseTypeArgument_ShouldSucceed(Type baseType)
         {
             var configuration = new JsonPolymorphicTypeConfiguration(baseType);
             Assert.Equal(baseType, configuration.BaseType);
@@ -30,7 +30,7 @@ namespace System.Text.Json.Tests.Serialization
         [InlineData(typeof(Interface), typeof(Class))]
         [InlineData(typeof(Interface), typeof(Struct))]
         [InlineData(typeof(Class), typeof(GenericClass<int>))]
-        public static void SupportedDerivedTypeArgument_ShouldSucced(Type baseType, Type derivedType)
+        public static void SupportedDerivedTypeArgument_ShouldSucceed(Type baseType, Type derivedType)
         {
             var configuration = new JsonPolymorphicTypeConfiguration(baseType).WithDerivedType(derivedType);
             Assert.Equal(new[] { (derivedType, (string)null) }, configuration);
@@ -153,6 +153,6 @@ namespace System.Text.Json.Tests.Serialization
         private class Class : Interface { }
         private struct Struct : Interface { }
         private sealed class SealedClass : Interface { }
-        private class GenericClass<T> : Class { } 
+        private class GenericClass<T> : Class { }
     }
 }
index 4935c588a62241536f2fa3270be78e593ab408b9..4a9e012055c213b9ee2be5b59d13f134b27ea2cd 100644 (file)
@@ -217,7 +217,7 @@ typedef struct _delta_row_count {
        guint32 inserted_rows;
 } delta_row_count;
 
-/* Additional informaiton for MonoImages representing deltas */
+/* Additional information for MonoImages representing deltas */
 struct _DeltaInfo {
        uint32_t generation; /* global update ID that added this delta image */
        MonoImage *delta_image; /* DeltaInfo doesn't own the image, the base MonoImage owns the reference */
@@ -240,7 +240,7 @@ struct _DeltaInfo {
 };
 
 
-/* Additional informaiton for baseline MonoImages */
+/* Additional information for baseline MonoImages */
 struct _BaselineInfo {
        /* List of DeltaInfos of deltas*/
        GList *delta_info;
index 317130b243cbc8569984f2f2cbe397dea875aa93..dee5e21d4a4c425378c2f0874473bb90e79b37b4 100644 (file)
@@ -90,7 +90,7 @@ g_build_path (const gchar *separator, const gchar *first_element, ...)
 }
 
 static gchar*
-strrchr_seperator (const gchar* filename)
+strrchr_separator (const gchar* filename)
 {
 #ifdef G_OS_WIN32
        char *p2;
@@ -114,7 +114,7 @@ g_path_get_dirname (const gchar *filename)
        size_t count;
        g_return_val_if_fail (filename != NULL, NULL);
 
-       p = strrchr_seperator (filename);
+       p = strrchr_separator (filename);
        if (p == NULL)
                return g_strdup (".");
        if (p == filename)
@@ -138,7 +138,7 @@ g_path_get_basename (const char *filename)
                return g_strdup (".");
 
        /* No separator -> filename */
-       r = strrchr_seperator (filename);
+       r = strrchr_separator (filename);
        if (r == NULL)
                return g_strdup (filename);
 
@@ -146,7 +146,7 @@ g_path_get_basename (const char *filename)
        if (r [1] == 0){
                char *copy = g_strdup (filename);
                copy [r-filename] = 0;
-               r = strrchr_seperator (copy);
+               r = strrchr_separator (copy);
 
                if (r == NULL){
                        g_free (copy);
@@ -194,7 +194,7 @@ cont:
         * Scan token (scan for delimiters: s += strcspn(s, delim), sort of).
         * Note that delim must have one NUL; we stop if we see that, too.
         */
-       for (;;){
+       while (true) {
                c = *s++;
                spanp = (char *)delim;
                do {
@@ -321,7 +321,7 @@ g_ensure_directory_exists (const gchar *filename)
 
        p = dir_utf16;
 
-       /* make life easy and only use one directory seperator */
+       /* make life easy and only use one directory separator */
        while (*p != '\0')
        {
                if (*p == '/')
index 5de21bafb549dfbaac0c2ca8610d43e009cc332f..53786fd0297d8e03e4097c8e757c4f5a1b332de5 100644 (file)
@@ -301,7 +301,7 @@ ptrarray_remove_fast (void)
                return FAILED ("First element wasn't replaced with last upon removal");
 
        if (g_ptr_array_remove_fast (array, letters[0]))
-               return FAILED ("Succedeed removing a non-existing element");
+               return FAILED ("Succeeded removing a non-existing element");
 
        if (!g_ptr_array_remove_fast (array, letters[3]) || array->len != 3)
                return FAILED ("Failed removing \"D\"");
index af7d0b4d4d058c757fdaadd31028c76f9ea29334..5fd91ce797a3e4f8ec320cf782da0a75e95b9482 100644 (file)
@@ -20,7 +20,7 @@ const
 static Group test_groups [] = {
        {"setup", ep_setup_tests_init},
        {"rt", ep_rt_tests_init},
-       {"fastserialzier", ep_fastserializer_tests_init},
+       {"fastserializer", ep_fastserializer_tests_init},
        {"provider-callback-dataqueue", ep_provider_callback_data_queue_tests_init},
        {"file", ep_file_tests_init},
        {"session", ep_session_tests_init},
index 009110f546d38b7a897e49306b57b27f583b9716..461cab2b70c218d9ab77e08940d2fa674a6ef5f7 100644 (file)
@@ -1383,7 +1383,7 @@ mono_class_setup_vtable_ginst (MonoClass *klass, GList *in_setup)
  * vtable_slot_has_preserve_base_overrides_attribute:
  *
  * Needs to walk up the class hierarchy looking for the methods in this slot to
- * see if any are tagged with PreserveBaseOverrideAtrribute.
+ * see if any are tagged with PreserveBaseOverrideAttribute.
  */
 static gboolean
 vtable_slot_has_preserve_base_overrides_attribute (MonoClass *klass, int slot, MonoClass **out_klass)
index 772c2dc875ebb73808eeb937f0a17e823b056e19..d7711ecd294bbb9fabc8fc4c46231ae284ee9159 100644 (file)
@@ -159,7 +159,7 @@ struct _MonoMemoryManager {
        // Hashtables for Reflection handles
        MonoGHashTable *type_hash;
        MonoConcGHashTable *refobject_hash;
-       // Maps class -> type initializaiton exception object
+       // Maps class -> type initialization exception object
        MonoGHashTable *type_init_exception_hash;
        // Maps delegate trampoline addr -> delegate object
        //MonoGHashTable *delegate_hash_table;
index df93bf6864844d074bc4838216d8ab753b03d3b2..b745f0c124714f418d8fd9b0cf0806f564a80606 100644 (file)
@@ -1419,7 +1419,7 @@ mono_method_get_param_names (MonoMethod *method, const char **names)
                method = ((MonoMethodInflated *) method)->declaring;
 
        signature = mono_method_signature_internal (method);
-       /*FIXME this check is somewhat redundant since the caller usally will have to get the signature to figure out the
+       /*FIXME this check is somewhat redundant since the caller usually will have to get the signature to figure out the
          number of arguments and allocate a properly sized array. */
        if (signature == NULL)
                return;
index 7c03d64617e37586aee42417f10a1e259897c315..9ff7f1c15dece0e15ed3d44c1ba3331a09a0fcee 100644 (file)
@@ -321,7 +321,7 @@ emit_invoke_call (MonoMethodBuilder *mb, MonoMethod *method,
                if (m_type_is_byref (t)) {
                        mono_mb_emit_byte (mb, CEE_LDIND_I);
                        /* A Nullable<T> type don't have a boxed form, it's either null or a boxed T.
-                        * So to make this work we unbox it to a local variablee and push a reference to that.
+                        * So to make this work we unbox it to a local variable and push a reference to that.
                         */
                        if (t->type == MONO_TYPE_GENERICINST && mono_class_is_nullable (mono_class_from_mono_type_internal (t))) {
                                tmp_nullable_locals [i] = mono_mb_add_local (mb, m_class_get_byval_arg (mono_class_from_mono_type_internal (t)));
index 0a1f427ee5e276d310a4b5594d55cd89085f911a..c0ddb30214e4ff802b8e2eb0dc7734154ed033cf 100644 (file)
@@ -4485,7 +4485,7 @@ mono_metadata_free_mh (MonoMethodHeader *mh)
  * \param code_size memory location for returning the code size
  * \param max_stack memory location for returning the max stack
  *
- * Method header accessor to retreive info about the IL code properties:
+ * Method header accessor to retrieve info about the IL code properties:
  * a pointer to the IL code itself, the size of the code and the max number
  * of stack slots used by the code.
  *
@@ -4507,7 +4507,7 @@ mono_method_header_get_code (MonoMethodHeader *header, guint32* code_size, guint
  * \param num_locals memory location for returning the number of local variables
  * \param init_locals memory location for returning the init_locals flag
  *
- * Method header accessor to retreive info about the local variables:
+ * Method header accessor to retrieve info about the local variables:
  * an array of local types, the number of locals and whether the locals
  * are supposed to be initialized to 0 on method entry
  *
@@ -4527,7 +4527,7 @@ mono_method_header_get_locals (MonoMethodHeader *header, guint32* num_locals, gb
  * mono_method_header_get_num_clauses:
  * @header: a MonoMethodHeader pointer
  *
- * Method header accessor to retreive the number of exception clauses.
+ * Method header accessor to retrieve the number of exception clauses.
  *
  * Returns: the number of exception clauses present
  */
index 87d48c7b944ab8ee7159444deb5e6a5e1dcb566b..7db19c414230e6cbd10d39edca26c72aa9fd69e6 100644 (file)
@@ -1183,7 +1183,7 @@ typedef struct {
        MonoArray *table_indexes;
 } MonoReflectionModuleBuilder;
 
-/* Safely acess System.Reflection.Emit.ModuleBuidler from native code */
+/* Safely acess System.Reflection.Emit.ModuleBuilder from native code */
 TYPED_HANDLE_DECL (MonoReflectionModuleBuilder);
 
 typedef enum {
index 3bbdab9fc7a2509fce0ac3efd76d4fb98ee73b7d..03e989869eec3701934b5c47c207b4829abc638c 100644 (file)
@@ -3632,7 +3632,7 @@ typebuilder_setup_fields (MonoClass *klass, MonoError *error)
        mono_class_set_field_def_values (klass, def_values);
        /*
        This is, guess what, a hack.
-       The issue is that the runtime doesn't know how to setup the fields of a typebuider and crash.
+       The issue is that the runtime doesn't know how to setup the fields of a typebuilder and crash.
        On the static path no field class is resolved, only types are built. This is the right thing to do
        but we suck.
        Setting size_inited is harmless because we're doing the same job as mono_class_setup_fields anyway.
index 585a9072fbca3cddec32e0718031ab432d925c80..25f8995cd792344655a711cdac00ab8184c9d7e1 100644 (file)
@@ -132,7 +132,7 @@ typedef enum {
  * The first variable (the one "on the left of the expression") is implicit.
  * relation: the relation between the variable and the value
  * related_value: the related value
- * relation_is_static_definition: TRUE if the relation comes from a veriable
+ * relation_is_static_definition: TRUE if the relation comes from a variable
  *                                definition, FALSE if it comes from a branch
  *                                condition
  * next: pointer to the next relation of this variable in the evaluation area
index 3ade4cce92ba9ff8a7d65d7e5b44532b3fe8c14c..27078e552aab6ae17435cc959b465e0be58bd2a5 100644 (file)
@@ -1672,7 +1672,7 @@ arch_emit_label_address (MonoAotCompile *acfg, const char *target, gboolean exte
  * - we use an approach similar to the x86 abi: reserve a register (r30) to hold
  *   the GOT pointer.
  * - The full-aot trampolines need access to the GOT of mscorlib, so we store
- *   in in the 2. slot of every GOT, and require every method to place the GOT
+ *   it in the second slot of every GOT, and require every method to place the GOT
  *   address in r30, even when it doesn't access the GOT otherwise. This way,
  *   the trampolines can compute the mscorlib GOT address by loading 4(r30).
  */
index c7c17b938b65da742ac800c2c84b0104c8c38ead..eaa5d1d894be3a28a16aa7067f81b89bfcdbff25 100644 (file)
@@ -60,7 +60,7 @@ mono_branch_optimize_exception_target (MonoCompile *cfg, MonoBasicBlock *bb, con
                                /* get the basic block for the handler and
                                 * check if the exception object is used.
                                 * Flag is set during method_to_ir due to
-                                * pop-op is optmized away in codegen (burg).
+                                * pop-op is optimized away in codegen (burg).
                                 */
                                tbb = cfg->cil_offset_to_bb [clause->handler_offset];
                                if (tbb && tbb->flags & BB_EXCEPTION_DEAD_OBJ && !(tbb->flags & BB_EXCEPTION_UNSAFE)) {
index 8860abd064937cb95279b807de0f694c23767d77..e465edc34f0569abbe4924a74e782b9ace436e46 100644 (file)
@@ -936,7 +936,7 @@ mono_decompose_long_opts (MonoCompile *cfg)
                                if (tree->inst_c1 == 32) {
 
                                        /* The original code had this comment: */
-                                       /* special case that gives a nice speedup and happens to workaorund a ppc jit but (for the release)
+                                       /* special case that gives a nice speedup and happens to workaround a ppc jit but (for the release)
                                         * later apply the speedup to the left shift as well
                                         * See BUG# 57957.
                                         */
index 65693924c05ce0fa6a8e6c17a0638b1260da6eb1..c2989bc934245234b91d3c5d0ec200503e3542c6 100644 (file)
@@ -150,7 +150,7 @@ public class Tests
                if (ldobj_stobj (ref d1, ref d2) != 2.0)
                        return 3;
                if (d1 != 2.0 || d2 != 0.0)
-                       return 4;               
+                       return 4;
                return 0;
        }
 
@@ -303,7 +303,7 @@ public class Tests
        static void ldsflda<T> (int[] iarr) {
                iarr [0] = GFoo<T>.static_f.i;
        }
-       
+
        public static int test_0_stsfld () {
                Foo[] farr = new Foo [] { new Foo () { i = 1, j = 2 } };
                stsfld<Foo> (farr);
@@ -497,7 +497,7 @@ public class Tests
        static GFoo3<T> newobj<T> (T t1, T t2) {
                return new GFoo3<T> (t1, t2);
        }
-       
+
        public static int test_0_gshared_new () {
                var g1 = newobj (1, 2);
                if (g1.t != 1 || g1.t2 != 2)
@@ -645,7 +645,7 @@ public class Tests
                public T foo;
        }
 
-       [MethodImplAttribute (MethodImplOptions.NoInlining)]    
+       [MethodImplAttribute (MethodImplOptions.NoInlining)]
        public static void locals<T> (T t) {
                Foo2<T> t2 = new Foo2<T> ();
                object o = t2;
@@ -874,13 +874,13 @@ public class Tests
        }
 
        [MethodImplAttribute (MethodImplOptions.NoInlining)]
-       static T2 rgctx_in_call_innner_inner<T1, T2> (T1 t1, T2 t2) {
+       static T2 rgctx_in_call_inner_inner<T1, T2> (T1 t1, T2 t2) {
                return t2;
        }
 
        [MethodImplAttribute (MethodImplOptions.NoInlining)]
        static GFoo3<T> rgctx_in_call_inner<T> (T t) {
-               return rgctx_in_call_innner_inner (1, new GFoo3<T> ());
+               return rgctx_in_call_inner_inner (1, new GFoo3<T> ());
        }
 
     public static int test_0_rgctx_in_call () {
@@ -1249,7 +1249,7 @@ public class Tests
                object o2 = a.bar<long> (1024, 0, o1);
                if (o1 != o2)
                        return 1;
-               return 0;               
+               return 0;
        }
 
                interface BIFace {
@@ -1459,7 +1459,7 @@ public class Tests
                }
        }
 
-       public static int test_0_nullable_unbox () {    
+       public static int test_0_nullable_unbox () {
                IFaceUnbox2 c = new ClassUnbox2 ();
                int? i = c.unbox<int?> (5);
                if (i != 5)
index 3aa7e6b3579ff78d672f4d547952ac78fcd63bf7..e5588087f8b18d73d856cbdc19be947005a5b1d5 100644 (file)
@@ -3777,7 +3777,7 @@ handle_constrained_gsharedvt_call (MonoCompile *cfg, MonoMethod *cmethod, MonoMe
        /*
         * Constrained calls need to behave differently at runtime dependending on whenever the receiver is instantiated as ref type or as a vtype.
         * This is hard to do with the current call code, since we would have to emit a branch and two different calls. So instead, we
-        * pack the arguments into an array, and do the rest of the work in in an icall.
+        * pack the arguments into an array, and do the rest of the work in an icall.
         */
        supported = ((cmethod->klass == mono_defaults.object_class) || mono_class_is_interface (cmethod->klass) || (!m_class_is_valuetype (cmethod->klass) && m_class_get_image (cmethod->klass) != mono_defaults.corlib));
        if (supported)
@@ -5540,7 +5540,7 @@ is_supported_tailcall (MonoCompile *cfg, const guint8 *ip, MonoMethod *method, M
        if (!tailcall && !tailcall_calli)
                goto exit;
 
-       // FIXME in calli, there is no type for for the this parameter,
+       // FIXME in calli, there is no type for the this parameter,
        // so we assume it might be valuetype; in future we should issue a range
        // check, so rule out pointing to frame (for other reference parameters also)
 
index 672d8a7ffa657be7c545f38a3d97ee3ee75b620c..e156944574831bdafc684754cade94d999fe4fe3 100644 (file)
@@ -256,10 +256,10 @@ typedef struct {
        gpointer addr;
        /* The trampoline reads this, so keep the size explicit */
        int ret_marshal;
-       /* If ret_marshal != NONE, this is the reg of the vret arg, else -1 (used in out case) */
+       /* If ret_marshal != NONE, this is the reg of the vret arg, else -1 (used bu "out" case) */
        /* Equivalent of vret_arg_slot in the x86 implementation. */
        int vret_arg_reg;
-       /* The stack slot where the return value will be stored (used in in case) */
+       /* The stack slot where the return value will be stored (used by "in" case) */
        int vret_slot;
        int stack_usage, map_count;
        /* If not -1, then make a virtual call using this vtable offset */
index 45866b274af086530098a021857162089e01a2c9..1ef63a5f9d53c2ca616641364e804d775bdc927b 100755 (executable)
@@ -1306,7 +1306,7 @@ done
 
 #test variance with delegates
 #generic methods
-#generic atributes
+#generic attributes
 #generic delegates
 #generic code
 #the verifier must check if the generic instantiation is valid
@@ -1394,7 +1394,7 @@ do
        ./make_bool_branch_test.sh boolean_branch_${I}_4 valid ${OP} int64
        ./make_bool_branch_test.sh boolean_branch_${I}_5 valid ${OP} 'native int'
 
-       #unmanaged pointers are not veriable types, all ops on unmanaged pointers are unverifiable
+       #unmanaged pointers are not verifiable types, all ops on unmanaged pointers are unverifiable
        ./make_bool_branch_test.sh boolean_branch_${I}_6 unverifiable ${OP} 'int32*'
        ./make_bool_branch_test.sh boolean_branch_${I}_8 unverifiable ${OP} 'method int32 *(int32)'
 
index cacfa691420864741284489786e263d82fa93501..48503acdedad2326863f32150b1a2f0117a919a4 100644 (file)
@@ -1,7 +1,7 @@
 //
 // This test merely creates a Win32Exception that triggers the
 // code in mono/io-layer/message.c that validates that the
-// error table is propertly sorted
+// error table is properly sorted
 using System;
 using System.ComponentModel;
 
@@ -19,7 +19,7 @@ class X {
                }
                return true;
        }
-       
+
        static int Main ()
        {
                //
@@ -39,5 +39,5 @@ class X {
 
                return 0;
        }
-       
+
 }
index 3fff0c8a64f14a31754e6bd9ca02437d29ed0974..176deade826305e1efb2457bfdbce3d1fae2fcdd 100644 (file)
@@ -120,7 +120,7 @@ void mono_threads_suspend_override_policy (MonoThreadsSuspendPolicy new_policy);
 
 /*
  * The following are used when detaching a thread. We need to pass the MonoThreadInfo*
- * as a paramater as the thread info TLS key is being destructed, meaning that
+ * as a parameter as the thread info TLS key is being destructed, meaning that
  * mono_thread_info_current_unchecked will return NULL, which would lead to a
  * runtime assertion error when trying to switch the state of the current thread.
  */
index 0ec846fa75926f45c1c248612406a51191e529b6..37ece4177213b2a3be22b63fd546e8b3fe8a2fa7 100644 (file)
@@ -34,7 +34,7 @@ In `src\mono\wasm\runtime\CMakeLists.txt` which links only in-tree, we use same
 # dotnet.*.post.js
 - Executed last (4)
 - When `onRuntimeInitialized` is overriden it would wait for emscriptens `Module.ready`
-- Otherwise it would wait for for MonoVM to load all assets and assemblies.
+- Otherwise it would wait for MonoVM to load all assets and assemblies.
 - It would pass on the API exports
 
 # About new API
@@ -56,7 +56,7 @@ More complex scenario with using APIs, commented
 ```
 import createDotnetRuntime from './dotnet.js'
 
-export const { MONO, BINDING } = await createDotnetRuntime(({ MONO, BINDING, Module }) => 
+export const { MONO, BINDING } = await createDotnetRuntime(({ MONO, BINDING, Module }) =>
 // this is callback with no statement, the APIs are only empty shells here and are populated later.
 ({
     disableDotnet6Compatibility: true,
@@ -67,15 +67,15 @@ export const { MONO, BINDING } = await createDotnetRuntime(({ MONO, BINDING, Mod
         // Module.config is loaded and could be tweaked before application
         Module.config.environment_variables["MONO_LOG_LEVEL"]="debug"
 
-        // here we could use API passed into this callback 
+        // here we could use API passed into this callback
         // call some early available functions
         MONO.mono_wasm_setenv("HELLO", "WORLD);
     }
     onDotnetReady: () => {
         // Only when there is no `onRuntimeInitialized` override.
-        // This is called after all assets are loaded , mapping to legacy `config.loaded_cb`. 
-        // It happens during emscripten `onRuntimeInitialized` after monoVm init + globalization + assemblies. 
-        // This also matches when the top level promise is resolved. 
+        // This is called after all assets are loaded , mapping to legacy `config.loaded_cb`.
+        // It happens during emscripten `onRuntimeInitialized` after monoVm init + globalization + assemblies.
+        // This also matches when the top level promise is resolved.
         // The original emscripten `Module.ready` promise is replaced with this.
 
         // at this point both emscripten and monoVM are fully initialized.
index e65b1fec590a4dfd35caaf9955b7088d14a7f52a..981d86305e692104d9f59ff561714171af56cdf6 100644 (file)
@@ -33,9 +33,9 @@ static pal::string_t normalize_dir_separator(const pal::string_t& path)
 //    str  - (out parameter) If the method returns true, contains the file path for this deps entry
 //    search_options - Flags to instruct where to look for this deps entry
 //    found_in_bundle - (out parameter) True if the candidate is located within the single-file bundle.
-//    
+//
 // Returns:
-//    If the file exists in the path relative to the "base" directory within the 
+//    If the file exists in the path relative to the "base" directory within the
 //    single-file or on disk.
 
 bool deps_entry_t::to_path(const pal::string_t& base, const pal::string_t& ietf_dir, pal::string_t* str, uint32_t search_options, bool &found_in_bundle) const
@@ -113,7 +113,7 @@ bool deps_entry_t::to_path(const pal::string_t& base, const pal::string_t& ietf_
     }
 
     // If a file is resolved to the servicing directory, mark it as disabled in the bundle.
-    // This step is necessary because runtime will try to resolve assemblies from the bundle 
+    // This step is necessary because runtime will try to resolve assemblies from the bundle
     // before it uses the TPA. So putting the servicing entry into TPA is not enough, since runtime would
     // resolve it from the bundle first anyway. Disabling the file's entry in the bundle
     // ensures that the servicing entry in the TPA gets priority.
@@ -137,7 +137,7 @@ bool deps_entry_t::to_path(const pal::string_t& base, const pal::string_t& ietf_
 //
 // Parameters:
 //    base - The base directory to look for the relative path of this entry
-//    str  - If the method returns true, contains the file path for this deps entry 
+//    str  - If the method returns true, contains the file path for this deps entry
 //    search_options - Flags to instruct where to look for this deps entry
 //    look_in_bundle - Whether to look within the single-file bundle
 //
@@ -157,7 +157,7 @@ bool deps_entry_t::to_dir_path(const pal::string_t& base, pal::string_t* str, ui
         ietf_dir = get_directory(pal_relative_path);
 
         // get_directory returns with DIR_SEPARATOR appended that we need to remove.
-        remove_trailing_dir_seperator(&ietf_dir);
+        remove_trailing_dir_separator(&ietf_dir);
 
         // Extract IETF code from "lib/<netstandrd_ver>/<ietf-code>"
         ietf_dir = get_filename(ietf_dir);
@@ -178,7 +178,7 @@ bool deps_entry_t::to_dir_path(const pal::string_t& base, pal::string_t* str, ui
 //
 // Parameters:
 //    base - The base directory to look for the relative path of this entry
-//    str  - If the method returns true, contains the file path for this deps entry 
+//    str  - If the method returns true, contains the file path for this deps entry
 //    search_options - Flags to instruct where to look for this deps entry
 //
 // Returns:
@@ -199,7 +199,7 @@ bool deps_entry_t::to_rel_path(const pal::string_t& base, pal::string_t* str, ui
 //
 // Parameters:
 //    base - The base directory to look for the relative path of this entry
-//    str  - If the method returns true, contains the file path for this deps entry 
+//    str  - If the method returns true, contains the file path for this deps entry
 //    search_options - Flags to instruct where to look for this deps entry
 //
 // Returns:
index a97da2f90f7d6f7085b7991b52874876476c027c..877dd03e454df17c5f89f3cbf9cd151ecb184e42 100644 (file)
@@ -234,7 +234,7 @@ void append_probe_realpath(const pal::string_t& path, std::vector<pal::string_t>
     else
     {
         // Check if we can extrapolate |arch|<DIR_SEPARATOR>|tfm| for probing stores
-        // Check for for both forward and back slashes
+        // Check for both forward and back slashes
         pal::string_t placeholder = _X("|arch|\\|tfm|");
         auto pos_placeholder = probe_path.find(placeholder);
         if (pos_placeholder == pal::string_t::npos)
index d372b6f16d75758da842e2bbaa02c91a9937ed6b..0eacdd8f5bc1b0c7ac01b6c8d0ba1de5923348f8 100644 (file)
@@ -415,13 +415,13 @@ bool pal::get_global_dotnet_dirs(std::vector<pal::string_t>* dirs)
     bool dir_found = false;
     if (pal::get_dotnet_self_registered_dir(&custom_dir))
     {
-        remove_trailing_dir_seperator(&custom_dir);
+        remove_trailing_dir_separator(&custom_dir);
         dirs->push_back(custom_dir);
         dir_found = true;
     }
     if (get_default_installation_dir(&default_dir))
     {
-        remove_trailing_dir_seperator(&default_dir);
+        remove_trailing_dir_separator(&default_dir);
 
         // Avoid duplicate global dirs.
         if (!dir_found || !are_paths_equal_with_normalized_casing(custom_dir, default_dir))
index 977d3d0e4d53d7f71dd958ff3a02eb1a7e0bb6b7..e768b04f251d7213e5bdb73cdf6d75b7f0c486fd 100644 (file)
@@ -160,7 +160,7 @@ pal::string_t get_directory(const pal::string_t& path)
     return ret.substr(0, static_cast<size_t>(pos) + 1) + DIR_SEPARATOR;
 }
 
-void remove_trailing_dir_seperator(pal::string_t* dir)
+void remove_trailing_dir_separator(pal::string_t* dir)
 {
     if (dir->back() == DIR_SEPARATOR)
     {
@@ -308,7 +308,7 @@ void get_framework_and_sdk_locations(const pal::string_t& dotnet_dir, const bool
     {
         // own_dir contains DIR_SEPARATOR appended that we need to remove.
         dotnet_dir_temp = dotnet_dir;
-        remove_trailing_dir_seperator(&dotnet_dir_temp);
+        remove_trailing_dir_separator(&dotnet_dir_temp);
 
         locations->push_back(dotnet_dir_temp);
     }
index 183a123d9fcf35b296a0a48541bbf76d35c7f627..0260f52f599b8ce11d38e76bea733aef02b7c73d 100644 (file)
@@ -66,7 +66,7 @@ pal::string_t get_filename_without_ext(const pal::string_t& path);
 void append_path(pal::string_t* path1, const pal::char_t* path2);
 bool library_exists_in_dir(const pal::string_t& lib_dir, const pal::string_t& lib_name, pal::string_t* p_lib_path);
 bool coreclr_exists_in_dir(const pal::string_t& candidate);
-void remove_trailing_dir_seperator(pal::string_t* dir);
+void remove_trailing_dir_separator(pal::string_t* dir);
 void replace_char(pal::string_t* path, pal::char_t match, pal::char_t repl);
 pal::string_t get_replaced_char(const pal::string_t& path, pal::char_t match, pal::char_t repl);
 const pal::char_t* get_arch();
index 31adde5e8dafb9a2b3e8bacf85468dc962d2fc5c..cb568b9bc8557772570e614e0afbdc1d8d06547f 100644 (file)
@@ -13,7 +13,7 @@
         // Consuming the nethost as a static library
         // Shouldn't export attempt to dllimport.
         #ifdef NETHOST_USE_AS_STATIC
-            #define NETHOST_API 
+            #define NETHOST_API
         #else
             #define NETHOST_API __declspec(dllimport)
         #endif
@@ -77,7 +77,7 @@ struct get_hostfxr_parameters {
 //
 //   get_hostfxr_parameters
 //     Optional. Parameters that modify the behaviour for locating the hostfxr library.
-//     If nullptr, hostfxr is located using the enviroment variable or global registration
+//     If nullptr, hostfxr is located using the environment variable or global registration
 //
 // Return value:
 //   0 on success, otherwise failure
index 20ba42a764a339b3e1f02b075f4301e9463e9c4a..a62ce432e91e4e75435ef60a613ac57fa0cf5250 100644 (file)
@@ -46,11 +46,11 @@ sample_profiler_reset_time_granularity (void);
 
 static
 bool
-sample_profiler_load_dependecies (void);
+sample_profiler_load_dependencies (void);
 
 static
 void
-sample_profiler_unload_dependecies (void);
+sample_profiler_unload_dependencies (void);
 
 static
 void
@@ -143,7 +143,7 @@ sample_profiler_reset_time_granularity (void)
 
 static
 bool
-sample_profiler_load_dependecies (void)
+sample_profiler_load_dependencies (void)
 {
 #ifdef HOST_WIN32
        if (_ref_count > 0)
@@ -168,7 +168,7 @@ sample_profiler_load_dependecies (void)
 
 static
 void
-sample_profiler_unload_dependecies (void)
+sample_profiler_unload_dependencies (void)
 {
 #ifdef HOST_WIN32
        if (_multimedia_library_handle != NULL) {
@@ -261,7 +261,7 @@ ep_sample_profiler_enable (void)
        if (!ep_event_is_enabled (_thread_time_event))
                return;
 
-       sample_profiler_load_dependecies ();
+       sample_profiler_load_dependencies ();
 
        if (_can_start_sampling)
                sample_profiler_enable ();
@@ -295,7 +295,7 @@ ep_sample_profiler_disable (void)
                if (_time_period_is_set)
                        sample_profiler_reset_time_granularity ();
 
-               sample_profiler_unload_dependecies ();
+               sample_profiler_unload_dependencies ();
        }
 
        --_ref_count;
index c4b3dee44e21b805a51d69e7e210713964216cb9..4e4215e5ffe10f5d20c6a984e9de8464bd4144e4 100644 (file)
@@ -16,7 +16,7 @@
 // it's sibling is defined in https://github.com/Microsoft/perfview/blob/10d1f92b242c98073b3817ac5ee6d98cd595d39b/src/FastSerialization/FastSerialization.cs#L2295
 typedef enum
 {
-       FAST_SERIALIZER_TAGS_ERROR                  = 0, // To improve debugabilty, 0 is an illegal tag.
+       FAST_SERIALIZER_TAGS_ERROR                  = 0, // To improve debugability, 0 is an illegal tag.
        FAST_SERIALIZER_TAGS_NULL_REFERENCE         = 1, // Tag for a null object forwardReference.
        FAST_SERIALIZER_TAGS_OBJECT_REFERENCE       = 2, // Followed by StreamLabel
                                                         // 3 used to belong to ForwardReference, which got removed in V3
index 6d08c6554189f6cff4438fcc90a502bce8bc83aa..8defd8d343c6e2a6f36c68aa19ee5b7b923bbe5b 100644 (file)
@@ -28,7 +28,7 @@ static volatile TerminalInvalidationCallback g_terminalInvalidationCallback = NU
 static volatile SigChldCallback g_sigChldCallback = NULL;
 static volatile bool g_sigChldConsoleConfigurationDelayed;
 static void (*g_sigChldConsoleConfigurationCallback)(void);
-// Callback invoked for for SIGTTOU while terminal settings are changed.
+// Callback invoked for SIGTTOU while terminal settings are changed.
 static volatile ConsoleSigTtouHandler g_consoleTtouHandler;
 
 // Callback invoked for PosixSignal handling.
@@ -228,7 +228,7 @@ static void SignalHandler(int sig, siginfo_t* siginfo, void* context)
                 assert(origHandler->sa_handler);
                 origHandler->sa_handler(sig);
             }
-            
+
         }
     }
 
index 07a40bf8315cc6d64e50a4b78aa8ecb8188e9b4a..8e769e615a4b2ed99327e27db007d3a287ad6bf0 100644 (file)
@@ -60,7 +60,7 @@ Initialize an SSL context
   - isServer      : true if the context should be created in server mode
   - streamReader  : callback for reading data from the connection
   - streamWriter  : callback for writing data to the connection
-  - appBufferSize : initial buffer size for applicaiton data
+  - appBufferSize : initial buffer size for application data
 
 Returns 1 on success, 0 otherwise
 */
index 8ebff5d2683d7bd55410600c96a0a1037f3d9b38..ace6fcb0c0c915fb25d954a4efc5961f46ebd802 100644 (file)
@@ -292,9 +292,9 @@ public class ApkBuilder
                 nativeLibraries += $"    {componentLibToLink}{Environment.NewLine}";
             }
 
-            // There's a circular dependecy between static mono runtime lib and static component libraries.
+            // There's a circular dependency between static mono runtime lib and static component libraries.
             // Adding mono runtime lib before and after component libs will resolve issues with undefined symbols
-            // due to circular dependecy.
+            // due to circular dependency.
             nativeLibraries += $"    {monoRuntimeLib}{Environment.NewLine}";
         }
 
index f035a5617bb1cc99319bb766feb2188737b4a040..a36ef188ba719744fd382e04f059d3f312e67729 100644 (file)
@@ -398,7 +398,7 @@ namespace Microsoft.NET.Build.Tasks
                             }
                             else
                             {
-                                // If previously compiled as R2R, treat as reference if this would be compiled seperately
+                                // If previously compiled as R2R, treat as reference if this would be compiled separately
                                 if (!compositeCompile || excludeFromComposite)
                                 {
                                     return Eligibility.CreateReferenceEligibility(excludeFromComposite);
index c8dd750add30097b42bb46b045e5fc3a56b63faf..043aedee30e20918dbcee2b8d349e213460c374c 100644 (file)
@@ -40,8 +40,6 @@
 #include <windows.h>
 #include <combaseapi.h>
 
-#define FS_SEPERATOR L"\\"
-#define PATH_DELIMITER L";"
 #define L(t) L##t
 #define W(str)  L##str
 
@@ -134,8 +132,6 @@ typedef unsigned int ULONG, *PULONG;
 
 LPWSTR HackyConvertToWSTR(const char* pszInput);
 
-#define FS_SEPERATOR L("/")
-#define PATH_DELIMITER L(":")
 #define L(t) HackyConvertToWSTR(t)
 #define W(str)  u##str
 #define MAX_PATH 260
index e73d21166cf59fe2429918eecf6cc17a0bb2dc9e..91bea5075b0fd3d7d8a67f3a280a89645ee233ab 100644 (file)
@@ -60,19 +60,18 @@ if __name__ == "__main__":
       currLine = oldTests[j]
       matchObj = re.search( r'[(.+)]', currLine)
       if matchObj:
-        nextLine = oldTests[j+1] 
+        nextLine = oldTests[j+1]
         matchObj = re.search( r'(RelativePath=)(.+)(\\)(.+)(.exe)', nextLine)
         if matchObj:
           relPath = matchObj.group(2)
           if (relPath in exclusions):
             # Skip to the next item. Currently each test consists of 7 lines.
             removed += 1
-            j += 7 
+            j += 7
             continue
 
       newTestsHandle.write(currLine)
       j += 1
 
   print "Removed Tests: ", removed
-  print newTestFile + " is successfuly built."
-
+  print newTestFile + " is successfully built."
index 211872df572b10fafaddd247d42b78385a0b88ac..76139a4a352ae66d171df76d5588a274830e3ae5 100755 (executable)
@@ -70,7 +70,7 @@ def create_list_file(file_name, metadata):
         file_handle.write("## Commit: %s\n" % ARGS.commit_hash)
         file_handle.write("## \n")
 
-        order = ["RelativePath", "WorkingDir", "Expected", 
+        order = ["RelativePath", "WorkingDir", "Expected",
                 "MaxAllowedDurationSeconds", "Categories", "HostStyle"]
 
         def write_metadata(data, count=None):
@@ -130,7 +130,7 @@ def create_metadata(tests):
 
         with open(failures_csv, "r") as file_handle:
             lines = file_handle.readlines()
-        
+
         try:
             for line in lines:
                 split = line.split(",")
@@ -147,15 +147,15 @@ def create_metadata(tests):
 
         working_directory = os.path.dirname(test_name).replace("/", "\\")
 
-        # Make sure the tests use the windows \ seperator.
+        # Make sure the tests use the windows \ separator.
         relative_path = test_name.replace("/", "\\")
         max_duration = "600"
-        
+
         if priority == 0:
             categories = "EXPECTED_PASS"
         else:
             categories = "EXPECTED_PASS;Pri%d" % priority
-        
+
         expected = "0"
         host_style = "0"
 
@@ -185,8 +185,8 @@ def get_all_tests(base_dir):
                          : cmd file under the base_dir.
 
     Note:
-        To find the tests correctly you must build the tests correctly and 
-        pass that directory. This method will NOT check to make sure that 
+        To find the tests correctly you must build the tests correctly and
+        pass that directory. This method will NOT check to make sure that
         this has been done correctly.
 
         This is a recursive method.
@@ -315,7 +315,7 @@ def main(args):
     print
 
     priority_marked_tests = defaultdict(lambda: None)
-    
+
     for test in pri1_tests:
         priority_marked_tests[test] = 1
     for test in pri0_tests:
index b435e186ea90c3eeb19ca97b4997772ddcd85b84..56c9a593c2293cd0c77b7c98ef932540e01e59be 100644 (file)
@@ -3,7 +3,7 @@
 
 using System;
 
-class enviroment_version
+class environment_version
 {
     static int Main()
     {
index 694446fc8a9b98ec1fa9ffc0cbd8216d2c54d7d4..58ec31f5d60b91092c74a9466b04222f542ddc15 100644 (file)
@@ -26,8 +26,8 @@ class GetMainProgramHandleTests
         IntPtr handle = NativeLibrary.Load(NativeLibraryToLoad.GetFullPath());
         try
         {
-            // NativeLibrary does not load symbols globally, so we shouldn't be able to discover symbols from libaries loaded
-            // with NativeLibary.Load.
+            // NativeLibrary does not load symbols globally, so we shouldn't be able to discover symbols from libraries loaded
+            // with NativeLibrary.Load.
             EXPECT(GetSymbolFromMainProgramHandle("LocallyLoadedNativeLib", TestLibrary.Utilities.IsX86 ? "_NativeSum@8" : "NativeSum"),  TestResult.ReturnFailure);
             EXPECT(GetSymbolFromMainProgramHandle("LocallyLoadedNativeLib", "NonNativeSum"), TestResult.ReturnFailure);
 
index e46415992e4dd9e59f710e957b206a6e5cb4410a..03a21bdd7a0e8921ace63d5ef93eed059f5709e3 100644 (file)
@@ -36,7 +36,7 @@ public class NativeLibraryTests : IDisposable
         EXPECT(LoadLibrary_NameOnly(libName), TestResult.DllNotFound);
         EXPECT(TryLoadLibrary_NameOnly(libName), TestResult.ReturnFailure);
     }
-    
+
     [Fact]
     public void LoadLibraryOnInvalidFile_NameOnly()
     {
@@ -109,7 +109,7 @@ public class NativeLibraryTests : IDisposable
         EXPECT(TryLoadLibrary_WithAssembly(libName, assembly, null), TestResult.ReturnFailure);
     }
 
-    public static bool HasKnownLibraryInSystemDirectory => 
+    public static bool HasKnownLibraryInSystemDirectory =>
         OperatingSystem.IsWindows()
         && File.Exists(Path.Combine(Environment.SystemDirectory, "url.dll"));
 
@@ -142,7 +142,7 @@ public class NativeLibraryTests : IDisposable
     }
 
     [Fact]
-    public void LoadLibary_UsesFullPath_EvenWhen_AssemblyDirectory_Specified()
+    public void LoadLibrary_UsesFullPath_EvenWhen_AssemblyDirectory_Specified()
     {
         string libName = Path.Combine(testBinDir, Path.Combine("lib", NativeLibraryToLoad.Name));
         EXPECT(LoadLibrary_WithAssembly(libName, assembly, DllImportSearchPath.AssemblyDirectory), TestResult.DllNotFound);
index 696fb1413e5a6e998873071dd79d9ae68deab5b6..bf691dd16dd2ce7b6d364c7ce6073c8c2044f4db 100644 (file)
@@ -39,7 +39,7 @@ public class Helper
         }
         else if (!actualSize.Equals(expectedSize))
         {
-            Console.WriteLine("\tTwo array are not equal.The sizes are not equal:Expected:{0},Actaul:{1}", expectedSize, actualSize);
+            Console.WriteLine("\tTwo array are not equal.The sizes are not equal. Expected: {0}, Actual: {1}", expectedSize, actualSize);
             return false;
         }
         for (int i = 0; i < expectedSize; ++i)
index 553f8b99ccd05ea75a728ee3ee6bf3e95a04cd1d..b4957dc12e963acf8c461abf1edc035e214ed14b 100644 (file)
@@ -56,7 +56,7 @@ namespace Layout
             }
         }
 
-        // Variant with code written awkwardly but which acheives the desired
+        // Variant with code written awkwardly but which achieves the desired
         // performance if JIT simply lays out code in source order.
         public static bool LoopGoto(String strA, String strB)
         {
index 3ba439d7a83520c1102858d53262f03151ec65c5..3d0e4dcd67eae30f2942a1e60bd8bd2b87778499 100644 (file)
@@ -4,13 +4,13 @@
 // RunBenchmark - .NET Benchmark Performance Harness
 //
 // Note: This harness is currently built as a CoreCLR test case for ease of running
-// against test CORE_ROOT assemblies.   As such, when run with out any parameters, 
+// against test CORE_ROOT assemblies.   As such, when run with out any parameters,
 // it will do nothing and simply return 100.   Use "-run" to actually run tests cases.
 //
 // Usage: RunBenchmarks [options]
-//  
+//
 //  options:
-//  
+//
 //     -f <xmlFile>               specify benchmark xml control file (default benchmarks.xml)
 //     -n <number>                specify number of runs for each benchmark (default is 1)
 //     -w                         specify that warmup run should be done first
@@ -30,7 +30,7 @@
 //     -norun                     prints what would be run, but don't run benchmarks
 //     -tags <tags>               specify benchmarks with tags to include
 //     -notags <tags>             specify benchmarks with tags to exclude
-//     -csvfile                   specify name of Comma Seperated Value output file (default console)
+//     -csvfile                   specify name of Comma Separated Value output file (default console)
 //
 // Benchmark .XML Control File format:
 //
@@ -159,7 +159,7 @@ namespace BenchmarkConsoleApplication
     // Benchmark Results - includes benchmark, array of times for each iteration of the benchmark
     //                     minimum time, maximum time, average time, standard deviation and number
     //                     of failures.
+
     internal class Results
     {
         public Benchmark Benchmark;
@@ -186,7 +186,7 @@ namespace BenchmarkConsoleApplication
         }
     }
 
-    // Controls - command line controls used to 
+    // Controls - command line controls used to
 
     internal class Controls
     {
@@ -448,7 +448,7 @@ namespace BenchmarkConsoleApplication
             Console.WriteLine("   -norun         prints what would be run, but don't run benchmarks");
             Console.WriteLine("   -tags <tags>   specify benchmarks with tags to include");
             Console.WriteLine("   -notags <tags> specify benchmarks with tags to exclude");
-            Console.WriteLine("   -csvfile       specify name of Comma Seperated Value output file (default coreclr_benchmarks.csv)");
+            Console.WriteLine("   -csvfile       specify name of Comma Separated Value output file (default coreclr_benchmarks.csv)");
 
             Exit(-1);
         }
@@ -514,7 +514,7 @@ namespace BenchmarkConsoleApplication
 
         // Constructed platform specific field name given either Unix style or Windows style
         // directory name.
-   
+
         public string PlatformSpecificDirectoryName
         (
             string directoryName
@@ -610,7 +610,7 @@ namespace BenchmarkConsoleApplication
             // If we aren't being asked to run benchmarks or print results
             // then we must be being executed as a simple CoreCLR test case.
             // Don't bother reading XML file.
+
             if (doRunAsTestCase)
             {
                 return;
@@ -622,13 +622,13 @@ namespace BenchmarkConsoleApplication
 
             XElement benchmarkXml = XElement.Load(benchmarkXmlFullFileName);
 
-            // Get root directory for benchmark system.  Command line argument overrides 
+            // Get root directory for benchmark system.  Command line argument overrides
             // specification in benchmark control file.
 
             benchmarkRootDirectoryName = Controls.BenchmarksRootDirectory;
             if (benchmarkRootDirectoryName == "")
             {
-                benchmarkRootDirectoryName = 
+                benchmarkRootDirectoryName =
                 Controls.BenchmarksRootDirectory = benchmarkRootDirectoryName;
             }
             benchmarkRootDirectoryName = PlatformSpecificDirectoryName(benchmarkRootDirectoryName);
@@ -745,7 +745,7 @@ namespace BenchmarkConsoleApplication
             }
         }
 
-        // Select benchmarks to run based on controls for suite, tag, or specfic 
+        // Select benchmarks to run based on controls for suite, tag, or specfic
         // benchmark inclusion/exclusion.
 
         public void SelectBenchmarks()
@@ -1054,13 +1054,13 @@ namespace BenchmarkConsoleApplication
                 {
                     string name = results.Benchmark.Name;
                     outputFile.Write("{0},", name);
-    
+
                     long minimum = results.Minimum;
                     long maximum = results.Maximum;
                     long average = results.Average;
                     double standardDeviation = results.StandardDeviation;
                     outputFile.Write("{0},{1},{2},{3}", minimum, maximum, average, standardDeviation);
-    
+
                     numberOfFailuresPerBenchmark = results.Failures;
                     numberOfPasses = (numberOfPasses < 0) ? 0 : numberOfPasses;
                     if (numberOfFailuresPerBenchmark > 0)
@@ -1073,7 +1073,7 @@ namespace BenchmarkConsoleApplication
                     }
                     outputFile.WriteLine("");
                 }
-    
+
                 outputFile.WriteLine("TOTAL BENCHMARKS({0}), PASSED({1}), FAILED({2})",
                         numberOfBenchmarksRun, numberOfPasses, numberOfFailures);
             }
index 55c30ff97f50250b001d337a047c884ea1d58558..995b78cc104a6d1a092bbbf7aecae922b35d6bb6 100644 (file)
@@ -236,7 +236,7 @@ namespace StackCommitTest
 
         public static void Run(Action action)
         {
-            //We need to allocate the object inside of a seperate method to ensure that
+            //We need to allocate the object inside of a separate method to ensure that
             //the reference will be eliminated before GC.Collect is called. Technically
             //even across methods we probably don't make any formal guarantees but this
             //is sufficient for current runtime implementations.
index df2c9942cef2e072691597418a116f5b636b0262..b62eca4f86e49959d48d386369de935b2b07ef6d 100644 (file)
@@ -1,7 +1,6 @@
 // Licensed to the .NET Foundation under one or more agreements.
 // The .NET Foundation licenses this file to you under the MIT license.
 
-
 using System;
 using System.Diagnostics.CodeAnalysis;
 using System.Runtime.CompilerServices;
@@ -53,10 +52,10 @@ namespace ComWrappersTests
         static extern int CaptureComPointer(IComInterface foo);
 
         [DllImport("ComWrappersNative", CallingConvention = CallingConvention.StdCall)]
-        static extern int RetreiveCapturedComPointer(out IComInterface foo);
+        static extern int RetrieveCapturedComPointer(out IComInterface foo);
 
-        [DllImport("ComWrappersNative", EntryPoint="RetreiveCapturedComPointer", CallingConvention = CallingConvention.StdCall)]
-        static extern int RetreiveCapturedComPointerRaw(out IntPtr foo);
+        [DllImport("ComWrappersNative", EntryPoint="RetrieveCapturedComPointer", CallingConvention = CallingConvention.StdCall)]
+        static extern int RetrieveCapturedComPointerRaw(out IntPtr foo);
 
         [DllImport("ComWrappersNative", CallingConvention = CallingConvention.StdCall)]
         static extern void ReleaseComPointer();
@@ -109,7 +108,7 @@ namespace ComWrappersTests
             var target = new ComObject();
             int result = CaptureComPointer(target);
             ThrowIfNotEquals(0, result, "Seems to be COM marshalling behave strange.");
-            result = RetreiveCapturedComPointerRaw(out var comPtr);
+            result = RetrieveCapturedComPointerRaw(out var comPtr);
             var roundTripObject = GlobalComWrappers.GetOrCreateObjectForComInstance(comPtr, CreateObjectFlags.Unwrap);
             ThrowIfNotEquals(0, result, "Seems to be COM marshalling behave strange.");
             if (roundTripObject != target)
@@ -123,7 +122,7 @@ namespace ComWrappersTests
             var target = new ComObject();
             int result = CaptureComPointer(target);
             ThrowIfNotEquals(0, result, "Seems to be COM marshalling behave strange.");
-            result = RetreiveCapturedComPointer(out var capturedObject);
+            result = RetrieveCapturedComPointer(out var capturedObject);
             ThrowIfNotEquals(0, result, "Seems to be COM marshalling behave strange.");
             if (capturedObject != target)
             {
index db80f22418eef46aa5f3558be8f82eda46656770..164d677fa94cb40a1ca023bf7c303661246305b4 100644 (file)
@@ -78,7 +78,7 @@ DLL_EXPORT int __stdcall CaptureComPointer(IComInterface* pUnk)
     return capturedComObject->DoWork(11);
 }
 
-DLL_EXPORT int __stdcall RetreiveCapturedComPointer(IComInterface** ppUnk)
+DLL_EXPORT int __stdcall RetrieveCapturedComPointer(IComInterface** ppUnk)
 {
     *ppUnk = capturedComObject;
     return S_OK;
index ce6aa64f7995cef4b67244f2b8bca10b6c18d058..12415d8ec581ad0f3e7e0247ac94c946814fd52a 100644 (file)
@@ -503,9 +503,9 @@ namespace UniversalGen
     public class UCGSamples<T, U> : Base
     {
         public T[] _elements = new T[10];
-        
+
         public T member;
-        
+
         public T getMember() { return this.member; }
 
         public override object GetElementAt(int index)
@@ -524,18 +524,18 @@ namespace UniversalGen
                 _elements[index] = (T)value;
             }
         }
-        
+
         private void Empty(T t, T u)
         {
         }
-        
+
         public override void nestedTest()
         {
             testMethodInner();
             //testMethodInner2();
             testMethodInner3();
         }
-        
+
         private MyGenStruct<UCGSamples<T,U>> testMethodInner()
         {
             return default(MyGenStruct<UCGSamples<T,U>>);
@@ -544,14 +544,14 @@ namespace UniversalGen
         {
             return default(MyGenStruct<MyGenStruct<UCGSamples<T,U>>>);
         }
-        
+
         public override bool EmptyMethodTest(object param)
         {
             T t = (T) param;
             Empty(t, t);
             return true;
         }
-        
+
         private T dupTestInternal(T t1, T t2)
         {
             // IL for this method uses a 'dup' opcode
@@ -560,46 +560,46 @@ namespace UniversalGen
             {
                 local = t2;
             }
-            return local;            
+            return local;
         }
-        
+
         public override object dupTest(object o1, object o2)
         {
             return (object) dupTestInternal((T) o1, (T) o2);
         }
-        
+
         private void set(T t)
         {
             member = t;
         }
-        
+
         private void setEQ(T t1, T t2)
         {
             t2 = t1;
         }
-        
+
         private void setByRefInner(T t, ref T tRef)
         {
             tRef = t;
-        } 
-        
+        }
+
         [MethodImpl(MethodImplOptions.NoInlining)]
         private void setInner(T t1, T t2)
         {
             t1 = t2;
         }
-        
+
         [MethodImpl(MethodImplOptions.NoInlining)]
         private void setOuter(T t1, T t2)
         {
             setInner(t1, t2);
         }
-        
+
         private void setByRef(T t, ref T tRef)
         {
             setByRefInner(t, ref tRef);
         }
-        
+
         public override bool FunctionCallTestsSetMember(object o1)
         {
             // eventually calls this.set(T) which sets this.member
@@ -607,7 +607,7 @@ namespace UniversalGen
             set(t);
             return this.member.Equals(t) && t.Equals(this.getMember());
         }
-        
+
         public override bool FunctionCallTestsSetMemberByRef(object o1)
         {
             // same as 'FunctionCallTestsSetMember', but sets this.member via passing it byref
@@ -616,7 +616,7 @@ namespace UniversalGen
             setByRef(t, ref this.member);
             return this.member.Equals(t);
         }
-        
+
         public override bool FunctionCallTestsSetByValue(object o1)
         {
             // Calls setEQ, which sets second arg equal to first
@@ -625,7 +625,7 @@ namespace UniversalGen
             setEQ(t, this.member);
             return !this.member.Equals(t);
         }
-        
+
         public override bool FunctionCallTestsSetLocalByRef(object o1)
         {
             // same as 'FunctionCallTests', but sets a local via passing it byref
@@ -644,7 +644,7 @@ namespace UniversalGen
             return !this.member.Equals(t);
         }
     }
-    
+
     public class InterlockedClass<T, U> : Base where T : class
     {
         T member= default(T);
@@ -675,14 +675,14 @@ namespace UniversalGen
             this.setMember((T)o1);
             T ret = this.exchangeTest((T)o2);
             Assert.IsTrue(ret.Equals(o1));
-            
+
             this.setMember((T)o1);
             Assert.IsTrue(this.member.Equals((T) o1));
             ret = this.compareExchangeTest((T)o2);
-            Assert.IsTrue(ret.Equals(o1));            
+            Assert.IsTrue(ret.Equals(o1));
         }
     }
-    
+
     public class Test
     {
         [TestMethod]
@@ -692,7 +692,7 @@ namespace UniversalGen
             Base o = (Base)Activator.CreateInstance(t);
             o.InterlockedTests((object)"abc", (object)"def");
         }
-        
+
         [TestMethod]
         public static void TestArraysAndGC()
         {
@@ -738,15 +738,15 @@ namespace UniversalGen
             Assert.IsTrue(o.EmptyMethodTest((short) 45));
             Assert.AreEqual((short)o.dupTest((short)12, (short)-453),
                             (short)12);
-                            
-            o.nestedTest();            
-           
+
+            o.nestedTest();
+
             Assert.IsTrue(o.FunctionCallTestsSetMember((short) 79));
             Assert.IsTrue(o.FunctionCallTestsSetMemberByRef((short) 85));
             Assert.IsTrue(o.FunctionCallTestsSetByValue((short) 138));
             Assert.IsTrue(o.FunctionCallTestsSetLocalByRef((short) 19));
             Assert.IsTrue(o.FunctionCallTestsSetByValue2((short) 99));
-            
+
             for (int i = 0; i < 10; i++)
             {
                 // No explicit typecasts
@@ -774,7 +774,7 @@ namespace UniversalGen
                 Assert.AreEqual(((short)o.GetElementAt(i)).ToString(), val.ToString());
             }
         }
-        
+
         [TestMethod]
         public static void TestMakeGenericType()
         {
@@ -919,7 +919,7 @@ namespace UniversalGen
         {
             // In this test, we set values using static code, and the universal shared generic is supposed to read from
             // the same static variables
-            
+
             // Test with primitive types as field types
             TestFieldsBase o = new UCGStaticFieldsLayoutCompatStatic<int, int>();
             o.SetVal1(10);
@@ -1007,7 +1007,7 @@ namespace PartialUSC
         public virtual void TestVirtualCall3(object o, bool TAndUAreTheSame, string instTypeName) { }
         public virtual void TestVirtualCall4(object o, string instTypeName) { }
     }
-    
+
     public class UCGTestVirtualCalls<T, U> : TestVirtualCallsBase
     {
         public override void TestVirtualCall0(object o)
@@ -1169,7 +1169,7 @@ namespace PartialUSC
 
             Assert.IsTrue(result == (short)123);
         }
-        
+
         [TestMethod]
         public static void TestVirtualCalls()
         {
@@ -1605,7 +1605,7 @@ namespace CallingConvention
         public virtual object TestNonVirtualInstanceFunction(object o, object value) { return null; }
     }
 
-    public class UCGSeperateClass<T>
+    public class UCGSeparateClass<T>
     {
         [MethodImpl(MethodImplOptions.NoInlining)]
         public object BoxParam(T t)
@@ -1618,7 +1618,7 @@ namespace CallingConvention
     {
         public override object TestNonVirtualInstanceFunction(object o, object value)
         {
-            return ((UCGSeperateClass<T>)o).BoxParam((T)value);
+            return ((UCGSeparateClass<T>)o).BoxParam((T)value);
         }
     }
 
@@ -2084,17 +2084,17 @@ namespace CallingConvention
             }
         }
 
-        
+
         [TestMethod]
         public static void TestCallInstanceFunction()
         {
             var t = TypeOf.CCT_UCGTestNonVirtualFunctionCallUse.MakeGenericType(TypeOf.Short);
             TestNonVirtualFunctionCallUseBase o = (TestNonVirtualFunctionCallUseBase)Activator.CreateInstance(t);
 
-            new UCGSeperateClass<short>().BoxParam(4);
+            new UCGSeparateClass<short>().BoxParam(4);
 
             short testValue = (short)3817;
-            object returnValue = o.TestNonVirtualInstanceFunction(new UCGSeperateClass<short>(), (object)testValue);
+            object returnValue = o.TestNonVirtualInstanceFunction(new UCGSeparateClass<short>(), (object)testValue);
             Assert.AreEqual(testValue, (short)returnValue);
         }
 
@@ -2251,10 +2251,10 @@ namespace DynamicInvoke
             // SimpleMethod2
             {
                 MethodInfo simpleMethod2 = t.GetTypeInfo().GetDeclaredMethod("SimpleMethod2");
-                object[] args = new object[] { 
-                    123, 
-                    "456", 
-                    new Dictionary<object, string>(), 
+                object[] args = new object[] {
+                    123,
+                    "456",
+                    new Dictionary<object, string>(),
                     new List<float>(new float[]{1.2f, 3.4f, 5.6f})
                 };
 
@@ -2340,7 +2340,7 @@ namespace TypeLayout
         public X x;
         public Y y;
         public Z z;
-        
+
         // This forces recursive type layout to ensure that we come up with a sensible result.
         public static GenStructDynamic<X, Y, Z> test;
     }
@@ -2379,7 +2379,7 @@ namespace TypeLayout
             return t.GetType();
         }
     }
-    
+
 
     public class Test
     {
@@ -2435,7 +2435,7 @@ namespace TypeLayout
             s_staticClass.x = s_dynamicClass.x;
             s_staticClass.y = s_dynamicClass.y;
             s_staticClass.z = s_dynamicClass.z;
-            
+
             GenStructDynamic<sbyte, sbyte, sbyte>.test.x = 0;
 
             Type staticType = null;
@@ -2535,7 +2535,7 @@ namespace TypeLayout
             s_dynamicStruct.x = s_staticStruct.x;
             s_dynamicStruct.y = s_staticStruct.y;
             s_dynamicStruct.z = s_staticStruct.z;
-            
+
 
             Type staticType = null;
             Type dynamicType = null;
@@ -2655,7 +2655,7 @@ namespace TypeLayout
             staticType = typeof(GenStructStatic<short, double, double>);
             dynamicType = typeof(GenStructDynamic<,,>).MakeGenericType(TypeOf.Int16, TypeOf.Double, TypeOf.Double);
             AssertTypesSimilar(staticType, dynamicType);
-            
+
             // top level int
             // mid level bool
             staticType = typeof(GenStructStatic<int, bool, bool>);
@@ -2712,7 +2712,7 @@ namespace TypeLayout
             staticType = typeof(GenStructStatic<int, double, double>);
             dynamicType = typeof(GenStructDynamic<,,>).MakeGenericType(TypeOf.Int32, TypeOf.Double, TypeOf.Double);
             AssertTypesSimilar(staticType, dynamicType);
-            
+
             // top level double
             // mid level bool
             staticType = typeof(GenStructStatic<double, bool, bool>);
@@ -2781,7 +2781,7 @@ namespace ActivatorCreateInstance
         public ReferenceType() { _field = "ReferenceType.ctor"; }
         public override string ToString() { return _field; }
     }
-    public class GenReferenceType<T> 
+    public class GenReferenceType<T>
     {
         string _field;
         public GenReferenceType() { _field = "GenReferenceType<" + typeof(T) + ">.ctor"; }
@@ -2816,8 +2816,8 @@ namespace ActivatorCreateInstance
     }
 
 
-    public class Base 
-    { 
+    public class Base
+    {
         public virtual string Func() { return null; }
     }
     public class ACI_Instantiator<T, U> : Base
@@ -2861,7 +2861,7 @@ namespace ActivatorCreateInstance
             TestActivatorCreateInstance_Inner(TypeOf.ACI_GenReferenceTypeNoDefaultCtor.MakeGenericType(TypeOf.Double), null, true);
             TestActivatorCreateInstance_Inner(typeof(GenReferenceTypeNoDefaultCtor<CommonType1>), null, true);
 
-            TestActivatorCreateInstance_Inner(typeof(AValueType), "AValueType.ctor00");            
+            TestActivatorCreateInstance_Inner(typeof(AValueType), "AValueType.ctor00");
             TestActivatorCreateInstance_Inner(TypeOf.ACI_AGenValueType.MakeGenericType(TypeOf.String), "AGenValueType<System.String>.ctor");
             TestActivatorCreateInstance_Inner(TypeOf.ACI_AGenValueType.MakeGenericType(TypeOf.Double), "AGenValueType<System.Double>.ctor0");
 #if USC
@@ -2970,15 +2970,15 @@ namespace Heuristics
             return typeof(T).ToString();
         }
     }
-    
+
     //
-    // Test USG reflection heuristics by using an rd.xml entry to root the type.  
+    // Test USG reflection heuristics by using an rd.xml entry to root the type.
     // Only look up the type with Type.GetType(string) so it is never statically referenced.
     //
     public struct OnlyUseViaReflection<T>
     {
         T _a;
-        
+
         public OnlyUseViaReflection(int dummyToMakeCscPass) { _a = default(T); }
         public override string ToString() { return "OnlyUseViaReflection<" + typeof(T) + ">.ctor" + _a; }
         public string GenericMethodNotCalledStatically<U>(U u)
@@ -2986,7 +2986,7 @@ namespace Heuristics
             return typeof(U).ToString();
         }
     }
-    
+
     public class OnlyUseViaReflectionGenMethod
     {
         public string GenericMethodNotCalledStatically<T>(T t)
@@ -2994,7 +2994,7 @@ namespace Heuristics
             return typeof(T).ToString();
         }
     }
-    
+
     public class TestHeuristics
     {
         [TestMethod]
@@ -3004,12 +3004,12 @@ namespace Heuristics
             t = TypeOf.OnlyUseViaReflection.MakeGenericType(TypeOf.Double);
             Object o = Activator.CreateInstance(t);
             Assert.IsTrue(o != null);
-            
+
             t = TypeOf.OnlyUseViaReflectionGenMethod;
             Object obj = Activator.CreateInstance(t);
             Assert.IsTrue(obj != null);
         }
-        
+
         //
         // Try instantiating all reflectable generics in this test app over a specific value type to ensure
         // everything marked reflectable works with USG
@@ -3065,7 +3065,7 @@ namespace ArrayVarianceTest
     {
         public string RunTest(object input_obj, int testId)
         {
-            // These typecases will cause RhTypeCast_IsInstanceOfInterface to execute, 
+            // These typecases will cause RhTypeCast_IsInstanceOfInterface to execute,
             // which will check for variance equalities between types.
             IEnumerable<T> source = input_obj as IEnumerable<T>;
             ICollection<T> collection = source as ICollection<T>;
@@ -3317,7 +3317,7 @@ namespace FieldLayoutBugRepro
     }
 
     public interface IMyComparer<T> { }
-    public class MyComparer<T> : IMyComparer<T> 
+    public class MyComparer<T> : IMyComparer<T>
     {
         public override string ToString() { return "MyComparer<" + typeof(T) + ">"; }
     }
@@ -4180,7 +4180,7 @@ namespace ComparerOfTTests
 
             int actualResult = 0;
             bool actualThrow = false;
-          
+
             try
             {
                 actualResult = e.Compare(x,y);
@@ -4293,7 +4293,7 @@ namespace DefaultValueDelegateParameterTests
 
             // Test not using default parameter
             result = del.DynamicInvoke(new object[]{ (object)(short)3, 5});
-            Assert.AreEqual(result, 5); 
+            Assert.AreEqual(result, 5);
         }
     }
 }
index cbc8047593de7df43a47bbd7193d39c5d1e75404..9346e7844f34d8bb858f99b0ca5a74515e3fd3dc 100644 (file)
@@ -1,5 +1,5 @@
 echo off
-setlocal 
+setlocal
 set TESTDIR=%~dp0\..\..\..\..\..\..\artifacts\tests\coreclr\windows.x64.Debug\readytorun\crossboundarylayout\crossboundarytest\crossboundarytest
 set TESTBATCHROOT=%~dp0
 
@@ -175,10 +175,10 @@ call %TESTBATCHROOT%\runindividualtest.cmd %TESTBATCHROOT% %TESTDIR% cg2bubble_A
 goto done
 
 :testCG2SingleInputBubbleCompiledWithoutReferenceToBCE
-echo TEST All combinations of the 5 dlls compiled with Crossgen2 with input bubble enabled and all assemblies passed as 
-echo reference inputs to crossgen2 when compiled b, crossboundarytest and e. a, and d are compiled with the reference 
+echo TEST All combinations of the 5 dlls compiled with Crossgen2 with input bubble enabled and all assemblies passed as
+echo reference inputs to crossgen2 when compiled b, crossboundarytest and e. a, and d are compiled with the reference
 echo set limited to a and d. This simulates a the model of two different sets of input bubble matched assemblies where there is a
-echo root set such as the runtime repo worth of libraries, and a seperately compiled application set.
+echo root set such as the runtime repo worth of libraries, and a separately compiled application set.
 
 call %TESTBATCHROOT%\runindividualtest.cmd %TESTBATCHROOT% %TESTDIR% cg2bubble2_A____ a CG2SingleBubbleADOnly d CG2NoMethods
 call %TESTBATCHROOT%\runindividualtest.cmd %TESTBATCHROOT% %TESTDIR% cg2bubble2__B___ b CG2SingleInputBubble  a CG2NoMethods  d CG2NoMethods e CG2NoMethods
@@ -216,7 +216,7 @@ goto done
 
 :testCG2SingleMixedInputBubble
 echo TEST All combinations of the 5 dlls compiled with Crossgen2 with input bubble enabled for the root set and not
-echo for the more derived set of assemblies. b, crossboundarytest, and e are compiled as standard R2R and 
+echo for the more derived set of assemblies. b, crossboundarytest, and e are compiled as standard R2R and
 echo a, and d are compiled with the reference echo set limited to a and d with input bubble enabled. This simulates a the model
 echo of a framework that ships with input bubble enabled, and the application with standard R2R rules.
 
index 05af04071ea42d02df25e0b44edeb94eaa9a803b..496da7af7c3e92ad8df820b908eb4b81d595c901 100644 (file)
@@ -177,7 +177,7 @@ exit /b %ERRORLEVEL%
 
 :: Note: We've disabled node reuse because it causes file locking issues.
 ::       The issue is that we extend the build with our own targets which
-::       means that that rebuilding cannot successfully delete the task
+::       means that rebuilding cannot successfully delete the task
 ::       assembly.
 set __msbuildCommonArgs=/nologo /nodeReuse:false %__msbuildExtraArgs% /p:Platform=%__MSBuildBuildArch%
 
index 60361f16dafd54e96f2e8e066041e79f4d991c54..47e40b938fd75877c1a9953c1de2d0f6d52660bd 100644 (file)
@@ -216,10 +216,10 @@ namespace SoDBench
 
                 if (s_dotnetExe == null)
                 {
-                    if(!String.IsNullOrEmpty(options.CoreLibariesDirectory))
+                    if(!String.IsNullOrEmpty(options.CoreLibrariesDirectory))
                     {
-                        Console.WriteLine($"** Using core libraries found at {options.CoreLibariesDirectory}");
-                        s_corelibsDir = new DirectoryInfo(options.CoreLibariesDirectory);
+                        Console.WriteLine($"** Using core libraries found at {options.CoreLibrariesDirectory}");
+                        s_corelibsDir = new DirectoryInfo(options.CoreLibrariesDirectory);
                     }
                     else
                     {
@@ -578,8 +578,8 @@ namespace SoDBench
                 }
             }
 
-            [Option("corelibs", Required = false, HelpText = "Specifies the location of .NET Core libaries to patch into dotnet. Cannot be used with --dotnet")]
-            public string CoreLibariesDirectory
+            [Option("corelibs", Required = false, HelpText = "Specifies the location of .NET Core libraries to patch into dotnet. Cannot be used with --dotnet")]
+            public string CoreLibrariesDirectory
             {
                 get { return _corelibsDir; }
 
@@ -644,7 +644,7 @@ namespace SoDBench
                             }
                         });
 
-                    if (options != null && !String.IsNullOrEmpty(options.DotnetExecutable) && !String.IsNullOrEmpty(options.CoreLibariesDirectory))
+                    if (options != null && !String.IsNullOrEmpty(options.DotnetExecutable) && !String.IsNullOrEmpty(options.CoreLibrariesDirectory))
                     {
                         throw new ArgumentException("--dotnet and --corlibs cannot be used together");
                     }