This repository was archived by the owner on Jan 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Enable object stack allocation in R2R mode. #21533
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Member
Author
|
Fixes #20977. |
Member
Author
Member
Author
|
Verified no -pmi and --crossgen framework diffs with COMPlus_JitObjectStackAllocation not set . --crossgen framework diffs with COMPlus_JitObjectStackAllocation set: |
Member
Author
|
@AndyAyersMS @echesakovMSFT @dotnet/jit-contrib PTAL |
Member
Author
|
@dotnet-bot test Windows_NT x64 Release r2r |
AndyAyersMS
approved these changes
Dec 14, 2018
Member
AndyAyersMS
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This change modified the importer to create GenTreeAllocObj node for box and newobj instead of a helper call in R2R mode. ObjectAllocator phase decides whether the object can be allocated on the stack or has to be created on the heap via a helper call. To trigger object stack allocation COMPlus_JitObjectStackAllocation has to be set (it's not set by default).
1e79360 to
d4e9e5d
Compare
Member
Author
|
@dotnet-bot test Windows_NT x64 Release r2r |
Member
Author
|
@dotnet-bot test Windows_NT arm64 Cross Checked Innerloop Build and Test |
Member
Author
|
This was an item from the object stack allocation list tracked in https://github.com/dotnet/coreclr/issues/20253 |
20 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This change modified the importer to create GenTreeAllocObj node for
box and newobj instead of a helper call in R2R mode. ObjectAllocator phase
decides whether the object can be allocated on the stack or has to be created
on the heap via a helper call.
To trigger object stack allocation COMPlus_JitObjectStackAllocation has
to be set (it's not set by default).