Uh oh!
There was an error while loading. Please reload this page.
Fix runtime build when tiered compilation is disabled - #119355
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR fixes runtime build errors that occur when tiered compilation is disabled by properly wrapping tiered compilation-related code with FEATURE_TIERED_COMPILATION guards. The changes ensure that code referencing tiered compilation stubs and data structures is only compiled when the feature is enabled.
Key Changes
- Added conditional compilation guards around call counting stub definitions and references
- Fixed incorrect feature flags for on-stack replacement code sections
- Protected tiered compilation ETW event tracing code
Reviewed Changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/coreclr/vm/riscv64/asmhelpers.S | Fixed feature guards for patchpoint stubs |
| src/coreclr/vm/riscv64/asmconstants.h | Added guards around call counting stub constants |
| src/coreclr/vm/loongarch64/thunktemplates.S | Protected call counting stub template |
| src/coreclr/vm/loongarch64/asmhelpers.S | Fixed feature guards for patchpoint stubs |
| src/coreclr/vm/loongarch64/asmconstants.h | Added guards around call counting stub constants |
| src/coreclr/vm/i386/thunktemplates.S | Protected call counting stub template |
| src/coreclr/vm/i386/asmconstants.h | Added guards around call counting stub constants |
| src/coreclr/vm/eventtrace.cpp | Protected tiered compilation ETW events |
| src/coreclr/vm/arm64/thunktemplates.S | Protected call counting stub templates |
| src/coreclr/vm/arm64/asmhelpers.S | Fixed feature guards for patchpoint stubs |
| src/coreclr/vm/arm64/asmconstants.h | Added guards around call counting stub constants |
| src/coreclr/vm/arm/asmconstants.h | Added guards around call counting stub constants |
| src/coreclr/vm/amd64/thunktemplates.S | Protected call counting stub template |
| src/coreclr/vm/amd64/asmconstants.h | Added guards around call counting stub constants |
| src/coreclr/inc/vptr_list.h | Protected call counting stub manager declaration |
| src/coreclr/inc/dacvars.h | Protected call counting stub manager DAC variable |
| src/coreclr/debug/daccess/dacdbiimpl.cpp | Fixed assignment to boolean pointer |
Uh oh!
There was an error while loading. Please reload this page.
Tagging subscribers to this area: @mangod9 |
kotlarmilos
commented
Sep 4, 2025
/azp run runtime-extra-platforms |
|
Azure Pipelines successfully started running 1 pipeline(s). |
kotlarmilos
commented
Sep 4, 2025
/azp run runtime-extra-platforms |
This comment was marked as outdated.
This comment was marked as outdated.
kotlarmilos
commented
Sep 4, 2025
/azp run runtime-extra-platforms |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Aaron Robinson <arobins@microsoft.com>
Co-authored-by: Aaron Robinson <arobins@microsoft.com>
Co-authored-by: Aaron Robinson <arobins@microsoft.com>
Co-authored-by: Aaron Robinson <arobins@microsoft.com>
Co-authored-by: Aaron Robinson <arobins@microsoft.com>
Co-authored-by: Aaron Robinson <arobins@microsoft.com>
Co-authored-by: Aaron Robinson <arobins@microsoft.com>
Co-authored-by: Aaron Robinson <arobins@microsoft.com>
Co-authored-by: Aaron Robinson <arobins@microsoft.com>
kotlarmilos
commented
Sep 22, 2025
/azp run runtime-extra-platforms |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Uh oh!
There was an error while loading. Please reload this page.
AaronRobinsonMSFT
left a comment
There was a problem hiding this comment.
LGTM. I'd like to see #119355 (comment) applied before merge.
…tlarmilos/runtime into improvement/clr-interp-build-features
Uh oh!
There was an error while loading. Please reload this page.
Description
This PR ensures that tiered compilation–related logic is compiled only when FEATURE_TIERED_COMPILATION is enabled. Several components like DAC variables, vtable pointer lists, assembly constants, thunk templates, and event tracing unconditionally referenced these stubs. On builds without tiered compilation, this resulted in runtime build errors.
This change fixes CoreCLR builds for Apple mobile.