Skip to content

Don't dispose of linked assembly in VerifyLinkingOfOtherAssemblies#2672

Merged
marek-safar merged 1 commit intodotnet:mainfrom
Unity-Technologies:dont-dispose-of-linked-assembly
Mar 2, 2022
Merged

Don't dispose of linked assembly in VerifyLinkingOfOtherAssemblies#2672
marek-safar merged 1 commit intodotnet:mainfrom
Unity-Technologies:dont-dispose-of-linked-assembly

Conversation

@mrvoorhe
Copy link
Contributor

@mrvoorhe mrvoorhe commented Mar 1, 2022

Disposing of the assembly leads to code after it to throw if it triggers a deferred read of something in the assembly. This wasn't causing any issues in the illinker test framework. I'm making changes in Unity and I ran into this.

There is no need to dispose of the assembly at this point. The resolver will be diposed and will handle disposing of the assembly.

Disposing of the assembly leads to code after it to throw if it triggers a deferred read of something in the assembly.  This wasn't causing any issues in the illinker test framework.  I'm making changes in Unity and I ran into this.

There is no need to dispose of the assembly at this point.  The resolver will be diposed and will handle disposing of the assembly.
@mrvoorhe mrvoorhe requested a review from marek-safar as a code owner March 1, 2022 18:34
@marek-safar marek-safar merged commit a709836 into dotnet:main Mar 2, 2022
mrvoorhe added a commit to Unity-Technologies/linker that referenced this pull request Mar 3, 2022
mrvoorhe added a commit to Unity-Technologies/linker that referenced this pull request Jun 14, 2022
agocke pushed a commit to dotnet/runtime that referenced this pull request Nov 16, 2022
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.

3 participants