Skip to content

Conversation

@davidwrighton
Copy link
Member

  • Replace them with using the normal monitor helpers
  • Change CORINFO_HELP_GETSYNCFROMCLASSHANDLE to return an objec instead of the underlying lock object, implementation of the JIT helper can be shared with other Typehandle to RuntimeType scenarios
  • This will likely improve the performance of synchronized methods, but that is beside the point, since this feature is so rarely used

- Replace them with using the normal monitor helpers
- Change CORINFO_HELP_GETSYNCFROMCLASSHANDLE to return an objec instead of the underlying lock object, implementation of the JIT helper can be shared with other Typehandle to RuntimeType scenarios
- This will likely improve the performance of synchronized methods, but that is beside the point, since this feature is so rarely used
@ghost ghost added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Sep 11, 2024
@davidwrighton davidwrighton marked this pull request as ready for review September 12, 2024 03:10
Copy link
Member

@MichalStrehovsky MichalStrehovsky left a comment

Choose a reason for hiding this comment

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

NativeAOT part LGTM otherwise, thanks for the simplification!

@davidwrighton davidwrighton added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Sep 12, 2024
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

@JulieLeeMSFT JulieLeeMSFT removed the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Sep 16, 2024
@JulieLeeMSFT
Copy link
Member

@jakobbotsch, PTAL.

@JulieLeeMSFT JulieLeeMSFT added this to the 10.0.0 milestone Sep 16, 2024
@davidwrighton davidwrighton merged commit 3001129 into dotnet:main Oct 16, 2024
94 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Nov 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants