Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove HMFs from JIT helpers #111075

Merged
merged 2 commits into from
Jan 3, 2025

Conversation

AaronRobinsonMSFT
Copy link
Member

@AaronRobinsonMSFT AaronRobinsonMSFT commented Jan 3, 2025

Convert JIT helpers that throw specific exceptions to QCalls:

  • JIT_ThrowMethodAccessException
  • JIT_ThrowFieldAccessException
  • JIT_ThrowClassAccessException

Contributes to #95695

exceptions to QCalls.

JIT_ThrowMethodAccessException
JIT_ThrowFieldAccessException
JIT_ThrowClassAccessException

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 8 changed files in this pull request and generated no comments.

Files not reviewed (7)
  • src/coreclr/inc/jithelpers.h: Language not supported
  • src/coreclr/vm/comutilnative.cpp: Language not supported
  • src/coreclr/vm/comutilnative.h: Language not supported
  • src/coreclr/vm/corelib.h: Language not supported
  • src/coreclr/vm/jithelpers.cpp: Language not supported
  • src/coreclr/vm/metasig.h: Language not supported
  • src/coreclr/vm/qcallentrypoints.cpp: Language not supported
Comments suppressed due to low confidence (3)

src/coreclr/System.Private.CoreLib/src/Internal/Runtime/CompilerHelpers/ThrowHelpers.cs:42

  • [nitpick] The method name 'ThrowMethodAccessExceptionInternal' is ambiguous. It should be renamed to 'ThrowMethodAccessExceptionQCall' to better reflect its purpose.
[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ExceptionNative_ThrowMethodAccessException")]

src/coreclr/System.Private.CoreLib/src/Internal/Runtime/CompilerHelpers/ThrowHelpers.cs:56

  • [nitpick] The method name 'ThrowFieldAccessExceptionInternal' is ambiguous. It should be renamed to 'ThrowFieldAccessExceptionQCall' to better reflect its purpose.
[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ExceptionNative_ThrowFieldAccessException")]

src/coreclr/System.Private.CoreLib/src/Internal/Runtime/CompilerHelpers/ThrowHelpers.cs:70

  • [nitpick] The method name 'ThrowClassAccessExceptionInternal' is ambiguous. It should be renamed to 'ThrowClassAccessExceptionQCall' to better reflect its purpose.
[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ExceptionNative_ThrowClassAccessException")]
Copy link
Contributor

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

Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

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

Thanks

@AaronRobinsonMSFT AaronRobinsonMSFT merged commit fb7fe3e into dotnet:main Jan 3, 2025
90 checks passed
@AaronRobinsonMSFT AaronRobinsonMSFT deleted the hmf_jithelpers02 branch January 3, 2025 23:23
@github-actions github-actions bot locked and limited conversation to collaborators Feb 3, 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.

2 participants