Skip to content

Conversation

kotlarmilos
Copy link
Member

@kotlarmilos kotlarmilos commented Jul 3, 2025

Description

The goal is to identify and implement additional missing intrinsics used during startup.

This PR implements missing intrinsics for the startup path. It builds on changes from #116769 and #116924 which fixed conv opcodes and introduced scaffolding for intrinsic handling. This PR is a follow-up to mentioned PRs and will not be merged until those are merged.

Changes

  • Implemented StaticsHelpers.VolatileReadAsByref
  • Implemented Interlocked.CompareExchange
  • Implemented RuntimeHelpers.GetMethodTable
  • Implemented MemoryMarshal.GetArrayDataReference
  • Implemented RuntimeHelpers.IsReferenceOrContainsReferences

Tasks

  • Add tests

Run a sample desktop app using the following environment variables:

 "DOTNET_Interpreter" : "*!*",
 "DOTNET_ReadyToRun" : "0"

@github-actions github-actions bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Jul 3, 2025
@kotlarmilos kotlarmilos added area-CodeGen-Interpreter-coreclr and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Jul 3, 2025
@kotlarmilos kotlarmilos added this to the 10.0.0 milestone Jul 3, 2025
@kotlarmilos kotlarmilos added the NO-MERGE The PR is not ready for merge yet (see discussion for detailed reasons) label Jul 3, 2025
@kotlarmilos kotlarmilos marked this pull request as ready for review July 10, 2025 11:06
@kotlarmilos kotlarmilos removed the NO-MERGE The PR is not ready for merge yet (see discussion for detailed reasons) label Jul 10, 2025
Copy link
Member

@janvorli janvorli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@kg
Copy link
Member

kg commented Jul 10, 2025

other than my comments and jan's, LGTM, thanks!

- Updated EmitNamedIntrinsicCall to include emitMemBarrier parameter.
- Replaced INTOP_METHODTABLE with INTOP_GETMETHODTABLE in EmitNamedIntrinsicCall
- Introduced INTOP_NULLCHECK operation in intops.def and implemented its handling in the interpreter
- Removed debug print statements from compileMethod
- Added tests
@kotlarmilos
Copy link
Member Author

/ba-g android timeouts

@kotlarmilos kotlarmilos merged commit 6ac6c21 into dotnet:main Jul 15, 2025
102 of 104 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Aug 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants