Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Oct 29, 2025

Move helper methods from ArrayHelpers.cs and TypedReferenceHelpers.cs to their appropriate target types and other changes to make NativeAOT and non-NativeAOT structure to be more similar.

@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 Oct 29, 2025
Copilot AI changed the title [WIP] Refactor ArrayHelpers and TypedReferenceHelpers files Refactor NativeAOT helpers to align with CoreCLR patterns Oct 29, 2025
Copilot AI requested a review from jkotas October 29, 2025 03:53
…efAny, use GetCoreLibEntryPoint

Co-authored-by: jkotas <[email protected]>
@dotnet-policy-service
Copy link
Contributor

Draft Pull Request was automatically closed for 30 days of inactivity. Please let us know if you'd like to reopen it.


// Implementation of CORINFO_HELP_TYPEHANDLE_TO_RUNTIMETYPE, CORINFO_HELP_GETSYNCFROMCLASSHANDLE
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static unsafe RuntimeType GetTypeFromMethodTable(MethodTable* pMT)
Copy link
Member

Choose a reason for hiding this comment

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

@copilot Add GetTypeFromMethodTable to src\coreclr\nativeaot\Test.CoreLib\src\System\Type,cs as well

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in 5c9acff - added GetTypeFromMethodTable method to Test.CoreLib/src/System/Type.cs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants