From 0705f8573ec2b3275e8d4871afdb812c456f6e34 Mon Sep 17 00:00:00 2001 From: Moyo Okeremi Date: Wed, 22 Apr 2026 11:07:20 -0700 Subject: [PATCH 01/15] attempt 1 --- src/coreclr/binder/assembly.cpp | 1 - src/coreclr/debug/createdump/main.cpp | 1 - src/coreclr/debug/daccess/dacfn.cpp | 1 - .../debug/debug-pal/win/processdescriptor.cpp | 2 -- src/coreclr/debug/di/dbgtransportmanager.cpp | 1 - src/coreclr/debug/ee/amd64/walker.cpp | 1 - src/coreclr/debug/ee/dactable.cpp | 1 - src/coreclr/debug/ee/debuggermodule.cpp | 1 - src/coreclr/debug/ee/funceval.cpp | 1 - src/coreclr/debug/runtimeinfo/runtimeinfo.cpp | 1 - src/coreclr/dlls/mscoree/exports.cpp | 1 - src/coreclr/dlls/mscorpe/ceefilegenwriter.cpp | 1 - src/coreclr/gc/vxsort/do_vxsort_avx2.cpp | 2 -- src/coreclr/gc/vxsort/do_vxsort_avx512.cpp | 2 -- src/coreclr/gcinfo/arraylist.cpp | 1 - src/coreclr/ildasm/dres.cpp | 1 - src/coreclr/ildasm/ildasmpch.cpp | 1 - src/coreclr/ildasm/windasm.cpp | 1 - src/coreclr/interop/interoplib.cpp | 1 - src/coreclr/jit/block.cpp | 1 - src/coreclr/jit/dllmain.cpp | 1 - src/coreclr/jit/ee_il_dll.cpp | 1 - src/coreclr/jit/importer.cpp | 1 - src/coreclr/jit/loopcloning.cpp | 1 - src/coreclr/jit/promotion.cpp | 1 - src/coreclr/jit/promotiondecomposition.cpp | 1 - src/coreclr/jit/simdcodegenxarch.cpp | 1 - src/coreclr/md/compiler/custattr_import.cpp | 2 -- src/coreclr/md/compiler/regmeta.cpp | 1 - .../md/compiler/regmeta_compilersupport.cpp | 2 -- src/coreclr/md/compiler/regmeta_emit.cpp | 1 - src/coreclr/md/compiler/regmeta_import.cpp | 1 - src/coreclr/md/compiler/regmeta_vm.cpp | 1 - src/coreclr/md/enc/stgtiggerstream.cpp | 1 - src/coreclr/md/runtime/mdinternaldisp.cpp | 1 - src/coreclr/minipal/Windows/memory.cpp | 1 - src/coreclr/nativeaot/Bootstrap/main.cpp | 1 - src/coreclr/nativeaot/Runtime/AsmOffsetsVerify.cpp | 1 - src/coreclr/nativeaot/Runtime/Crst.cpp | 1 - src/coreclr/nativeaot/Runtime/DebugHeader.cpp | 1 - src/coreclr/nativeaot/Runtime/EHHelpers.cpp | 1 - src/coreclr/nativeaot/Runtime/FinalizerHelpers.cpp | 1 - src/coreclr/nativeaot/Runtime/GCHelpers.cpp | 2 -- src/coreclr/nativeaot/Runtime/GcStressControl.cpp | 4 ---- .../nativeaot/Runtime/HandleTableHelpers.cpp | 1 - src/coreclr/nativeaot/Runtime/MathHelpers.cpp | 1 - src/coreclr/nativeaot/Runtime/MiscHelpers.cpp | 5 ----- .../nativeaot/Runtime/RestrictedCallouts.cpp | 1 - src/coreclr/nativeaot/Runtime/RuntimeInstance.cpp | 2 -- src/coreclr/nativeaot/Runtime/SyncClean.cpp | 2 -- src/coreclr/nativeaot/Runtime/ThunksMapping.cpp | 1 - src/coreclr/nativeaot/Runtime/TypeManager.cpp | 2 -- .../Runtime/UniversalTransitionHelpers.cpp | 3 --- .../Runtime/disabledruntimeeventinternal.cpp | 1 - src/coreclr/nativeaot/Runtime/event.cpp | 3 --- .../nativeaot/Runtime/eventpipe/ds-rt-aot.cpp | 1 - .../nativeaot/Runtime/eventpipe/ep-rt-aot.cpp | 1 - .../nativeaot/Runtime/eventpipeinternal.cpp | 2 -- src/coreclr/nativeaot/Runtime/eventtrace.cpp | 2 -- .../nativeaot/Runtime/eventtrace_gcheap.cpp | 2 -- .../nativeaot/Runtime/interoplibinterface_java.cpp | 1 - src/coreclr/nativeaot/Runtime/portable.cpp | 8 -------- src/coreclr/nativeaot/Runtime/rhassert.cpp | 1 - src/coreclr/nativeaot/Runtime/startup.cpp | 5 ----- src/coreclr/nativeaot/Runtime/stressLog.cpp | 1 - src/coreclr/nativeaot/Runtime/threadstore.cpp | 4 ---- .../nativeaot/Runtime/windows/PalCommon.cpp | 2 -- .../nativeaot/Runtime/windows/PalMinWin.cpp | 1 - .../nativeaot/Runtime/yieldprocessornormalized.cpp | 3 --- src/coreclr/runtime/MiscNativeHelpers.cpp | 1 - src/coreclr/tools/metainfo/mdinfo.cpp | 2 +- src/coreclr/tools/metainfo/mdobj.cpp | 3 --- src/coreclr/tools/superpmi/mcs/mcs.cpp | 1 - src/coreclr/tools/superpmi/mcs/removedup.cpp | 1 - src/coreclr/tools/superpmi/mcs/verbmerge.cpp | 1 - .../icorjitinfo_generated.cpp | 2 -- .../superpmi/superpmi-shim-counter/jithost.cpp | 1 - .../superpmi-shim-counter.cpp | 1 - .../superpmi-shim-simple/icorjitinfo_generated.cpp | 2 -- .../superpmi/superpmi-shim-simple/jithost.cpp | 1 - .../superpmi-shim-simple/superpmi-shim-simple.cpp | 1 - .../tools/superpmi/superpmi/streamingsuperpmi.cpp | 3 --- src/coreclr/utilcode/hostimpl.cpp | 1 - src/coreclr/utilcode/log.cpp | 1 - src/coreclr/utilcode/rangelist.cpp | 1 - src/coreclr/utilcode/sstring.cpp | 1 - src/coreclr/vm/amd64/cgenamd64.cpp | 1 - src/coreclr/vm/appdomain.cpp | 2 -- src/coreclr/vm/assembly.cpp | 3 --- src/coreclr/vm/autotrace.cpp | 1 - src/coreclr/vm/binder.cpp | 1 - src/coreclr/vm/callcounting.cpp | 1 - src/coreclr/vm/ceeload.cpp | 2 -- src/coreclr/vm/class.cpp | 1 - src/coreclr/vm/classcompat.cpp | 3 --- src/coreclr/vm/clsload.cpp | 1 - src/coreclr/vm/comcallablewrapper.cpp | 3 --- src/coreclr/vm/cominterfacemarshaler.cpp | 1 - src/coreclr/vm/commodule.cpp | 1 - src/coreclr/vm/comutilnative.cpp | 2 -- src/coreclr/vm/corelib.cpp | 14 -------------- src/coreclr/vm/dllimport.cpp | 1 - src/coreclr/vm/exceptionhandling.cpp | 1 - src/coreclr/vm/fieldmarshaler.cpp | 1 - src/coreclr/vm/finalizerthread.cpp | 1 - src/coreclr/vm/gchelpers.cpp | 2 -- src/coreclr/vm/interopconverter.cpp | 1 - src/coreclr/vm/interoplibinterface_comwrappers.cpp | 2 -- src/coreclr/vm/interoputil.cpp | 1 - src/coreclr/vm/jitinterfacegen.cpp | 1 - src/coreclr/vm/method.cpp | 1 - src/coreclr/vm/methodtable.cpp | 1 - src/coreclr/vm/multicorejit.cpp | 1 - src/coreclr/vm/onstackreplacement.cpp | 1 - src/coreclr/vm/peassembly.cpp | 2 -- src/coreclr/vm/perfmap.cpp | 1 - src/coreclr/vm/pgo.cpp | 1 - src/coreclr/vm/precode_portable.cpp | 1 - src/coreclr/vm/prestub.cpp | 1 - src/coreclr/vm/qcallentrypoints.cpp | 5 ----- src/coreclr/vm/readytoruninfo.cpp | 1 - src/coreclr/vm/runtimehandles.cpp | 1 - src/coreclr/vm/stdinterfaces.cpp | 1 - src/coreclr/vm/stdinterfaces_wrapper.cpp | 1 - src/coreclr/vm/stubhelpers.cpp | 2 -- src/coreclr/vm/stublink.cpp | 1 - src/coreclr/vm/threads.cpp | 2 -- src/coreclr/vm/threadsuspend.cpp | 1 - src/coreclr/vm/tieredcompilation.cpp | 1 - src/coreclr/vm/typehandle.cpp | 1 - src/coreclr/vm/virtualcallstub.cpp | 1 - src/native/corehost/hostmisc/longfile.windows.cpp | 1 - 132 files changed, 1 insertion(+), 209 deletions(-) diff --git a/src/coreclr/binder/assembly.cpp b/src/coreclr/binder/assembly.cpp index 3309c0d17f9358..d9ec7025608ea4 100644 --- a/src/coreclr/binder/assembly.cpp +++ b/src/coreclr/binder/assembly.cpp @@ -12,7 +12,6 @@ // ============================================================ #include "common.h" #include "assembly.hpp" -#include "utils.hpp" #include "assemblybindercommon.hpp" namespace BINDER_SPACE diff --git a/src/coreclr/debug/createdump/main.cpp b/src/coreclr/debug/createdump/main.cpp index b322a3c02a45c5..6d416fbe09dd9e 100644 --- a/src/coreclr/debug/createdump/main.cpp +++ b/src/coreclr/debug/createdump/main.cpp @@ -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. -#include "createdump.h" extern int createdump_main(const int argc, const char* argv[]); extern void UninitializePAL(int exitCode); diff --git a/src/coreclr/debug/daccess/dacfn.cpp b/src/coreclr/debug/daccess/dacfn.cpp index 822d99080a6386..ea4d0f38b5d881 100644 --- a/src/coreclr/debug/daccess/dacfn.cpp +++ b/src/coreclr/debug/daccess/dacfn.cpp @@ -15,7 +15,6 @@ #include #include "peimagelayout.inl" -#include "gcinterface.h" #include "gcinterface.dac.h" struct DacHostVtPtrs { diff --git a/src/coreclr/debug/debug-pal/win/processdescriptor.cpp b/src/coreclr/debug/debug-pal/win/processdescriptor.cpp index 974c632647a664..9eb0010fd10641 100644 --- a/src/coreclr/debug/debug-pal/win/processdescriptor.cpp +++ b/src/coreclr/debug/debug-pal/win/processdescriptor.cpp @@ -2,9 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. #include -#include #include -#include #include "processdescriptor.h" ProcessDescriptor ProcessDescriptor::FromCurrentProcess() diff --git a/src/coreclr/debug/di/dbgtransportmanager.cpp b/src/coreclr/debug/di/dbgtransportmanager.cpp index 828af8928724f6..c56a912b14aa06 100644 --- a/src/coreclr/debug/di/dbgtransportmanager.cpp +++ b/src/coreclr/debug/di/dbgtransportmanager.cpp @@ -3,7 +3,6 @@ #include "stdafx.h" #include "dbgtransportsession.h" -#include "dbgtransportmanager.h" #ifdef FEATURE_DBGIPC_TRANSPORT_DI diff --git a/src/coreclr/debug/ee/amd64/walker.cpp b/src/coreclr/debug/ee/amd64/walker.cpp index 5ed3b9c8e319be..b1125bde8b34bd 100644 --- a/src/coreclr/debug/ee/amd64/walker.cpp +++ b/src/coreclr/debug/ee/amd64/walker.cpp @@ -12,7 +12,6 @@ #include "walker.h" #include "frames.h" -#include "openum.h" #include "amd64InstrDecode.h" #ifdef TARGET_AMD64 diff --git a/src/coreclr/debug/ee/dactable.cpp b/src/coreclr/debug/ee/dactable.cpp index 4c8fe9ab7bc0d7..15b069c1f5574d 100644 --- a/src/coreclr/debug/ee/dactable.cpp +++ b/src/coreclr/debug/ee/dactable.cpp @@ -16,7 +16,6 @@ #include "../../vm/codeman.h" #include "../../vm/eedbginterfaceimpl.h" #include "../../vm/common.h" -#include "../../vm/gcenv.h" #include "../../vm/ecall.h" #include "../../vm/cdacplatformmetadata.hpp" diff --git a/src/coreclr/debug/ee/debuggermodule.cpp b/src/coreclr/debug/ee/debuggermodule.cpp index 11b4cc59c70b9e..1ccdc0ea04bb1d 100644 --- a/src/coreclr/debug/ee/debuggermodule.cpp +++ b/src/coreclr/debug/ee/debuggermodule.cpp @@ -14,7 +14,6 @@ #include "eeconfig.h" // This is here even for retail & free builds... #include "vars.hpp" #include -#include "ilformatter.h" #include "debuginfostore.h" diff --git a/src/coreclr/debug/ee/funceval.cpp b/src/coreclr/debug/ee/funceval.cpp index f251de3016ce34..562434bf1e2a54 100644 --- a/src/coreclr/debug/ee/funceval.cpp +++ b/src/coreclr/debug/ee/funceval.cpp @@ -21,7 +21,6 @@ #include "threads.h" #include "appdomain.inl" #include -#include "ilformatter.h" #ifndef DACCESS_COMPILE diff --git a/src/coreclr/debug/runtimeinfo/runtimeinfo.cpp b/src/coreclr/debug/runtimeinfo/runtimeinfo.cpp index 7dfd0c2afd4b85..261f9c5acc247e 100644 --- a/src/coreclr/debug/runtimeinfo/runtimeinfo.cpp +++ b/src/coreclr/debug/runtimeinfo/runtimeinfo.cpp @@ -8,7 +8,6 @@ // //***************************************************************************** -#include #include #include diff --git a/src/coreclr/dlls/mscoree/exports.cpp b/src/coreclr/dlls/mscoree/exports.cpp index 053993ad1918a3..7ebf191295995e 100644 --- a/src/coreclr/dlls/mscoree/exports.cpp +++ b/src/coreclr/dlls/mscoree/exports.cpp @@ -14,7 +14,6 @@ #include #include #include -#include "../../vm/ceemain.h" #ifdef FEATURE_GDBJIT #include "../../vm/gdbjithelpers.h" #endif // FEATURE_GDBJIT diff --git a/src/coreclr/dlls/mscorpe/ceefilegenwriter.cpp b/src/coreclr/dlls/mscorpe/ceefilegenwriter.cpp index fe7cc543221d37..dd879a766b404d 100644 --- a/src/coreclr/dlls/mscorpe/ceefilegenwriter.cpp +++ b/src/coreclr/dlls/mscorpe/ceefilegenwriter.cpp @@ -12,7 +12,6 @@ #include #include "corerror.h" -#include // The following block contains a template for the default entry point stubs of a CLR // IL only program. One can emit these stubs (with some fix-ups) and make diff --git a/src/coreclr/gc/vxsort/do_vxsort_avx2.cpp b/src/coreclr/gc/vxsort/do_vxsort_avx2.cpp index 1f097ede355d2a..dbabfc08da8f37 100644 --- a/src/coreclr/gc/vxsort/do_vxsort_avx2.cpp +++ b/src/coreclr/gc/vxsort/do_vxsort_avx2.cpp @@ -3,7 +3,6 @@ #include "common.h" -#include "vxsort_targets_enable_avx2.h" #include "vxsort.h" #include "machine_traits.avx2.h" @@ -16,4 +15,3 @@ void do_vxsort_avx2 (uint8_t** low, uint8_t** high, uint8_t* range_low, uint8_t* auto sorter = vxsort::vxsort(); sorter.sort ((int64_t*)low, (int64_t*)high, (int64_t)range_low, (int64_t)(range_high+sizeof(uint8_t*))); } -#include "vxsort_targets_disable.h" diff --git a/src/coreclr/gc/vxsort/do_vxsort_avx512.cpp b/src/coreclr/gc/vxsort/do_vxsort_avx512.cpp index 792492046fd9cf..f8791d0a11781e 100644 --- a/src/coreclr/gc/vxsort/do_vxsort_avx512.cpp +++ b/src/coreclr/gc/vxsort/do_vxsort_avx512.cpp @@ -3,7 +3,6 @@ #include "common.h" -#include "vxsort_targets_enable_avx512.h" #include "vxsort.h" #include "machine_traits.avx512.h" @@ -15,4 +14,3 @@ void do_vxsort_avx512 (uint8_t** low, uint8_t** high, uint8_t* range_low, uint8_ auto sorter = vxsort::vxsort(); sorter.sort ((int64_t*)low, (int64_t*)high, (int64_t)range_low, (int64_t)(range_high+sizeof(uint8_t*))); } -#include "vxsort_targets_disable.h" diff --git a/src/coreclr/gcinfo/arraylist.cpp b/src/coreclr/gcinfo/arraylist.cpp index 4256847722e735..9a6fbc5ecbdb35 100644 --- a/src/coreclr/gcinfo/arraylist.cpp +++ b/src/coreclr/gcinfo/arraylist.cpp @@ -16,7 +16,6 @@ extern "C" void assertAbort(const char* why, const char* file, unsigned line); #define _ASSERTE(expr) (void)0 #endif // _DEBUG -#include "gcinfohelpers.h" #include #include "contract.h" #include "iallocator.h" diff --git a/src/coreclr/ildasm/dres.cpp b/src/coreclr/ildasm/dres.cpp index 0e1747b9327198..72fa7943df08a8 100644 --- a/src/coreclr/ildasm/dres.cpp +++ b/src/coreclr/ildasm/dres.cpp @@ -12,7 +12,6 @@ #include "dasmenum.hpp" #include "formattype.h" #include "dis.h" -#include "resource.h" #include "ilformatter.h" #include "outstring.h" diff --git a/src/coreclr/ildasm/ildasmpch.cpp b/src/coreclr/ildasm/ildasmpch.cpp index c78ec75520d2e9..069da353e668c6 100644 --- a/src/coreclr/ildasm/ildasmpch.cpp +++ b/src/coreclr/ildasm/ildasmpch.cpp @@ -3,4 +3,3 @@ // // This is just to build the PCH for ildasm -#include "ildasmpch.h" diff --git a/src/coreclr/ildasm/windasm.cpp b/src/coreclr/ildasm/windasm.cpp index 4bf36bb6c08962..87c35aec6ed6a6 100644 --- a/src/coreclr/ildasm/windasm.cpp +++ b/src/coreclr/ildasm/windasm.cpp @@ -10,7 +10,6 @@ ************************************************************************************************/ #include "ildasmpch.h" -#include "dynamicarray.h" #include "dasmenum.hpp" #include "dis.h" diff --git a/src/coreclr/interop/interoplib.cpp b/src/coreclr/interop/interoplib.cpp index b86842bcc3f0fe..9cbfae6d1bccb7 100644 --- a/src/coreclr/interop/interoplib.cpp +++ b/src/coreclr/interop/interoplib.cpp @@ -4,7 +4,6 @@ #include "platform.h" #include #include -#include #ifdef FEATURE_COMWRAPPERS #include "comwrappers.hpp" diff --git a/src/coreclr/jit/block.cpp b/src/coreclr/jit/block.cpp index 03c1c23ddeeb0a..fff5c691d2c1ac 100644 --- a/src/coreclr/jit/block.cpp +++ b/src/coreclr/jit/block.cpp @@ -15,7 +15,6 @@ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX #pragma hdrstop #endif -#include "jitstd/algorithm.h" #if MEASURE_BLOCK_SIZE /* static */ diff --git a/src/coreclr/jit/dllmain.cpp b/src/coreclr/jit/dllmain.cpp index fcc829f054a88a..a1d11438bf9421 100644 --- a/src/coreclr/jit/dllmain.cpp +++ b/src/coreclr/jit/dllmain.cpp @@ -6,7 +6,6 @@ #pragma hdrstop #endif #include "emit.h" -#include "corexcep.h" #ifndef DLLEXPORT #define DLLEXPORT diff --git a/src/coreclr/jit/ee_il_dll.cpp b/src/coreclr/jit/ee_il_dll.cpp index e75f9b521d6fc1..48087bc45c5056 100644 --- a/src/coreclr/jit/ee_il_dll.cpp +++ b/src/coreclr/jit/ee_il_dll.cpp @@ -17,7 +17,6 @@ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX #pragma hdrstop #endif #include "emit.h" -#include "corexcep.h" #if !defined(HOST_UNIX) #include // For _dup, _setmode diff --git a/src/coreclr/jit/importer.cpp b/src/coreclr/jit/importer.cpp index 84749718f92d18..afbe52f7f2e38e 100644 --- a/src/coreclr/jit/importer.cpp +++ b/src/coreclr/jit/importer.cpp @@ -17,7 +17,6 @@ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX #pragma hdrstop #endif -#include "corexcep.h" /***************************************************************************** * diff --git a/src/coreclr/jit/loopcloning.cpp b/src/coreclr/jit/loopcloning.cpp index 615841a282ae74..6cdf2ff3c2139d 100644 --- a/src/coreclr/jit/loopcloning.cpp +++ b/src/coreclr/jit/loopcloning.cpp @@ -11,7 +11,6 @@ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */ #include "jitpch.h" -#include "jitstd/algorithm.h" #ifdef DEBUG diff --git a/src/coreclr/jit/promotion.cpp b/src/coreclr/jit/promotion.cpp index 80562630ec1ed8..0f075415da3532 100644 --- a/src/coreclr/jit/promotion.cpp +++ b/src/coreclr/jit/promotion.cpp @@ -34,7 +34,6 @@ #include "jitpch.h" #include "promotion.h" -#include "jitstd/algorithm.h" //------------------------------------------------------------------------ // PhysicalPromotion: Promote structs based on primitive access patterns. diff --git a/src/coreclr/jit/promotiondecomposition.cpp b/src/coreclr/jit/promotiondecomposition.cpp index f82c33c6e1b910..75aca39aa598ff 100644 --- a/src/coreclr/jit/promotiondecomposition.cpp +++ b/src/coreclr/jit/promotiondecomposition.cpp @@ -30,7 +30,6 @@ #include "jitpch.h" #include "promotion.h" -#include "jitstd/algorithm.h" // Represents a list of statements; this is the result of store decomposition. class DecompositionStatementList diff --git a/src/coreclr/jit/simdcodegenxarch.cpp b/src/coreclr/jit/simdcodegenxarch.cpp index 0853b4c859991a..7e8feb467e1cd9 100644 --- a/src/coreclr/jit/simdcodegenxarch.cpp +++ b/src/coreclr/jit/simdcodegenxarch.cpp @@ -23,7 +23,6 @@ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX #include "sideeffects.h" #include "lower.h" #include "gcinfo.h" -#include "gcinfoencoder.h" //----------------------------------------------------------------------------- // genStoreIndTypeSimd12: store indirect a TYP_SIMD12 (i.e. Vector3) to memory. diff --git a/src/coreclr/md/compiler/custattr_import.cpp b/src/coreclr/md/compiler/custattr_import.cpp index 57465fb936ce10..ae745d53232581 100644 --- a/src/coreclr/md/compiler/custattr_import.cpp +++ b/src/coreclr/md/compiler/custattr_import.cpp @@ -16,8 +16,6 @@ #include "rwutil.h" #include "mdlog.h" #include "importhelper.h" -#include "posterror.h" -#include "cahlprinternal.h" #include "custattr.h" #include "corhdr.h" #include diff --git a/src/coreclr/md/compiler/regmeta.cpp b/src/coreclr/md/compiler/regmeta.cpp index b635d43b212435..0bc8a80d3cdeb1 100644 --- a/src/coreclr/md/compiler/regmeta.cpp +++ b/src/coreclr/md/compiler/regmeta.cpp @@ -18,7 +18,6 @@ #include "importhelper.h" #include "filtermanager.h" #include "switches.h" -#include "posterror.h" #include "stgio.h" #include "sstring.h" #include diff --git a/src/coreclr/md/compiler/regmeta_compilersupport.cpp b/src/coreclr/md/compiler/regmeta_compilersupport.cpp index 4dfb1c4e767b2a..4e29126aaa2a5c 100644 --- a/src/coreclr/md/compiler/regmeta_compilersupport.cpp +++ b/src/coreclr/md/compiler/regmeta_compilersupport.cpp @@ -15,10 +15,8 @@ #include "mdutil.h" #include "rwutil.h" #include "mdlog.h" -#include "importhelper.h" #include "filtermanager.h" #include "switches.h" -#include "posterror.h" #include "stgio.h" #include "sstring.h" diff --git a/src/coreclr/md/compiler/regmeta_emit.cpp b/src/coreclr/md/compiler/regmeta_emit.cpp index 4a33c52245b64e..ebf90ff6ac69a6 100644 --- a/src/coreclr/md/compiler/regmeta_emit.cpp +++ b/src/coreclr/md/compiler/regmeta_emit.cpp @@ -22,7 +22,6 @@ #include "importhelper.h" #include "filtermanager.h" #include "switches.h" -#include "posterror.h" #include "stgio.h" #include "sstring.h" diff --git a/src/coreclr/md/compiler/regmeta_import.cpp b/src/coreclr/md/compiler/regmeta_import.cpp index 97c011790aba6f..685c18c911b05b 100644 --- a/src/coreclr/md/compiler/regmeta_import.cpp +++ b/src/coreclr/md/compiler/regmeta_import.cpp @@ -21,7 +21,6 @@ #include "importhelper.h" #include "filtermanager.h" #include "switches.h" -#include "posterror.h" #include "stgio.h" #include "sstring.h" diff --git a/src/coreclr/md/compiler/regmeta_vm.cpp b/src/coreclr/md/compiler/regmeta_vm.cpp index 7d4840f1de4bc9..82c5c5919888a5 100644 --- a/src/coreclr/md/compiler/regmeta_vm.cpp +++ b/src/coreclr/md/compiler/regmeta_vm.cpp @@ -20,7 +20,6 @@ #include "importhelper.h" #include "filtermanager.h" #include "switches.h" -#include "posterror.h" #include "stgio.h" #include "sstring.h" diff --git a/src/coreclr/md/enc/stgtiggerstream.cpp b/src/coreclr/md/enc/stgtiggerstream.cpp index 3e5eba9b82f5eb..48559796c27e37 100644 --- a/src/coreclr/md/enc/stgtiggerstream.cpp +++ b/src/coreclr/md/enc/stgtiggerstream.cpp @@ -12,7 +12,6 @@ #include "stdafx.h" #include "stgtiggerstream.h" #include "stgtiggerstorage.h" -#include "posterror.h" // // diff --git a/src/coreclr/md/runtime/mdinternaldisp.cpp b/src/coreclr/md/runtime/mdinternaldisp.cpp index 2e077a54ca8b69..903def6127e3a6 100644 --- a/src/coreclr/md/runtime/mdinternaldisp.cpp +++ b/src/coreclr/md/runtime/mdinternaldisp.cpp @@ -11,7 +11,6 @@ #include "stdafx.h" #include "mdinternaldisp.h" #include "mdinternalro.h" -#include "posterror.h" #include "corpriv.h" #include "pedecoder.h" #include "metamodel.h" diff --git a/src/coreclr/minipal/Windows/memory.cpp b/src/coreclr/minipal/Windows/memory.cpp index e4d95c3463f904..14be8b85034af1 100644 --- a/src/coreclr/minipal/Windows/memory.cpp +++ b/src/coreclr/minipal/Windows/memory.cpp @@ -4,7 +4,6 @@ #include #include -#include #include #include "minipal.h" diff --git a/src/coreclr/nativeaot/Bootstrap/main.cpp b/src/coreclr/nativeaot/Bootstrap/main.cpp index 8b09cd4c7ca667..1627efdfec70de 100644 --- a/src/coreclr/nativeaot/Bootstrap/main.cpp +++ b/src/coreclr/nativeaot/Bootstrap/main.cpp @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. #include -#include #include #if defined(DEBUG) && defined(_WIN32) diff --git a/src/coreclr/nativeaot/Runtime/AsmOffsetsVerify.cpp b/src/coreclr/nativeaot/Runtime/AsmOffsetsVerify.cpp index a0e4356830fbd3..5d462c6c769028 100644 --- a/src/coreclr/nativeaot/Runtime/AsmOffsetsVerify.cpp +++ b/src/coreclr/nativeaot/Runtime/AsmOffsetsVerify.cpp @@ -5,7 +5,6 @@ #include "gcheaputilities.h" #include "rhassert.h" #include "slist.h" -#include "regdisplay.h" #include "StackFrameIterator.h" #include "thread.h" #include "TargetPtrs.h" diff --git a/src/coreclr/nativeaot/Runtime/Crst.cpp b/src/coreclr/nativeaot/Runtime/Crst.cpp index 36beaf28ed5656..e0db73075ccaf9 100644 --- a/src/coreclr/nativeaot/Runtime/Crst.cpp +++ b/src/coreclr/nativeaot/Runtime/Crst.cpp @@ -3,7 +3,6 @@ #include "common.h" #include "CommonTypes.h" #include "CommonMacros.h" -#include "PalLimitedContext.h" #include "Pal.h" #include "holder.h" #include "Crst.h" diff --git a/src/coreclr/nativeaot/Runtime/DebugHeader.cpp b/src/coreclr/nativeaot/Runtime/DebugHeader.cpp index 9c2a06892c629f..c4c6bd72815dd9 100644 --- a/src/coreclr/nativeaot/Runtime/DebugHeader.cpp +++ b/src/coreclr/nativeaot/Runtime/DebugHeader.cpp @@ -11,7 +11,6 @@ #include "Pal.h" #include "holder.h" #include "RuntimeInstance.h" -#include "regdisplay.h" #include "StackFrameIterator.h" #include "thread.h" #include "threadstore.h" diff --git a/src/coreclr/nativeaot/Runtime/EHHelpers.cpp b/src/coreclr/nativeaot/Runtime/EHHelpers.cpp index 6f8d0873282a15..36a41ae3f40a07 100644 --- a/src/coreclr/nativeaot/Runtime/EHHelpers.cpp +++ b/src/coreclr/nativeaot/Runtime/EHHelpers.cpp @@ -15,7 +15,6 @@ #include "holder.h" #include "Crst.h" #include "RuntimeInstance.h" -#include "event.h" #include "regdisplay.h" #include "StackFrameIterator.h" #include "thread.h" diff --git a/src/coreclr/nativeaot/Runtime/FinalizerHelpers.cpp b/src/coreclr/nativeaot/Runtime/FinalizerHelpers.cpp index ed25a700b89b10..cb3c54d599aa9c 100644 --- a/src/coreclr/nativeaot/Runtime/FinalizerHelpers.cpp +++ b/src/coreclr/nativeaot/Runtime/FinalizerHelpers.cpp @@ -12,7 +12,6 @@ #include "RuntimeInstance.h" #include "shash.h" -#include "regdisplay.h" #include "StackFrameIterator.h" #include "thread.h" diff --git a/src/coreclr/nativeaot/Runtime/GCHelpers.cpp b/src/coreclr/nativeaot/Runtime/GCHelpers.cpp index 2685a33faad092..b64777effe6b50 100644 --- a/src/coreclr/nativeaot/Runtime/GCHelpers.cpp +++ b/src/coreclr/nativeaot/Runtime/GCHelpers.cpp @@ -17,9 +17,7 @@ #include "PalLimitedContext.h" #include "slist.h" -#include "regdisplay.h" #include "StackFrameIterator.h" -#include "interoplibinterface.h" #include "thread.h" #include "threadstore.h" diff --git a/src/coreclr/nativeaot/Runtime/GcStressControl.cpp b/src/coreclr/nativeaot/Runtime/GcStressControl.cpp index dc9506acebb0a6..2723c9f9b1a1c3 100644 --- a/src/coreclr/nativeaot/Runtime/GcStressControl.cpp +++ b/src/coreclr/nativeaot/Runtime/GcStressControl.cpp @@ -8,18 +8,14 @@ #include "CommonTypes.h" #include "CommonMacros.h" #include "daccess.h" -#include "PalLimitedContext.h" #include "Pal.h" #include "rhassert.h" #include "holder.h" #include "Crst.h" #include "RhConfig.h" -#include "slist.h" -#include "regdisplay.h" #include "forward_declarations.h" #include "StackFrameIterator.h" #include "thread.h" -#include "event.h" #include "threadstore.h" #include "threadstore.inl" #include "shash.h" diff --git a/src/coreclr/nativeaot/Runtime/HandleTableHelpers.cpp b/src/coreclr/nativeaot/Runtime/HandleTableHelpers.cpp index 7cf154d29c0cb3..5139979d613267 100644 --- a/src/coreclr/nativeaot/Runtime/HandleTableHelpers.cpp +++ b/src/coreclr/nativeaot/Runtime/HandleTableHelpers.cpp @@ -6,7 +6,6 @@ #include "objecthandle.h" #include "RestrictedCallouts.h" #include "gchandleutilities.h" -#include "interoplibinterface.h" FCIMPL2(OBJECTHANDLE, RhpHandleAlloc, Object *pObject, int type) diff --git a/src/coreclr/nativeaot/Runtime/MathHelpers.cpp b/src/coreclr/nativeaot/Runtime/MathHelpers.cpp index 2cd1075b047502..ab164e3ca5b3cc 100644 --- a/src/coreclr/nativeaot/Runtime/MathHelpers.cpp +++ b/src/coreclr/nativeaot/Runtime/MathHelpers.cpp @@ -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. #include "common.h" -#include "CommonTypes.h" #include "CommonMacros.h" #include "rhassert.h" diff --git a/src/coreclr/nativeaot/Runtime/MiscHelpers.cpp b/src/coreclr/nativeaot/Runtime/MiscHelpers.cpp index 4c19087fa577df..2245aba11c44f8 100644 --- a/src/coreclr/nativeaot/Runtime/MiscHelpers.cpp +++ b/src/coreclr/nativeaot/Runtime/MiscHelpers.cpp @@ -17,10 +17,8 @@ #include "Crst.h" #include "rhbinder.h" #include "RuntimeInstance.h" -#include "regdisplay.h" #include "StackFrameIterator.h" #include "thread.h" -#include "event.h" #include "threadstore.h" #include "threadstore.inl" #include "thread.inl" @@ -30,12 +28,9 @@ #include "ObjectLayout.h" #include "MethodTable.inl" #include "CommonMacros.inl" -#include "volatile.h" #include "yieldprocessornormalized.h" #include "RhConfig.h" -#include #include -#include FCIMPL0(void, RhDebugBreak) { diff --git a/src/coreclr/nativeaot/Runtime/RestrictedCallouts.cpp b/src/coreclr/nativeaot/Runtime/RestrictedCallouts.cpp index 782d7f5f9dc8bb..0cb23478cff5eb 100644 --- a/src/coreclr/nativeaot/Runtime/RestrictedCallouts.cpp +++ b/src/coreclr/nativeaot/Runtime/RestrictedCallouts.cpp @@ -22,7 +22,6 @@ #include "MethodTable.h" #include "ObjectLayout.h" #include "event.h" -#include "regdisplay.h" #include "StackFrameIterator.h" #include "thread.h" #include "threadstore.h" diff --git a/src/coreclr/nativeaot/Runtime/RuntimeInstance.cpp b/src/coreclr/nativeaot/Runtime/RuntimeInstance.cpp index 74a930a0e9bdc8..35c8c2454e610d 100644 --- a/src/coreclr/nativeaot/Runtime/RuntimeInstance.cpp +++ b/src/coreclr/nativeaot/Runtime/RuntimeInstance.cpp @@ -13,8 +13,6 @@ #include "Crst.h" #include "rhbinder.h" #include "RuntimeInstance.h" -#include "event.h" -#include "regdisplay.h" #include "StackFrameIterator.h" #include "thread.h" #include "threadstore.h" diff --git a/src/coreclr/nativeaot/Runtime/SyncClean.cpp b/src/coreclr/nativeaot/Runtime/SyncClean.cpp index 57ca29fce9c70b..e010c0361fe7d3 100644 --- a/src/coreclr/nativeaot/Runtime/SyncClean.cpp +++ b/src/coreclr/nativeaot/Runtime/SyncClean.cpp @@ -4,8 +4,6 @@ #include "CommonTypes.h" #include "CommonMacros.h" #include "daccess.h" -#include "PalLimitedContext.h" -#include "Pal.h" #include "rhassert.h" #include "slist.h" #include "holder.h" diff --git a/src/coreclr/nativeaot/Runtime/ThunksMapping.cpp b/src/coreclr/nativeaot/Runtime/ThunksMapping.cpp index f29c73333e1184..69f298e7b86acd 100644 --- a/src/coreclr/nativeaot/Runtime/ThunksMapping.cpp +++ b/src/coreclr/nativeaot/Runtime/ThunksMapping.cpp @@ -7,7 +7,6 @@ #include "daccess.h" #include "PalLimitedContext.h" #include "CommonMacros.inl" -#include "volatile.h" #include "Pal.h" #include "rhassert.h" diff --git a/src/coreclr/nativeaot/Runtime/TypeManager.cpp b/src/coreclr/nativeaot/Runtime/TypeManager.cpp index 8586781cfc6c94..71a4e09cc26376 100644 --- a/src/coreclr/nativeaot/Runtime/TypeManager.cpp +++ b/src/coreclr/nativeaot/Runtime/TypeManager.cpp @@ -11,10 +11,8 @@ #include "slist.h" #include "shash.h" #include "rhbinder.h" -#include "regdisplay.h" #include "StackFrameIterator.h" #include "thread.h" -#include "event.h" #include "threadstore.h" #include "TypeManager.h" diff --git a/src/coreclr/nativeaot/Runtime/UniversalTransitionHelpers.cpp b/src/coreclr/nativeaot/Runtime/UniversalTransitionHelpers.cpp index aabf45392313ae..a7724164d79aeb 100644 --- a/src/coreclr/nativeaot/Runtime/UniversalTransitionHelpers.cpp +++ b/src/coreclr/nativeaot/Runtime/UniversalTransitionHelpers.cpp @@ -2,10 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. #include "common.h" -#include "CommonTypes.h" #include "CommonMacros.h" -#include "PalLimitedContext.h" -#include "Pal.h" #ifdef _DEBUG #define TRASH_SAVED_ARGUMENT_REGISTERS diff --git a/src/coreclr/nativeaot/Runtime/disabledruntimeeventinternal.cpp b/src/coreclr/nativeaot/Runtime/disabledruntimeeventinternal.cpp index 02af69dad5a0f3..552204c570d734 100644 --- a/src/coreclr/nativeaot/Runtime/disabledruntimeeventinternal.cpp +++ b/src/coreclr/nativeaot/Runtime/disabledruntimeeventinternal.cpp @@ -4,7 +4,6 @@ #include "common.h" #include "CommonTypes.h" #include "CommonMacros.h" -#include "Pal.h" #ifdef FEATURE_PERFTRACING diff --git a/src/coreclr/nativeaot/Runtime/event.cpp b/src/coreclr/nativeaot/Runtime/event.cpp index 1d97dd30780d1c..491ee7a401c1eb 100644 --- a/src/coreclr/nativeaot/Runtime/event.cpp +++ b/src/coreclr/nativeaot/Runtime/event.cpp @@ -6,11 +6,8 @@ #include "CommonMacros.h" #include "daccess.h" #include "event.h" -#include "PalLimitedContext.h" #include "Pal.h" #include "rhassert.h" -#include "slist.h" -#include "regdisplay.h" #include "StackFrameIterator.h" #include "thread.h" #include "holder.h" diff --git a/src/coreclr/nativeaot/Runtime/eventpipe/ds-rt-aot.cpp b/src/coreclr/nativeaot/Runtime/eventpipe/ds-rt-aot.cpp index cf0878f3cf20b0..00593b94f0f361 100644 --- a/src/coreclr/nativeaot/Runtime/eventpipe/ds-rt-aot.cpp +++ b/src/coreclr/nativeaot/Runtime/eventpipe/ds-rt-aot.cpp @@ -7,7 +7,6 @@ #include #endif -#include #ifdef __APPLE__ #include diff --git a/src/coreclr/nativeaot/Runtime/eventpipe/ep-rt-aot.cpp b/src/coreclr/nativeaot/Runtime/eventpipe/ep-rt-aot.cpp index 5e8c8c0e258ed1..a3c04aef515fd0 100644 --- a/src/coreclr/nativeaot/Runtime/eventpipe/ep-rt-aot.cpp +++ b/src/coreclr/nativeaot/Runtime/eventpipe/ep-rt-aot.cpp @@ -17,7 +17,6 @@ #include #endif -#include #include #include "gcenv.h" diff --git a/src/coreclr/nativeaot/Runtime/eventpipeinternal.cpp b/src/coreclr/nativeaot/Runtime/eventpipeinternal.cpp index a03384c9fbf2cc..3ec9c57777b85f 100644 --- a/src/coreclr/nativeaot/Runtime/eventpipeinternal.cpp +++ b/src/coreclr/nativeaot/Runtime/eventpipeinternal.cpp @@ -10,9 +10,7 @@ #include #include #include -#include #include -#include #include "minipal/time.h" #ifdef FEATURE_PERFTRACING diff --git a/src/coreclr/nativeaot/Runtime/eventtrace.cpp b/src/coreclr/nativeaot/Runtime/eventtrace.cpp index 9463e980adad01..abadf9a001503c 100644 --- a/src/coreclr/nativeaot/Runtime/eventtrace.cpp +++ b/src/coreclr/nativeaot/Runtime/eventtrace.cpp @@ -11,7 +11,6 @@ #include "gcenv.h" #include "gcheaputilities.h" -#include "daccess.h" #include "eventtrace_etw.h" #include "eventtracebase.h" @@ -21,7 +20,6 @@ #include "threadstore.h" #include "threadstore.inl" -#include EVENTPIPE_TRACE_CONTEXT MICROSOFT_WINDOWS_DOTNETRUNTIME_PROVIDER_EVENTPIPE_Context = { W("Microsoft-Windows-DotNETRuntime"), 0, false, 0 }; DOTNET_TRACE_CONTEXT MICROSOFT_WINDOWS_DOTNETRUNTIME_PROVIDER_DOTNET_Context = { diff --git a/src/coreclr/nativeaot/Runtime/eventtrace_gcheap.cpp b/src/coreclr/nativeaot/Runtime/eventtrace_gcheap.cpp index 6c584f57186424..3431145ca89885 100644 --- a/src/coreclr/nativeaot/Runtime/eventtrace_gcheap.cpp +++ b/src/coreclr/nativeaot/Runtime/eventtrace_gcheap.cpp @@ -10,10 +10,8 @@ #include "gcenv.h" #include "gcheaputilities.h" -#include "daccess.h" #include "slist.h" -#include "regdisplay.h" #include "StackFrameIterator.h" #include "thread.h" #include "threadstore.h" diff --git a/src/coreclr/nativeaot/Runtime/interoplibinterface_java.cpp b/src/coreclr/nativeaot/Runtime/interoplibinterface_java.cpp index 1fcda8be6089d8..1c8e9892848dd9 100644 --- a/src/coreclr/nativeaot/Runtime/interoplibinterface_java.cpp +++ b/src/coreclr/nativeaot/Runtime/interoplibinterface_java.cpp @@ -6,7 +6,6 @@ // Runtime headers #include "common.h" #include "gcenv.h" -#include "gcenv.ee.h" #include "gcheaputilities.h" #include "gchandleutilities.h" #include "thread.h" diff --git a/src/coreclr/nativeaot/Runtime/portable.cpp b/src/coreclr/nativeaot/Runtime/portable.cpp index 55bb68b50ec6b9..cf90e0fa43477b 100644 --- a/src/coreclr/nativeaot/Runtime/portable.cpp +++ b/src/coreclr/nativeaot/Runtime/portable.cpp @@ -5,27 +5,19 @@ #include "CommonTypes.h" #include "CommonMacros.h" #include "daccess.h" -#include "PalLimitedContext.h" #include "CommonMacros.inl" -#include "volatile.h" #include "Pal.h" #include "rhassert.h" #include "slist.h" -#include "shash.h" #include "holder.h" -#include "rhbinder.h" -#include "Crst.h" #include "RuntimeInstance.h" -#include "event.h" -#include "regdisplay.h" #include "StackFrameIterator.h" #include "thread.h" #include "threadstore.h" #include "threadstore.inl" #include "MethodTable.h" -#include "TypeManager.h" #include "MethodTable.inl" #include "ObjectLayout.h" diff --git a/src/coreclr/nativeaot/Runtime/rhassert.cpp b/src/coreclr/nativeaot/Runtime/rhassert.cpp index 91166a1e74a4b9..46fef27d559d42 100644 --- a/src/coreclr/nativeaot/Runtime/rhassert.cpp +++ b/src/coreclr/nativeaot/Runtime/rhassert.cpp @@ -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. #include "common.h" -#include "CommonTypes.h" #include "CommonMacros.h" #include "PalLimitedContext.h" #include "Pal.h" diff --git a/src/coreclr/nativeaot/Runtime/startup.cpp b/src/coreclr/nativeaot/Runtime/startup.cpp index d7d9d3180d091c..2af6a4d837389e 100644 --- a/src/coreclr/nativeaot/Runtime/startup.cpp +++ b/src/coreclr/nativeaot/Runtime/startup.cpp @@ -7,8 +7,6 @@ #include "PalLimitedContext.h" #include "Pal.h" #include "rhassert.h" -#include "slist.h" -#include "regdisplay.h" #include "StackFrameIterator.h" #include "thread.h" #include "holder.h" @@ -22,10 +20,7 @@ #include "RhConfig.h" #include "stressLog.h" #include "RestrictedCallouts.h" -#include "yieldprocessornormalized.h" #include -#include -#include #ifdef FEATURE_PERFTRACING #include "EventPipeInterface.h" diff --git a/src/coreclr/nativeaot/Runtime/stressLog.cpp b/src/coreclr/nativeaot/Runtime/stressLog.cpp index e3a5f8d8efe6f6..40941ec84711c2 100644 --- a/src/coreclr/nativeaot/Runtime/stressLog.cpp +++ b/src/coreclr/nativeaot/Runtime/stressLog.cpp @@ -21,7 +21,6 @@ #include "Crst.h" #include "rhassert.h" #include "slist.h" -#include "regdisplay.h" #include "StackFrameIterator.h" #include "thread.h" #include "event.h" diff --git a/src/coreclr/nativeaot/Runtime/threadstore.cpp b/src/coreclr/nativeaot/Runtime/threadstore.cpp index 0439f0c76058ab..9d29503288ea9e 100644 --- a/src/coreclr/nativeaot/Runtime/threadstore.cpp +++ b/src/coreclr/nativeaot/Runtime/threadstore.cpp @@ -10,7 +10,6 @@ #include "Pal.h" #include "rhassert.h" #include "slist.h" -#include "regdisplay.h" #include "StackFrameIterator.h" #include "thread.h" #include "holder.h" @@ -20,10 +19,7 @@ #include "thread.inl" #include "RuntimeInstance.h" #include "TargetPtrs.h" -#include "yieldprocessornormalized.h" #include -#include -#include "SignalSafeThreadMap.h" EXTERN_C volatile uint32_t RhpTrapThreads; volatile uint32_t RhpTrapThreads = (uint32_t)TrapThreadsFlags::None; diff --git a/src/coreclr/nativeaot/Runtime/windows/PalCommon.cpp b/src/coreclr/nativeaot/Runtime/windows/PalCommon.cpp index 8e4e582c5cec00..3fd6189f09263c 100644 --- a/src/coreclr/nativeaot/Runtime/windows/PalCommon.cpp +++ b/src/coreclr/nativeaot/Runtime/windows/PalCommon.cpp @@ -7,11 +7,9 @@ // #include -#include #include #include #include "CommonTypes.h" -#include "daccess.h" #include "PalLimitedContext.h" #include "Pal.h" #include diff --git a/src/coreclr/nativeaot/Runtime/windows/PalMinWin.cpp b/src/coreclr/nativeaot/Runtime/windows/PalMinWin.cpp index 316ad02c9e7d56..08c122bad9989c 100644 --- a/src/coreclr/nativeaot/Runtime/windows/PalMinWin.cpp +++ b/src/coreclr/nativeaot/Runtime/windows/PalMinWin.cpp @@ -6,7 +6,6 @@ #include #include -#include "holder.h" #define _T(s) L##s #include "RhConfig.h" diff --git a/src/coreclr/nativeaot/Runtime/yieldprocessornormalized.cpp b/src/coreclr/nativeaot/Runtime/yieldprocessornormalized.cpp index 06d068f7d26820..07b62e8eb46df7 100644 --- a/src/coreclr/nativeaot/Runtime/yieldprocessornormalized.cpp +++ b/src/coreclr/nativeaot/Runtime/yieldprocessornormalized.cpp @@ -6,14 +6,11 @@ #include "gcheaputilities.h" #include "CommonTypes.h" #include "CommonMacros.h" -#include "daccess.h" -#include "DebugMacrosExt.h" #include "PalLimitedContext.h" #include "Pal.h" #include "rhassert.h" #include "slist.h" #include "volatile.h" -#include "yieldprocessornormalized.h" #include "minipal/time.h" #include "../../utilcode/yieldprocessornormalized.cpp" diff --git a/src/coreclr/runtime/MiscNativeHelpers.cpp b/src/coreclr/runtime/MiscNativeHelpers.cpp index df438c42127ac7..2eff4a1b3b2c9c 100644 --- a/src/coreclr/runtime/MiscNativeHelpers.cpp +++ b/src/coreclr/runtime/MiscNativeHelpers.cpp @@ -3,7 +3,6 @@ #include "common.h" #include "MiscNativeHelpers.h" -#include #include #if defined(TARGET_X86) || defined(TARGET_AMD64) diff --git a/src/coreclr/tools/metainfo/mdinfo.cpp b/src/coreclr/tools/metainfo/mdinfo.cpp index e8807d77af71fe..ad9fb563b3c25a 100644 --- a/src/coreclr/tools/metainfo/mdinfo.cpp +++ b/src/coreclr/tools/metainfo/mdinfo.cpp @@ -13,9 +13,9 @@ #include "assert.h" #include "corerror.h" #include +#include "caparser.h" #include -#include #include #include "mdinfo.h" diff --git a/src/coreclr/tools/metainfo/mdobj.cpp b/src/coreclr/tools/metainfo/mdobj.cpp index 8d9d604280213b..20ea156c94e00f 100644 --- a/src/coreclr/tools/metainfo/mdobj.cpp +++ b/src/coreclr/tools/metainfo/mdobj.cpp @@ -1,9 +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 -#include -#include #include "mdinfo.h" #ifndef STRING_BUFFER_LEN diff --git a/src/coreclr/tools/superpmi/mcs/mcs.cpp b/src/coreclr/tools/superpmi/mcs/mcs.cpp index 2923a4f9186f31..6240dff2757481 100644 --- a/src/coreclr/tools/superpmi/mcs/mcs.cpp +++ b/src/coreclr/tools/superpmi/mcs/mcs.cpp @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. #include "standardpch.h" -#include "mcs.h" #include "commandline.h" #include "verbasmdump.h" #include "verbinteg.h" diff --git a/src/coreclr/tools/superpmi/mcs/removedup.cpp b/src/coreclr/tools/superpmi/mcs/removedup.cpp index b2ba784e633f15..0791924967ef05 100644 --- a/src/coreclr/tools/superpmi/mcs/removedup.cpp +++ b/src/coreclr/tools/superpmi/mcs/removedup.cpp @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. #include "standardpch.h" -#include "verbremovedup.h" #include "simpletimer.h" #include "lightweightmap.h" #include "methodcontext.h" diff --git a/src/coreclr/tools/superpmi/mcs/verbmerge.cpp b/src/coreclr/tools/superpmi/mcs/verbmerge.cpp index 35b7263d4a68b7..40c57040cf3f60 100644 --- a/src/coreclr/tools/superpmi/mcs/verbmerge.cpp +++ b/src/coreclr/tools/superpmi/mcs/verbmerge.cpp @@ -6,7 +6,6 @@ #include "simpletimer.h" #include "logging.h" #include "spmiutil.h" -#include "config.h" #include #ifdef TARGET_UNIX #include diff --git a/src/coreclr/tools/superpmi/superpmi-shim-counter/icorjitinfo_generated.cpp b/src/coreclr/tools/superpmi/superpmi-shim-counter/icorjitinfo_generated.cpp index 8058b6802159e8..97e51a4a530044 100644 --- a/src/coreclr/tools/superpmi/superpmi-shim-counter/icorjitinfo_generated.cpp +++ b/src/coreclr/tools/superpmi/superpmi-shim-counter/icorjitinfo_generated.cpp @@ -7,9 +7,7 @@ #include "standardpch.h" #include "icorjitinfo.h" -#include "superpmi-shim-counter.h" #include "icorjitcompiler.h" -#include "spmiutil.h" bool interceptor_ICJI::isIntrinsic( diff --git a/src/coreclr/tools/superpmi/superpmi-shim-counter/jithost.cpp b/src/coreclr/tools/superpmi/superpmi-shim-counter/jithost.cpp index 0b20a3e43975d8..777caa74dc9870 100644 --- a/src/coreclr/tools/superpmi/superpmi-shim-counter/jithost.cpp +++ b/src/coreclr/tools/superpmi/superpmi-shim-counter/jithost.cpp @@ -3,7 +3,6 @@ #include "standardpch.h" #include "runtimedetails.h" -#include "spmiutil.h" #include "methodcallsummarizer.h" #include "jithost.h" diff --git a/src/coreclr/tools/superpmi/superpmi-shim-counter/superpmi-shim-counter.cpp b/src/coreclr/tools/superpmi/superpmi-shim-counter/superpmi-shim-counter.cpp index a56c6d1bd8c264..7b9d9c583543c8 100644 --- a/src/coreclr/tools/superpmi/superpmi-shim-counter/superpmi-shim-counter.cpp +++ b/src/coreclr/tools/superpmi/superpmi-shim-counter/superpmi-shim-counter.cpp @@ -6,7 +6,6 @@ //---------------------------------------------------------- #include "standardpch.h" -#include "superpmi-shim-counter.h" #include "runtimedetails.h" #include "icorjitcompiler.h" #include "errorhandling.h" diff --git a/src/coreclr/tools/superpmi/superpmi-shim-simple/icorjitinfo_generated.cpp b/src/coreclr/tools/superpmi/superpmi-shim-simple/icorjitinfo_generated.cpp index 852a318f83c225..cc4a45aba6909d 100644 --- a/src/coreclr/tools/superpmi/superpmi-shim-simple/icorjitinfo_generated.cpp +++ b/src/coreclr/tools/superpmi/superpmi-shim-simple/icorjitinfo_generated.cpp @@ -7,9 +7,7 @@ #include "standardpch.h" #include "icorjitinfo.h" -#include "superpmi-shim-simple.h" #include "icorjitcompiler.h" -#include "spmiutil.h" bool interceptor_ICJI::isIntrinsic( diff --git a/src/coreclr/tools/superpmi/superpmi-shim-simple/jithost.cpp b/src/coreclr/tools/superpmi/superpmi-shim-simple/jithost.cpp index 43c7c2e0ae1e40..a72db55967842d 100644 --- a/src/coreclr/tools/superpmi/superpmi-shim-simple/jithost.cpp +++ b/src/coreclr/tools/superpmi/superpmi-shim-simple/jithost.cpp @@ -3,7 +3,6 @@ #include "standardpch.h" #include "runtimedetails.h" -#include "spmiutil.h" #include "jithost.h" JitHost* g_ourJitHost; diff --git a/src/coreclr/tools/superpmi/superpmi-shim-simple/superpmi-shim-simple.cpp b/src/coreclr/tools/superpmi/superpmi-shim-simple/superpmi-shim-simple.cpp index 2cc1ef2a268170..5ceecf8b1672bd 100644 --- a/src/coreclr/tools/superpmi/superpmi-shim-simple/superpmi-shim-simple.cpp +++ b/src/coreclr/tools/superpmi/superpmi-shim-simple/superpmi-shim-simple.cpp @@ -6,7 +6,6 @@ //---------------------------------------------------------- #include "standardpch.h" -#include "superpmi-shim-simple.h" #include "runtimedetails.h" #include "icorjitcompiler.h" #include "errorhandling.h" diff --git a/src/coreclr/tools/superpmi/superpmi/streamingsuperpmi.cpp b/src/coreclr/tools/superpmi/superpmi/streamingsuperpmi.cpp index c565d2568dfe19..e51bcd6533f375 100644 --- a/src/coreclr/tools/superpmi/superpmi/streamingsuperpmi.cpp +++ b/src/coreclr/tools/superpmi/superpmi/streamingsuperpmi.cpp @@ -5,14 +5,11 @@ #include "superpmi.h" #include "jitinstance.h" #include "simpletimer.h" -#include "mclist.h" #include "lightweightmap.h" #include "commandline.h" #include "errorhandling.h" #include "methodcontext.h" #include "methodcontextreader.h" -#include "spmiutil.h" -#include "fileio.h" #include "commandline.h" #if defined(_WIN32) diff --git a/src/coreclr/utilcode/hostimpl.cpp b/src/coreclr/utilcode/hostimpl.cpp index e463af9f705a08..d63c2ab1cff8ac 100644 --- a/src/coreclr/utilcode/hostimpl.cpp +++ b/src/coreclr/utilcode/hostimpl.cpp @@ -5,7 +5,6 @@ #include -#include "mscoree.h" #include "clrinternal.h" #include "clrhost.h" #include "ex.h" diff --git a/src/coreclr/utilcode/log.cpp b/src/coreclr/utilcode/log.cpp index 2f3073831e6cf4..7c25a1f2bbe75a 100644 --- a/src/coreclr/utilcode/log.cpp +++ b/src/coreclr/utilcode/log.cpp @@ -17,7 +17,6 @@ #include "log.h" #include "utilcode.h" -#include #ifdef LOGGING diff --git a/src/coreclr/utilcode/rangelist.cpp b/src/coreclr/utilcode/rangelist.cpp index 39b4173c18f75d..87bad47b7734bb 100644 --- a/src/coreclr/utilcode/rangelist.cpp +++ b/src/coreclr/utilcode/rangelist.cpp @@ -3,7 +3,6 @@ #include "stdafx.h" // Precompiled header key. #include "loaderheap.h" -#include "loaderheap_shared.h" #include "ex.h" #include "pedecoder.h" #define DONOT_DEFINE_ETW_CALLBACK diff --git a/src/coreclr/utilcode/sstring.cpp b/src/coreclr/utilcode/sstring.cpp index a1fbe12d662407..2cd20faee37403 100644 --- a/src/coreclr/utilcode/sstring.cpp +++ b/src/coreclr/utilcode/sstring.cpp @@ -10,7 +10,6 @@ #include "sstring.h" #include "ex.h" #include "holder.h" -#include #if defined(_MSC_VER) #pragma inline_depth (25) diff --git a/src/coreclr/vm/amd64/cgenamd64.cpp b/src/coreclr/vm/amd64/cgenamd64.cpp index 8db2219309785d..987856a3135e4b 100644 --- a/src/coreclr/vm/amd64/cgenamd64.cpp +++ b/src/coreclr/vm/amd64/cgenamd64.cpp @@ -21,7 +21,6 @@ #include "jitinterface.h" #ifdef FEATURE_COMINTEROP -#include "clrtocomcall.h" #endif // FEATURE_COMINTEROP #ifdef FEATURE_PERFMAP diff --git a/src/coreclr/vm/appdomain.cpp b/src/coreclr/vm/appdomain.cpp index 488e407303fd85..63633432d47a6f 100644 --- a/src/coreclr/vm/appdomain.cpp +++ b/src/coreclr/vm/appdomain.cpp @@ -6,7 +6,6 @@ #include "appdomain.hpp" #include "peimagelayout.inl" #include "field.h" -#include "strongnameinternal.h" #include "excep.h" #include "eeconfig.h" #include "gcheaputilities.h" @@ -39,7 +38,6 @@ #include "comtoclrcall.h" #include "runtimecallablewrapper.h" #include "olevariant.h" -#include "olecontexthelpers.h" #endif // FEATURE_COMINTEROP #if defined(FEATURE_COMWRAPPERS) diff --git a/src/coreclr/vm/assembly.cpp b/src/coreclr/vm/assembly.cpp index 36c0084ef376fc..5e6883ac35a58a 100644 --- a/src/coreclr/vm/assembly.cpp +++ b/src/coreclr/vm/assembly.cpp @@ -22,14 +22,12 @@ #include "reflectclasswriter.h" #include "comdynamic.h" -#include "sha1.h" #include "eeconfig.h" #include "assemblynative.hpp" #include "threadsuspend.h" -#include "appdomainnative.hpp" #include "customattribute.h" #include "caparser.h" @@ -1934,7 +1932,6 @@ void Assembly::EnsureLoadLevel(FileLoadLevel targetLevel) RETURN; } -#include CHECK Assembly::CheckLoadLevel(FileLoadLevel requiredLevel, BOOL deadlockOK) { CONTRACTL diff --git a/src/coreclr/vm/autotrace.cpp b/src/coreclr/vm/autotrace.cpp index c41d55537f5f70..609df09a6b24e9 100644 --- a/src/coreclr/vm/autotrace.cpp +++ b/src/coreclr/vm/autotrace.cpp @@ -18,7 +18,6 @@ * */ -#include "common.h" // Required for pre-compiled header #ifdef FEATURE_AUTO_TRACE #ifdef TARGET_UNIX diff --git a/src/coreclr/vm/binder.cpp b/src/coreclr/vm/binder.cpp index 0a2326d1143def..877d0b1ec39f1b 100644 --- a/src/coreclr/vm/binder.cpp +++ b/src/coreclr/vm/binder.cpp @@ -19,7 +19,6 @@ #include "dllimport.h" #include "clrvarargs.h" #include "sigbuilder.h" -#include "olevariant.h" #include "configuration.h" #include "conditionalweaktable.h" #include "interoplibinterface_comwrappers.h" diff --git a/src/coreclr/vm/callcounting.cpp b/src/coreclr/vm/callcounting.cpp index 1d5ca8b40bf00e..d2d8d95086170c 100644 --- a/src/coreclr/vm/callcounting.cpp +++ b/src/coreclr/vm/callcounting.cpp @@ -5,7 +5,6 @@ #ifdef FEATURE_TIERED_COMPILATION -#include "callcounting.h" #include "threadsuspend.h" #include diff --git a/src/coreclr/vm/ceeload.cpp b/src/coreclr/vm/ceeload.cpp index b793b03248a569..cd9cbd215eb6d3 100644 --- a/src/coreclr/vm/ceeload.cpp +++ b/src/coreclr/vm/ceeload.cpp @@ -4463,7 +4463,6 @@ VOID Module::EnsureActive() } #endif // DACCESS_COMPILE -#include CHECK Module::CheckActivated() { @@ -4829,7 +4828,6 @@ void Module::ExpandAll() // Wrap all static_assert's in asmconstants.h with a class definition. Many of the // fields referenced below are private, and this class is a friend of the // enclosing type. -#include "clrvarargs.h" /* for VARARG C_ASSERTs in asmconstants.h */ class CheckAsmOffsets { #ifndef CROSSBITNESS_COMPILE diff --git a/src/coreclr/vm/class.cpp b/src/coreclr/vm/class.cpp index d80b89a354b7e9..8d129856528160 100644 --- a/src/coreclr/vm/class.cpp +++ b/src/coreclr/vm/class.cpp @@ -16,7 +16,6 @@ #ifdef FEATURE_COMINTEROP #include "comcallablewrapper.h" -#include "clrtocomcall.h" #include "runtimecallablewrapper.h" #endif // FEATURE_COMINTEROP diff --git a/src/coreclr/vm/classcompat.cpp b/src/coreclr/vm/classcompat.cpp index 82be81e0130308..6c2d54c7cd70a0 100644 --- a/src/coreclr/vm/classcompat.cpp +++ b/src/coreclr/vm/classcompat.cpp @@ -31,12 +31,10 @@ #include "gcheaputilities.h" #include "dbginterface.h" #include "comdelegate.h" -#include "sigformat.h" #include "eeprofinterfaces.h" #include "dllimportcallback.h" #include "listlock.h" #include "methodimpl.h" -#include "guidfromname.h" #include "encee.h" #include "encee.h" #include "comsynchronizable.h" @@ -47,7 +45,6 @@ #include "prettyprintsig.h" #include "comcallablewrapper.h" -#include "clrtocomcall.h" #include "runtimecallablewrapper.h" #include "generics.h" diff --git a/src/coreclr/vm/clsload.cpp b/src/coreclr/vm/clsload.cpp index ba86d440ecb2fc..809df68a5c86b7 100644 --- a/src/coreclr/vm/clsload.cpp +++ b/src/coreclr/vm/clsload.cpp @@ -19,7 +19,6 @@ #include "object.h" #include "excep.h" #include "threads.h" -#include "comsynchronizable.h" #include "threads.h" #include "dllimport.h" #include "dbginterface.h" diff --git a/src/coreclr/vm/comcallablewrapper.cpp b/src/coreclr/vm/comcallablewrapper.cpp index 6f9a656110b3f2..1ce42967de2100 100644 --- a/src/coreclr/vm/comcallablewrapper.cpp +++ b/src/coreclr/vm/comcallablewrapper.cpp @@ -29,12 +29,10 @@ #include "stublink.h" #include "cgensys.h" #include "comtoclrcall.h" -#include "clrtocomcall.h" #include "comutilnative.h" #include "eeconfig.h" #include "interoputil.h" #include "dispex.h" -#include "guidfromname.h" #include "comconnectionpoints.h" #include // IID_IObjctSafe #include "virtualcallstub.h" @@ -1173,7 +1171,6 @@ IUnknown* SimpleComCallWrapper::QIStandardInterface(REFIID riid) RETURN NULL; } -#include //-------------------------------------------------------------------------- // Init Outer unknown, cache a GIT cookie diff --git a/src/coreclr/vm/cominterfacemarshaler.cpp b/src/coreclr/vm/cominterfacemarshaler.cpp index 12ee7d005cb3ca..98ea297b39b4a4 100644 --- a/src/coreclr/vm/cominterfacemarshaler.cpp +++ b/src/coreclr/vm/cominterfacemarshaler.cpp @@ -15,7 +15,6 @@ #include "cominterfacemarshaler.h" #include "interopconverter.h" #include "comdelegate.h" -#include "olecontexthelpers.h" //-------------------------------------------------------------------------------- diff --git a/src/coreclr/vm/commodule.cpp b/src/coreclr/vm/commodule.cpp index d5e8ef9539f6f5..f4abb42de20aaf 100644 --- a/src/coreclr/vm/commodule.cpp +++ b/src/coreclr/vm/commodule.cpp @@ -7,7 +7,6 @@ #include "comdynamic.h" #include "reflectclasswriter.h" #include "class.h" -#include "ceesectionstring.h" #include #include "typeparse.h" #include "typekey.h" diff --git a/src/coreclr/vm/comutilnative.cpp b/src/coreclr/vm/comutilnative.cpp index bcbb0c6d8bfd9c..0411b810ee13d4 100644 --- a/src/coreclr/vm/comutilnative.cpp +++ b/src/coreclr/vm/comutilnative.cpp @@ -33,7 +33,6 @@ #include "typestring.h" #include "finalizerthread.h" #include "threadsuspend.h" -#include #include "string.h" #include "sstring.h" #include "array.h" @@ -1729,7 +1728,6 @@ FCIMPL2_IV(INT64,COMInterlocked::ExchangeAdd64, INT64 *location, INT64 value) } FCIMPLEND -#include static BOOL HasOverriddenMethod(MethodTable* mt, MethodTable* classMT, WORD methodSlot) { diff --git a/src/coreclr/vm/corelib.cpp b/src/coreclr/vm/corelib.cpp index 0861e8b748575f..bfbc3ecd4bef30 100644 --- a/src/coreclr/vm/corelib.cpp +++ b/src/coreclr/vm/corelib.cpp @@ -15,28 +15,16 @@ #include "arraynative.h" #include "dllimport.h" #include "comdelegate.h" -#include "customattribute.h" -#include "comdynamic.h" #include "excep.h" #include "fcall.h" -#include "clrconfignative.h" -#include "commodule.h" -#include "marshalnative.h" -#include "nativelibrarynative.h" #include "comutilnative.h" #include "comsynchronizable.h" #include "floatdouble.h" #include "floatsingle.h" -#include "divmodint.h" -#include "comdatetime.h" -#include "debugdebugger.h" #include "assemblynative.hpp" #include "proftoeeinterfaceimpl.h" -#include "appdomainnative.hpp" -#include "conditionalweaktable.h" -#include "runtimehandles.h" #include "reflectioninvocation.h" #include "managedmdimport.hpp" #include "typestring.h" @@ -64,13 +52,11 @@ #if defined(FEATURE_EVENTSOURCE_XPLAT) #include "eventpipeadapter.h" #include "eventpipeinternal.h" -#include "nativeeventsource.h" #endif //defined(FEATURE_EVENTSOURCE_XPLAT) #ifdef FEATURE_PERFTRACING #include "eventpipeadapter.h" #include "eventpipeinternal.h" -#include "nativeeventsource.h" #endif //FEATURE_PERFTRACING #include "tailcallhelp.h" diff --git a/src/coreclr/vm/dllimport.cpp b/src/coreclr/vm/dllimport.cpp index f9d5924c94a517..b4ebe2a03ca83e 100644 --- a/src/coreclr/vm/dllimport.cpp +++ b/src/coreclr/vm/dllimport.cpp @@ -32,7 +32,6 @@ #include "typeparse.h" #include "typestring.h" #include "sigbuilder.h" -#include "sigformat.h" #include "ecall.h" #include "qcall.h" #include "fieldmarshaler.h" diff --git a/src/coreclr/vm/exceptionhandling.cpp b/src/coreclr/vm/exceptionhandling.cpp index 00f6db4a17d612..979ecd49540d3a 100644 --- a/src/coreclr/vm/exceptionhandling.cpp +++ b/src/coreclr/vm/exceptionhandling.cpp @@ -16,7 +16,6 @@ #include "corinfo.h" #include "exceptionhandlingqcalls.h" #include "exinfo.h" -#include "configuration.h" extern MethodDesc* g_pThreadStartCallbackMethodDesc; extern MethodDesc* g_pGCRunFinalizersMethodDesc; diff --git a/src/coreclr/vm/fieldmarshaler.cpp b/src/coreclr/vm/fieldmarshaler.cpp index 81b52188444982..eda6c65ada21ad 100644 --- a/src/coreclr/vm/fieldmarshaler.cpp +++ b/src/coreclr/vm/fieldmarshaler.cpp @@ -18,7 +18,6 @@ #include "dllimport.h" #include "comdelegate.h" #include "eeconfig.h" -#include "comdatetime.h" #include "olevariant.h" #include #include diff --git a/src/coreclr/vm/finalizerthread.cpp b/src/coreclr/vm/finalizerthread.cpp index 0e36352feb1e5e..12d556d82e041d 100644 --- a/src/coreclr/vm/finalizerthread.cpp +++ b/src/coreclr/vm/finalizerthread.cpp @@ -10,7 +10,6 @@ #include "genanalysis.h" #include "eventpipeadapter.h" #include "ebr.h" -#include "dn-stdio.h" #ifdef FEATURE_COMINTEROP #include "runtimecallablewrapper.h" diff --git a/src/coreclr/vm/gchelpers.cpp b/src/coreclr/vm/gchelpers.cpp index 162d33a8a4661a..696c9eb9d71fdd 100644 --- a/src/coreclr/vm/gchelpers.cpp +++ b/src/coreclr/vm/gchelpers.cpp @@ -1593,7 +1593,6 @@ HCIMPLEND_RAW // This function sets the card table with the granularity of 1 byte, to avoid ghost updates // that could occur if multiple threads were trying to set different bits in the same card. -#include void ErectWriteBarrier(OBJECTREF *dst, OBJECTREF ref) { STATIC_CONTRACT_MODE_COOPERATIVE; @@ -1631,7 +1630,6 @@ void ErectWriteBarrier(OBJECTREF *dst, OBJECTREF ref) } } } -#include void ErectWriteBarrierForMT(MethodTable **dst, MethodTable *ref) { diff --git a/src/coreclr/vm/interopconverter.cpp b/src/coreclr/vm/interopconverter.cpp index 4f951c97634037..f9bc94daf257a1 100644 --- a/src/coreclr/vm/interopconverter.cpp +++ b/src/coreclr/vm/interopconverter.cpp @@ -7,7 +7,6 @@ #include "excep.h" #include "interoputil.h" #include "interopconverter.h" -#include "olevariant.h" #include "comcallablewrapper.h" #ifdef FEATURE_COMINTEROP diff --git a/src/coreclr/vm/interoplibinterface_comwrappers.cpp b/src/coreclr/vm/interoplibinterface_comwrappers.cpp index 857e4cd77bc18e..70a9f861e21b93 100644 --- a/src/coreclr/vm/interoplibinterface_comwrappers.cpp +++ b/src/coreclr/vm/interoplibinterface_comwrappers.cpp @@ -10,10 +10,8 @@ #ifdef FEATURE_COMINTEROP_APARTMENT_SUPPORT #include "olecontexthelpers.h" #endif -#include "finalizerthread.h" // Interop library header -#include #include #include "interoplibinterface.h" diff --git a/src/coreclr/vm/interoputil.cpp b/src/coreclr/vm/interoputil.cpp index 6e60e690da19d1..f4f9f29ad298c5 100644 --- a/src/coreclr/vm/interoputil.cpp +++ b/src/coreclr/vm/interoputil.cpp @@ -37,7 +37,6 @@ #include "dispex.h" #include "runtimecallablewrapper.h" #include "comtoclrcall.h" -#include "clrtocomcall.h" #include "comcache.h" #include "commtmemberinfomap.h" #include "olevariant.h" diff --git a/src/coreclr/vm/jitinterfacegen.cpp b/src/coreclr/vm/jitinterfacegen.cpp index 349455c37de8dc..ed9ea2f481d6d0 100644 --- a/src/coreclr/vm/jitinterfacegen.cpp +++ b/src/coreclr/vm/jitinterfacegen.cpp @@ -9,7 +9,6 @@ #include "comdelegate.h" #include "field.h" #include "ecall.h" -#include "writebarriermanager.h" void InitJITAllocationHelpers() { diff --git a/src/coreclr/vm/method.cpp b/src/coreclr/vm/method.cpp index 79040c69c9e08b..e010f42a8f8884 100644 --- a/src/coreclr/vm/method.cpp +++ b/src/coreclr/vm/method.cpp @@ -33,7 +33,6 @@ #ifdef FEATURE_COMINTEROP #include "comcallablewrapper.h" -#include "clrtocomcall.h" #endif #ifdef FEATURE_MINIMETADATA_IN_TRIAGEDUMPS diff --git a/src/coreclr/vm/methodtable.cpp b/src/coreclr/vm/methodtable.cpp index 79f080cc339280..29e6e2c14ef9b4 100644 --- a/src/coreclr/vm/methodtable.cpp +++ b/src/coreclr/vm/methodtable.cpp @@ -45,7 +45,6 @@ #ifdef FEATURE_COMINTEROP #include "comcallablewrapper.h" -#include "clrtocomcall.h" #include "runtimecallablewrapper.h" #endif // FEATURE_COMINTEROP diff --git a/src/coreclr/vm/multicorejit.cpp b/src/coreclr/vm/multicorejit.cpp index 9e828f69512741..0be2e1c73dcfed 100644 --- a/src/coreclr/vm/multicorejit.cpp +++ b/src/coreclr/vm/multicorejit.cpp @@ -27,7 +27,6 @@ #include "eventtracebase.h" #include "multicorejit.h" #include "multicorejitimpl.h" -#include void MulticoreJitFireEtw(const WCHAR * pAction, const WCHAR * pTarget, int p1, int p2, int p3) { diff --git a/src/coreclr/vm/onstackreplacement.cpp b/src/coreclr/vm/onstackreplacement.cpp index 6f534342c68001..b4bbc8600b3d7d 100644 --- a/src/coreclr/vm/onstackreplacement.cpp +++ b/src/coreclr/vm/onstackreplacement.cpp @@ -6,7 +6,6 @@ // =========================================================================== #include "common.h" -#include "onstackreplacement.h" #ifdef FEATURE_ON_STACK_REPLACEMENT diff --git a/src/coreclr/vm/peassembly.cpp b/src/coreclr/vm/peassembly.cpp index df40b435de8d2c..2a2676e979c733 100644 --- a/src/coreclr/vm/peassembly.cpp +++ b/src/coreclr/vm/peassembly.cpp @@ -15,12 +15,10 @@ #include "dbginterface.h" #include "peimagelayout.inl" #include "invokeutil.h" -#include "strongnameinternal.h" #include "../binder/inc/applicationcontext.hpp" #include "../binder/inc/assemblybindercommon.hpp" -#include "sha1.h" #ifndef DACCESS_COMPILE diff --git a/src/coreclr/vm/perfmap.cpp b/src/coreclr/vm/perfmap.cpp index d51c75dbe35f01..e5c9f39f90e6f1 100644 --- a/src/coreclr/vm/perfmap.cpp +++ b/src/coreclr/vm/perfmap.cpp @@ -4,7 +4,6 @@ // File: perfmap.cpp // -#include "common.h" #if defined(FEATURE_PERFMAP) && !defined(DACCESS_COMPILE) #include diff --git a/src/coreclr/vm/pgo.cpp b/src/coreclr/vm/pgo.cpp index 2df6bbf5fa5e47..be8629619217e5 100644 --- a/src/coreclr/vm/pgo.cpp +++ b/src/coreclr/vm/pgo.cpp @@ -7,7 +7,6 @@ #include "versionresilienthashcode.h" #include "typestring.h" #include "pgo_formatprocessing.h" -#include "dn-stdio.h" #ifdef FEATURE_PGO diff --git a/src/coreclr/vm/precode_portable.cpp b/src/coreclr/vm/precode_portable.cpp index 3330d548ea845d..115c16e327d1bf 100644 --- a/src/coreclr/vm/precode_portable.cpp +++ b/src/coreclr/vm/precode_portable.cpp @@ -4,7 +4,6 @@ #ifdef FEATURE_PORTABLE_ENTRYPOINTS -#include "common.h" #include "precode_portable.hpp" #ifdef HOST_64BIT diff --git a/src/coreclr/vm/prestub.cpp b/src/coreclr/vm/prestub.cpp index 73ae13ab6e5ac9..b8ed91ae7fcd20 100644 --- a/src/coreclr/vm/prestub.cpp +++ b/src/coreclr/vm/prestub.cpp @@ -30,7 +30,6 @@ #endif #ifdef FEATURE_COMINTEROP -#include "clrtocomcall.h" #endif #ifdef FEATURE_PERFMAP diff --git a/src/coreclr/vm/qcallentrypoints.cpp b/src/coreclr/vm/qcallentrypoints.cpp index b7633063e87fab..e1295b06bf2857 100644 --- a/src/coreclr/vm/qcallentrypoints.cpp +++ b/src/coreclr/vm/qcallentrypoints.cpp @@ -22,19 +22,14 @@ #include "nativelibrarynative.h" #include "comutilnative.h" #include "comsynchronizable.h" -#include "floatdouble.h" -#include "floatsingle.h" -#include "comdatetime.h" #include "debugdebugger.h" #include "assemblynative.hpp" -#include "proftoeeinterfaceimpl.h" #include "appdomainnative.hpp" #include "runtimehandles.h" #include "reflectioninvocation.h" #include "managedmdimport.hpp" -#include "typestring.h" #include "comdependenthandle.h" #include "weakreferencenative.h" #include "varargsnative.h" diff --git a/src/coreclr/vm/readytoruninfo.cpp b/src/coreclr/vm/readytoruninfo.cpp index a6eb8e6e742e16..f638bdf741fc19 100644 --- a/src/coreclr/vm/readytoruninfo.cpp +++ b/src/coreclr/vm/readytoruninfo.cpp @@ -16,7 +16,6 @@ #include "method.hpp" #include "wellknownattributes.h" #include "nativeimage.h" -#include "dn-stdio.h" #include "ilstubcache.h" #include "sigbuilder.h" diff --git a/src/coreclr/vm/runtimehandles.cpp b/src/coreclr/vm/runtimehandles.cpp index da8093d38779e7..ce04ff8f5b7bc3 100644 --- a/src/coreclr/vm/runtimehandles.cpp +++ b/src/coreclr/vm/runtimehandles.cpp @@ -215,7 +215,6 @@ FCIMPL1(void, RuntimeTypeHandle::GetNextIntroducedMethod, MethodDesc ** ppMethod *ppMethod = pMethod; } FCIMPLEND -#include FCIMPL1(AssemblyBaseObject*, RuntimeTypeHandle::GetAssemblyIfExists, ReflectClassBaseObject *pTypeUNSAFE) { diff --git a/src/coreclr/vm/stdinterfaces.cpp b/src/coreclr/vm/stdinterfaces.cpp index eacbf9235312d2..f8569dfc28d157 100644 --- a/src/coreclr/vm/stdinterfaces.cpp +++ b/src/coreclr/vm/stdinterfaces.cpp @@ -11,7 +11,6 @@ #include "common.h" #include -#include #include #include // IID_IObjectSafety #include "vars.hpp" diff --git a/src/coreclr/vm/stdinterfaces_wrapper.cpp b/src/coreclr/vm/stdinterfaces_wrapper.cpp index 9bbba71d218215..641d3baae6f9f8 100644 --- a/src/coreclr/vm/stdinterfaces_wrapper.cpp +++ b/src/coreclr/vm/stdinterfaces_wrapper.cpp @@ -11,7 +11,6 @@ #include "common.h" #include -#include #include #include // IID_IObjectSafe #include "vars.hpp" diff --git a/src/coreclr/vm/stubhelpers.cpp b/src/coreclr/vm/stubhelpers.cpp index 477030bf729bb0..bf8d7856ffec4f 100644 --- a/src/coreclr/vm/stubhelpers.cpp +++ b/src/coreclr/vm/stubhelpers.cpp @@ -13,7 +13,6 @@ #include "fieldmarshaler.h" #include "comdelegate.h" #include "eventtrace.h" -#include "comdatetime.h" #include "gcheaputilities.h" #include "interoputil.h" #include "../debug/ee/debugger.h" @@ -23,7 +22,6 @@ #include "olecontexthelpers.h" #include "runtimecallablewrapper.h" #include "comcallablewrapper.h" -#include "clrtocomcall.h" #include "cominterfacemarshaler.h" #endif diff --git a/src/coreclr/vm/stublink.cpp b/src/coreclr/vm/stublink.cpp index fe71d31f0d0118..4e5c23a7255410 100644 --- a/src/coreclr/vm/stublink.cpp +++ b/src/coreclr/vm/stublink.cpp @@ -14,7 +14,6 @@ #include "stubgen.h" #include "stublink.inl" -#include "rtlfunctions.h" #ifdef FEATURE_PERFMAP #include "perfmap.h" diff --git a/src/coreclr/vm/threads.cpp b/src/coreclr/vm/threads.cpp index 292e5621b2e373..db3b5d8b20aafb 100644 --- a/src/coreclr/vm/threads.cpp +++ b/src/coreclr/vm/threads.cpp @@ -32,8 +32,6 @@ #include "appdomain.inl" #include "exceptmacros.h" #include "minipal/time.h" -#include "minipal/thread.h" -#include "SignalSafeThreadMap.h" #ifdef FEATURE_COMINTEROP #include "runtimecallablewrapper.h" diff --git a/src/coreclr/vm/threadsuspend.cpp b/src/coreclr/vm/threadsuspend.cpp index f265094ce9876a..ed209909195280 100644 --- a/src/coreclr/vm/threadsuspend.cpp +++ b/src/coreclr/vm/threadsuspend.cpp @@ -13,7 +13,6 @@ #include "threadsuspend.h" -#include "finalizerthread.h" #include "dbginterface.h" #include #include diff --git a/src/coreclr/vm/tieredcompilation.cpp b/src/coreclr/vm/tieredcompilation.cpp index 3a77393aae4371..657079a0b4fbde 100644 --- a/src/coreclr/vm/tieredcompilation.cpp +++ b/src/coreclr/vm/tieredcompilation.cpp @@ -10,7 +10,6 @@ #include "common.h" #include "excep.h" #include "log.h" -#include "threadsuspend.h" #include "tieredcompilation.h" #include "minipal/time.h" diff --git a/src/coreclr/vm/typehandle.cpp b/src/coreclr/vm/typehandle.cpp index 5dd7d4e85d468a..767510cc207515 100644 --- a/src/coreclr/vm/typehandle.cpp +++ b/src/coreclr/vm/typehandle.cpp @@ -684,7 +684,6 @@ TypeHandle::CastResult TypeHandle::CanCastToCached(TypeHandle type) const return CastCache::TryGetFromCache(*this, type); } -#include #endif // #ifndef DACCESS_COMPILE diff --git a/src/coreclr/vm/virtualcallstub.cpp b/src/coreclr/vm/virtualcallstub.cpp index 203426267b2189..dc7e1646daa923 100644 --- a/src/coreclr/vm/virtualcallstub.cpp +++ b/src/coreclr/vm/virtualcallstub.cpp @@ -8,7 +8,6 @@ #include "CachedInterfaceDispatchPal.h" #include "CachedInterfaceDispatch.h" #include "comdelegate.h" -#include #ifdef FEATURE_PERFMAP #include "perfmap.h" diff --git a/src/native/corehost/hostmisc/longfile.windows.cpp b/src/native/corehost/hostmisc/longfile.windows.cpp index 18872a14e9db44..225b7c64bc3c0e 100644 --- a/src/native/corehost/hostmisc/longfile.windows.cpp +++ b/src/native/corehost/hostmisc/longfile.windows.cpp @@ -4,7 +4,6 @@ //The logic in this file was ported from https://github.com/dotnet/runtime/blob/17154bd7b8f21d6d8d6fca71b89d7dcb705ec32b/src/coreclr/utilcode/longfilepathwrappers.cpp //Please reflect any change here into the above file too! #include "pal.h" -#include "trace.h" #include "utils.h" #include "longfile.h" From dcb5d418fa6cf1fe4e1f64d1274bc858f69256ad Mon Sep 17 00:00:00 2001 From: Moyo Okeremi Date: Wed, 22 Apr 2026 13:00:58 -0700 Subject: [PATCH 02/15] fix --- src/coreclr/nativeaot/Bootstrap/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/coreclr/nativeaot/Bootstrap/main.cpp b/src/coreclr/nativeaot/Bootstrap/main.cpp index 1627efdfec70de..8b09cd4c7ca667 100644 --- a/src/coreclr/nativeaot/Bootstrap/main.cpp +++ b/src/coreclr/nativeaot/Bootstrap/main.cpp @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. #include +#include #include #if defined(DEBUG) && defined(_WIN32) From a515dddacbafa56b4ad4ce645494c956ac9398cd Mon Sep 17 00:00:00 2001 From: Moyo Okeremi Date: Wed, 22 Apr 2026 13:28:58 -0700 Subject: [PATCH 03/15] fix --- src/coreclr/nativeaot/Runtime/startup.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/coreclr/nativeaot/Runtime/startup.cpp b/src/coreclr/nativeaot/Runtime/startup.cpp index 2af6a4d837389e..ca7bf882b5fd74 100644 --- a/src/coreclr/nativeaot/Runtime/startup.cpp +++ b/src/coreclr/nativeaot/Runtime/startup.cpp @@ -21,6 +21,7 @@ #include "stressLog.h" #include "RestrictedCallouts.h" #include +#include #ifdef FEATURE_PERFTRACING #include "EventPipeInterface.h" From ec6bd1b5c7ff9fa60842b8662f7cb0dad60b95ff Mon Sep 17 00:00:00 2001 From: Moyo Okeremi Date: Wed, 22 Apr 2026 14:11:13 -0700 Subject: [PATCH 04/15] fix --- src/coreclr/gc/vxsort/do_vxsort_avx2.cpp | 2 ++ src/coreclr/gc/vxsort/do_vxsort_avx512.cpp | 2 ++ src/coreclr/nativeaot/Runtime/eventtrace.cpp | 1 + src/coreclr/nativeaot/Runtime/threadstore.cpp | 2 ++ src/coreclr/vm/threads.cpp | 2 ++ 5 files changed, 9 insertions(+) diff --git a/src/coreclr/gc/vxsort/do_vxsort_avx2.cpp b/src/coreclr/gc/vxsort/do_vxsort_avx2.cpp index dbabfc08da8f37..5ef9dacadadb34 100644 --- a/src/coreclr/gc/vxsort/do_vxsort_avx2.cpp +++ b/src/coreclr/gc/vxsort/do_vxsort_avx2.cpp @@ -3,6 +3,7 @@ #include "common.h" +#include "vxsort_targets_enable_avx2.h" #include "vxsort.h" #include "machine_traits.avx2.h" @@ -15,3 +16,4 @@ void do_vxsort_avx2 (uint8_t** low, uint8_t** high, uint8_t* range_low, uint8_t* auto sorter = vxsort::vxsort(); sorter.sort ((int64_t*)low, (int64_t*)high, (int64_t)range_low, (int64_t)(range_high+sizeof(uint8_t*))); } +#include "vxsort_targets_disable.h" \ No newline at end of file diff --git a/src/coreclr/gc/vxsort/do_vxsort_avx512.cpp b/src/coreclr/gc/vxsort/do_vxsort_avx512.cpp index f8791d0a11781e..b431a04e6ffdef 100644 --- a/src/coreclr/gc/vxsort/do_vxsort_avx512.cpp +++ b/src/coreclr/gc/vxsort/do_vxsort_avx512.cpp @@ -3,6 +3,7 @@ #include "common.h" +#include "vxsort_targets_enable_avx512.h" #include "vxsort.h" #include "machine_traits.avx512.h" @@ -14,3 +15,4 @@ void do_vxsort_avx512 (uint8_t** low, uint8_t** high, uint8_t* range_low, uint8_ auto sorter = vxsort::vxsort(); sorter.sort ((int64_t*)low, (int64_t*)high, (int64_t)range_low, (int64_t)(range_high+sizeof(uint8_t*))); } +#include "vxsort_targets_disable.h" \ No newline at end of file diff --git a/src/coreclr/nativeaot/Runtime/eventtrace.cpp b/src/coreclr/nativeaot/Runtime/eventtrace.cpp index abadf9a001503c..741b290bb66a63 100644 --- a/src/coreclr/nativeaot/Runtime/eventtrace.cpp +++ b/src/coreclr/nativeaot/Runtime/eventtrace.cpp @@ -20,6 +20,7 @@ #include "threadstore.h" #include "threadstore.inl" +#include EVENTPIPE_TRACE_CONTEXT MICROSOFT_WINDOWS_DOTNETRUNTIME_PROVIDER_EVENTPIPE_Context = { W("Microsoft-Windows-DotNETRuntime"), 0, false, 0 }; DOTNET_TRACE_CONTEXT MICROSOFT_WINDOWS_DOTNETRUNTIME_PROVIDER_DOTNET_Context = { diff --git a/src/coreclr/nativeaot/Runtime/threadstore.cpp b/src/coreclr/nativeaot/Runtime/threadstore.cpp index 9d29503288ea9e..6fee4379cb80ae 100644 --- a/src/coreclr/nativeaot/Runtime/threadstore.cpp +++ b/src/coreclr/nativeaot/Runtime/threadstore.cpp @@ -20,6 +20,8 @@ #include "RuntimeInstance.h" #include "TargetPtrs.h" #include +#include +#include "SignalSafeThreadMap.h" EXTERN_C volatile uint32_t RhpTrapThreads; volatile uint32_t RhpTrapThreads = (uint32_t)TrapThreadsFlags::None; diff --git a/src/coreclr/vm/threads.cpp b/src/coreclr/vm/threads.cpp index db3b5d8b20aafb..292e5621b2e373 100644 --- a/src/coreclr/vm/threads.cpp +++ b/src/coreclr/vm/threads.cpp @@ -32,6 +32,8 @@ #include "appdomain.inl" #include "exceptmacros.h" #include "minipal/time.h" +#include "minipal/thread.h" +#include "SignalSafeThreadMap.h" #ifdef FEATURE_COMINTEROP #include "runtimecallablewrapper.h" From 1e81e2ecb6157cc164f61420419cf4a6d4c7c2ca Mon Sep 17 00:00:00 2001 From: Moyo Okeremi Date: Wed, 22 Apr 2026 14:32:37 -0700 Subject: [PATCH 05/15] fix --- src/coreclr/nativeaot/Runtime/GCHelpers.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/coreclr/nativeaot/Runtime/GCHelpers.cpp b/src/coreclr/nativeaot/Runtime/GCHelpers.cpp index b64777effe6b50..60c3515f551bca 100644 --- a/src/coreclr/nativeaot/Runtime/GCHelpers.cpp +++ b/src/coreclr/nativeaot/Runtime/GCHelpers.cpp @@ -18,6 +18,7 @@ #include "PalLimitedContext.h" #include "slist.h" #include "StackFrameIterator.h" +#include "interoplibinterface.h" #include "thread.h" #include "threadstore.h" From 75bc1cd20842e5c4ff3ce555ae20786ba53cd67e Mon Sep 17 00:00:00 2001 From: Moyo Okeremi Date: Wed, 22 Apr 2026 14:59:03 -0700 Subject: [PATCH 06/15] fix --- src/coreclr/utilcode/log.cpp | 1 + src/coreclr/vm/finalizerthread.cpp | 1 + src/coreclr/vm/multicorejit.cpp | 1 + src/coreclr/vm/pgo.cpp | 1 + src/coreclr/vm/readytoruninfo.cpp | 1 + src/coreclr/vm/virtualcallstub.cpp | 1 + 6 files changed, 6 insertions(+) diff --git a/src/coreclr/utilcode/log.cpp b/src/coreclr/utilcode/log.cpp index 7c25a1f2bbe75a..2f3073831e6cf4 100644 --- a/src/coreclr/utilcode/log.cpp +++ b/src/coreclr/utilcode/log.cpp @@ -17,6 +17,7 @@ #include "log.h" #include "utilcode.h" +#include #ifdef LOGGING diff --git a/src/coreclr/vm/finalizerthread.cpp b/src/coreclr/vm/finalizerthread.cpp index 12d556d82e041d..e7c933c2ec45b6 100644 --- a/src/coreclr/vm/finalizerthread.cpp +++ b/src/coreclr/vm/finalizerthread.cpp @@ -10,6 +10,7 @@ #include "genanalysis.h" #include "eventpipeadapter.h" #include "ebr.h" +#include #ifdef FEATURE_COMINTEROP #include "runtimecallablewrapper.h" diff --git a/src/coreclr/vm/multicorejit.cpp b/src/coreclr/vm/multicorejit.cpp index 0be2e1c73dcfed..9e828f69512741 100644 --- a/src/coreclr/vm/multicorejit.cpp +++ b/src/coreclr/vm/multicorejit.cpp @@ -27,6 +27,7 @@ #include "eventtracebase.h" #include "multicorejit.h" #include "multicorejitimpl.h" +#include void MulticoreJitFireEtw(const WCHAR * pAction, const WCHAR * pTarget, int p1, int p2, int p3) { diff --git a/src/coreclr/vm/pgo.cpp b/src/coreclr/vm/pgo.cpp index be8629619217e5..cd169724ec3bed 100644 --- a/src/coreclr/vm/pgo.cpp +++ b/src/coreclr/vm/pgo.cpp @@ -7,6 +7,7 @@ #include "versionresilienthashcode.h" #include "typestring.h" #include "pgo_formatprocessing.h" +#include #ifdef FEATURE_PGO diff --git a/src/coreclr/vm/readytoruninfo.cpp b/src/coreclr/vm/readytoruninfo.cpp index f638bdf741fc19..20305588e68a68 100644 --- a/src/coreclr/vm/readytoruninfo.cpp +++ b/src/coreclr/vm/readytoruninfo.cpp @@ -16,6 +16,7 @@ #include "method.hpp" #include "wellknownattributes.h" #include "nativeimage.h" +#include #include "ilstubcache.h" #include "sigbuilder.h" diff --git a/src/coreclr/vm/virtualcallstub.cpp b/src/coreclr/vm/virtualcallstub.cpp index dc7e1646daa923..203426267b2189 100644 --- a/src/coreclr/vm/virtualcallstub.cpp +++ b/src/coreclr/vm/virtualcallstub.cpp @@ -8,6 +8,7 @@ #include "CachedInterfaceDispatchPal.h" #include "CachedInterfaceDispatch.h" #include "comdelegate.h" +#include #ifdef FEATURE_PERFMAP #include "perfmap.h" From 4c538cf698a97048b1a08eea115ca33eec8c2f5a Mon Sep 17 00:00:00 2001 From: Moyo Okeremi Date: Wed, 22 Apr 2026 15:26:06 -0700 Subject: [PATCH 07/15] fix --- src/coreclr/nativeaot/Runtime/disabledruntimeeventinternal.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/coreclr/nativeaot/Runtime/disabledruntimeeventinternal.cpp b/src/coreclr/nativeaot/Runtime/disabledruntimeeventinternal.cpp index 552204c570d734..02af69dad5a0f3 100644 --- a/src/coreclr/nativeaot/Runtime/disabledruntimeeventinternal.cpp +++ b/src/coreclr/nativeaot/Runtime/disabledruntimeeventinternal.cpp @@ -4,6 +4,7 @@ #include "common.h" #include "CommonTypes.h" #include "CommonMacros.h" +#include "Pal.h" #ifdef FEATURE_PERFTRACING From b4516896fefbf9d8f487140659ac31fd4607cc67 Mon Sep 17 00:00:00 2001 From: Moyo Okeremi Date: Wed, 22 Apr 2026 15:46:10 -0700 Subject: [PATCH 08/15] fix --- src/coreclr/runtime/MiscNativeHelpers.cpp | 1 + src/coreclr/tools/metainfo/mdinfo.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/coreclr/runtime/MiscNativeHelpers.cpp b/src/coreclr/runtime/MiscNativeHelpers.cpp index 2eff4a1b3b2c9c..df438c42127ac7 100644 --- a/src/coreclr/runtime/MiscNativeHelpers.cpp +++ b/src/coreclr/runtime/MiscNativeHelpers.cpp @@ -3,6 +3,7 @@ #include "common.h" #include "MiscNativeHelpers.h" +#include #include #if defined(TARGET_X86) || defined(TARGET_AMD64) diff --git a/src/coreclr/tools/metainfo/mdinfo.cpp b/src/coreclr/tools/metainfo/mdinfo.cpp index ad9fb563b3c25a..e8807d77af71fe 100644 --- a/src/coreclr/tools/metainfo/mdinfo.cpp +++ b/src/coreclr/tools/metainfo/mdinfo.cpp @@ -13,9 +13,9 @@ #include "assert.h" #include "corerror.h" #include -#include "caparser.h" #include +#include #include #include "mdinfo.h" From 718915aa94250c46b4e1c61edfff466677a047d7 Mon Sep 17 00:00:00 2001 From: Moyo Okeremi Date: Wed, 22 Apr 2026 16:28:18 -0700 Subject: [PATCH 09/15] fix --- src/coreclr/debug/di/dbgtransportmanager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/coreclr/debug/di/dbgtransportmanager.cpp b/src/coreclr/debug/di/dbgtransportmanager.cpp index c56a912b14aa06..7e9bb9bb29a237 100644 --- a/src/coreclr/debug/di/dbgtransportmanager.cpp +++ b/src/coreclr/debug/di/dbgtransportmanager.cpp @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. #include "stdafx.h" +#include "dbgtransportmanager.h" #include "dbgtransportsession.h" #ifdef FEATURE_DBGIPC_TRANSPORT_DI From 3c38690bf8c87c1ac688a5069de1c4ee608556c1 Mon Sep 17 00:00:00 2001 From: Moyo Okeremi Date: Wed, 22 Apr 2026 17:01:25 -0700 Subject: [PATCH 10/15] fixes --- src/coreclr/debug/createdump/main.cpp | 1 + src/coreclr/tools/metainfo/mdobj.cpp | 3 +++ src/coreclr/utilcode/sstring.cpp | 1 + 3 files changed, 5 insertions(+) diff --git a/src/coreclr/debug/createdump/main.cpp b/src/coreclr/debug/createdump/main.cpp index 6d416fbe09dd9e..b322a3c02a45c5 100644 --- a/src/coreclr/debug/createdump/main.cpp +++ b/src/coreclr/debug/createdump/main.cpp @@ -1,6 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#include "createdump.h" extern int createdump_main(const int argc, const char* argv[]); extern void UninitializePAL(int exitCode); diff --git a/src/coreclr/tools/metainfo/mdobj.cpp b/src/coreclr/tools/metainfo/mdobj.cpp index 20ea156c94e00f..8d9d604280213b 100644 --- a/src/coreclr/tools/metainfo/mdobj.cpp +++ b/src/coreclr/tools/metainfo/mdobj.cpp @@ -1,6 +1,9 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +#include +#include +#include #include "mdinfo.h" #ifndef STRING_BUFFER_LEN diff --git a/src/coreclr/utilcode/sstring.cpp b/src/coreclr/utilcode/sstring.cpp index 2cd20faee37403..8325474892cc26 100644 --- a/src/coreclr/utilcode/sstring.cpp +++ b/src/coreclr/utilcode/sstring.cpp @@ -10,6 +10,7 @@ #include "sstring.h" #include "ex.h" #include "holder.h" +#include "minipal/strings.h" #if defined(_MSC_VER) #pragma inline_depth (25) From 2c210d3234162335034b9b3ad19b51a23fc7fd8c Mon Sep 17 00:00:00 2001 From: Moyo Okeremi Date: Wed, 22 Apr 2026 20:05:49 -0700 Subject: [PATCH 11/15] fixes --- src/coreclr/dlls/mscoree/exports.cpp | 1 + src/coreclr/vm/corelib.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/coreclr/dlls/mscoree/exports.cpp b/src/coreclr/dlls/mscoree/exports.cpp index 7ebf191295995e..053993ad1918a3 100644 --- a/src/coreclr/dlls/mscoree/exports.cpp +++ b/src/coreclr/dlls/mscoree/exports.cpp @@ -14,6 +14,7 @@ #include #include #include +#include "../../vm/ceemain.h" #ifdef FEATURE_GDBJIT #include "../../vm/gdbjithelpers.h" #endif // FEATURE_GDBJIT diff --git a/src/coreclr/vm/corelib.cpp b/src/coreclr/vm/corelib.cpp index bfbc3ecd4bef30..2370155353e859 100644 --- a/src/coreclr/vm/corelib.cpp +++ b/src/coreclr/vm/corelib.cpp @@ -21,6 +21,7 @@ #include "comsynchronizable.h" #include "floatdouble.h" #include "floatsingle.h" +#include "divmodint.h" #include "assemblynative.hpp" #include "proftoeeinterfaceimpl.h" From fe05e15bb927aa601ba54234cb96a12cfef694e5 Mon Sep 17 00:00:00 2001 From: Moyo Okeremi Date: Thu, 23 Apr 2026 09:00:00 -0700 Subject: [PATCH 12/15] fix --- src/coreclr/debug/runtimeinfo/runtimeinfo.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/coreclr/debug/runtimeinfo/runtimeinfo.cpp b/src/coreclr/debug/runtimeinfo/runtimeinfo.cpp index 261f9c5acc247e..7dfd0c2afd4b85 100644 --- a/src/coreclr/debug/runtimeinfo/runtimeinfo.cpp +++ b/src/coreclr/debug/runtimeinfo/runtimeinfo.cpp @@ -8,6 +8,7 @@ // //***************************************************************************** +#include #include #include From 1b3d1f633d53fe108a2c98ca0f052329a3902d81 Mon Sep 17 00:00:00 2001 From: Moyo Okeremi Date: Thu, 23 Apr 2026 09:39:29 -0700 Subject: [PATCH 13/15] fix --- src/coreclr/tools/superpmi/mcs/verbmerge.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/coreclr/tools/superpmi/mcs/verbmerge.cpp b/src/coreclr/tools/superpmi/mcs/verbmerge.cpp index 40c57040cf3f60..35b7263d4a68b7 100644 --- a/src/coreclr/tools/superpmi/mcs/verbmerge.cpp +++ b/src/coreclr/tools/superpmi/mcs/verbmerge.cpp @@ -6,6 +6,7 @@ #include "simpletimer.h" #include "logging.h" #include "spmiutil.h" +#include "config.h" #include #ifdef TARGET_UNIX #include From c97aa6506d57403f2f7791fecffc0ac10efc08a1 Mon Sep 17 00:00:00 2001 From: Moyo Okeremi Date: Thu, 23 Apr 2026 12:29:05 -0700 Subject: [PATCH 14/15] fix --- src/coreclr/nativeaot/Runtime/eventpipe/ds-rt-aot.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/coreclr/nativeaot/Runtime/eventpipe/ds-rt-aot.cpp b/src/coreclr/nativeaot/Runtime/eventpipe/ds-rt-aot.cpp index 00593b94f0f361..cf0878f3cf20b0 100644 --- a/src/coreclr/nativeaot/Runtime/eventpipe/ds-rt-aot.cpp +++ b/src/coreclr/nativeaot/Runtime/eventpipe/ds-rt-aot.cpp @@ -7,6 +7,7 @@ #include #endif +#include #ifdef __APPLE__ #include From 0c2345fc3ecd16b7e651522b39a880445a64ed3c Mon Sep 17 00:00:00 2001 From: Moyo Okeremi Date: Thu, 23 Apr 2026 19:31:55 -0700 Subject: [PATCH 15/15] comments --- src/coreclr/vm/ceeload.cpp | 1 + src/coreclr/vm/comcallablewrapper.cpp | 1 + src/coreclr/vm/comutilnative.cpp | 1 + src/coreclr/vm/gchelpers.cpp | 2 ++ src/coreclr/vm/perfmap.cpp | 1 + src/coreclr/vm/precode_portable.cpp | 1 + src/coreclr/vm/runtimehandles.cpp | 1 + src/coreclr/vm/typehandle.cpp | 1 + 8 files changed, 9 insertions(+) diff --git a/src/coreclr/vm/ceeload.cpp b/src/coreclr/vm/ceeload.cpp index cd9cbd215eb6d3..55d2a96caa9635 100644 --- a/src/coreclr/vm/ceeload.cpp +++ b/src/coreclr/vm/ceeload.cpp @@ -4463,6 +4463,7 @@ VOID Module::EnsureActive() } #endif // DACCESS_COMPILE +#include CHECK Module::CheckActivated() { diff --git a/src/coreclr/vm/comcallablewrapper.cpp b/src/coreclr/vm/comcallablewrapper.cpp index 1ce42967de2100..b4a11c16fbe207 100644 --- a/src/coreclr/vm/comcallablewrapper.cpp +++ b/src/coreclr/vm/comcallablewrapper.cpp @@ -1171,6 +1171,7 @@ IUnknown* SimpleComCallWrapper::QIStandardInterface(REFIID riid) RETURN NULL; } +#include //-------------------------------------------------------------------------- // Init Outer unknown, cache a GIT cookie diff --git a/src/coreclr/vm/comutilnative.cpp b/src/coreclr/vm/comutilnative.cpp index 0411b810ee13d4..c7e4ef186ad6c6 100644 --- a/src/coreclr/vm/comutilnative.cpp +++ b/src/coreclr/vm/comutilnative.cpp @@ -1728,6 +1728,7 @@ FCIMPL2_IV(INT64,COMInterlocked::ExchangeAdd64, INT64 *location, INT64 value) } FCIMPLEND +#include static BOOL HasOverriddenMethod(MethodTable* mt, MethodTable* classMT, WORD methodSlot) { diff --git a/src/coreclr/vm/gchelpers.cpp b/src/coreclr/vm/gchelpers.cpp index 696c9eb9d71fdd..162d33a8a4661a 100644 --- a/src/coreclr/vm/gchelpers.cpp +++ b/src/coreclr/vm/gchelpers.cpp @@ -1593,6 +1593,7 @@ HCIMPLEND_RAW // This function sets the card table with the granularity of 1 byte, to avoid ghost updates // that could occur if multiple threads were trying to set different bits in the same card. +#include void ErectWriteBarrier(OBJECTREF *dst, OBJECTREF ref) { STATIC_CONTRACT_MODE_COOPERATIVE; @@ -1630,6 +1631,7 @@ void ErectWriteBarrier(OBJECTREF *dst, OBJECTREF ref) } } } +#include void ErectWriteBarrierForMT(MethodTable **dst, MethodTable *ref) { diff --git a/src/coreclr/vm/perfmap.cpp b/src/coreclr/vm/perfmap.cpp index e5c9f39f90e6f1..d51c75dbe35f01 100644 --- a/src/coreclr/vm/perfmap.cpp +++ b/src/coreclr/vm/perfmap.cpp @@ -4,6 +4,7 @@ // File: perfmap.cpp // +#include "common.h" #if defined(FEATURE_PERFMAP) && !defined(DACCESS_COMPILE) #include diff --git a/src/coreclr/vm/precode_portable.cpp b/src/coreclr/vm/precode_portable.cpp index 115c16e327d1bf..3330d548ea845d 100644 --- a/src/coreclr/vm/precode_portable.cpp +++ b/src/coreclr/vm/precode_portable.cpp @@ -4,6 +4,7 @@ #ifdef FEATURE_PORTABLE_ENTRYPOINTS +#include "common.h" #include "precode_portable.hpp" #ifdef HOST_64BIT diff --git a/src/coreclr/vm/runtimehandles.cpp b/src/coreclr/vm/runtimehandles.cpp index ce04ff8f5b7bc3..da8093d38779e7 100644 --- a/src/coreclr/vm/runtimehandles.cpp +++ b/src/coreclr/vm/runtimehandles.cpp @@ -215,6 +215,7 @@ FCIMPL1(void, RuntimeTypeHandle::GetNextIntroducedMethod, MethodDesc ** ppMethod *ppMethod = pMethod; } FCIMPLEND +#include FCIMPL1(AssemblyBaseObject*, RuntimeTypeHandle::GetAssemblyIfExists, ReflectClassBaseObject *pTypeUNSAFE) { diff --git a/src/coreclr/vm/typehandle.cpp b/src/coreclr/vm/typehandle.cpp index 767510cc207515..5dd7d4e85d468a 100644 --- a/src/coreclr/vm/typehandle.cpp +++ b/src/coreclr/vm/typehandle.cpp @@ -684,6 +684,7 @@ TypeHandle::CastResult TypeHandle::CanCastToCached(TypeHandle type) const return CastCache::TryGetFromCache(*this, type); } +#include #endif // #ifndef DACCESS_COMPILE