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 ClearInitLocalsAssemblies arg #37355

Merged
merged 1 commit into from
Jun 4, 2020

Conversation

sbomer
Copy link
Member

@sbomer sbomer commented 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

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
@ghost
Copy link

ghost commented Jun 3, 2020

Tagging subscribers to this area: @ViktorHofer
Notify danmosemsft if you want to be subscribed.

@sbomer sbomer requested a review from marek-safar June 3, 2020 16:23
Copy link
Member

@stephentoub stephentoub left a comment

Choose a reason for hiding this comment

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

LGTM as long as you've double and triple checked that the binaries we're producing still have the flag removed appropriately. 😄 Thanks. (Subsequently, it'd be great to switch to the C# 9 feature to avoid the flag in the first place rather than relying on the linker removing it.)

@sbomer
Copy link
Member Author

sbomer commented Jun 3, 2020

I've double-checked. Will triple-check. :)

@marek-safar
Copy link
Contributor

it'd be great to switch to the C# 9 feature

#35527 is assigned so hopefully it will be completed soon

@sbomer sbomer self-assigned this Jun 4, 2020
@sbomer sbomer merged commit 0e08e56 into dotnet:master Jun 4, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 8, 2020
@sbomer sbomer deleted the clearinitlocalsCleanup branch November 3, 2023 18:35
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.

5 participants