Skip to content

Conversation

@sbomer
Copy link
Member

@sbomer sbomer commented Jun 3, 2020

@sbomer sbomer requested a review from marek-safar as a code owner June 3, 2020 16:17
sbomer added a commit to sbomer/runtime that referenced this pull request Jun 3, 2020
See dotnet/linker#1237.
Setting the boolean ClearInitLocals is sufficient here because we are
only linking the target assembly. If in the future we need to control
it per-assembly, we can use metadata on AssemblyPaths:
https://github.com/mono/linker/blob/master/src/ILLink.Tasks/LinkTask.cs#L23
@MichalStrehovsky
Copy link
Member

Do we need to keep supporting this now that dotnet/runtime#454 is part of .NET 5 (and the Roslyn feature is in Roslyn's master)?

@sbomer
Copy link
Member Author

sbomer commented Jun 3, 2020

I think once dotnet/runtime#35527 is finished we can drop it. dotnet/runtime is the only place I know of that is using the optimization.

sbomer added 2 commits June 4, 2020 17:29
- Avoids changing assembly action
- Uses assembly optimizations instead of custom data
- Fixes dotnet#1129
Remove error message
@sbomer sbomer force-pushed the clearInitLocalsCleanup branch from c6d65d3 to 964c99d Compare June 4, 2020 17:29
@sbomer sbomer self-assigned this Jun 4, 2020
sbomer added a commit to dotnet/runtime that referenced this pull request Jun 4, 2020
See dotnet/linker#1237.
Setting the boolean ClearInitLocals is sufficient here because we are
only linking the target assembly. If in the future we need to control
it per-assembly, we can use metadata on AssemblyPaths:
https://github.com/mono/linker/blob/master/src/ILLink.Tasks/LinkTask.cs#L23
@sbomer sbomer merged commit 7e11c51 into dotnet:master Jun 4, 2020
tkapin pushed a commit to tkapin/runtime that referenced this pull request Jan 31, 2023
* Clean up clearinitlocals handling

- Avoids changing assembly action
- Uses assembly optimizations instead of custom data
- Fixes dotnet/linker#1129

* PR feedback

Remove error message

Commit migrated from dotnet/linker@7e11c51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clean up ClearInitLocalsStep step

3 participants