Skip to content

Conversation

@MichalStrehovsky
Copy link
Member

MdArray rank1 with all-zero lower bounds gets actually allocated as an SzArray. On Native AOT this means we need to spin up to the type loader to potentially load the new type. Split this expensive (and impossible-to-express-in-C#) thing into a separate helper so we can trim the type loader.

#84156 (comment)

Cc @dotnet/ilc-contrib

MdArray rank1 with all-zero lower bounds gets actually allocated as an SzArray. On Native AOT this means we need to spin up to the type loader to potentially load the new type. Split this expensive (and impossible-to-express-in-C#) thing into a separate helper so we can trim the type loader.

dotnet#84156 (comment)
@ghost
Copy link

ghost commented Apr 1, 2023

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

Issue Details

MdArray rank1 with all-zero lower bounds gets actually allocated as an SzArray. On Native AOT this means we need to spin up to the type loader to potentially load the new type. Split this expensive (and impossible-to-express-in-C#) thing into a separate helper so we can trim the type loader.

#84156 (comment)

Cc @dotnet/ilc-contrib

Author: MichalStrehovsky
Assignees: -
Labels:

area-NativeAOT-coreclr

Milestone: -

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.

Some nits

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!

@MichalStrehovsky
Copy link
Member Author

Cc @dotnet/jit-contrib since I'm touching the JIT. Also I know there's extra logistics to think about when JitInterface GUID is changed: I don't mind this waiting until a merge window opens.

@EgorBo
Copy link
Member

EgorBo commented Apr 3, 2023

Cc @dotnet/jit-contrib since I'm touching the JIT. Also I know there's extra logistics to think about when JitInterface GUID is changed: I don't mind this waiting until a merge window opens.

I don't think we have a strict rule around that. I personally try to merge such changes on weekends since SPMI re-collection is a bit fragile (takes a lot of time, some collections aren't automated yet), if @AndyAyersMS hasn't yet updated aspnet I assume we can merge this one today

@AndyAyersMS
Copy link
Member

if @AndyAyersMS hasn't yet updated aspnet I assume we can merge this one today

Merging today is fine by me.

@jkotas jkotas merged commit 388d666 into dotnet:main Apr 3, 2023
@MichalStrehovsky MichalStrehovsky deleted the splitrank1 branch April 3, 2023 20:54
@ghost ghost locked as resolved and limited conversation to collaborators May 4, 2023
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.

4 participants