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

[metadata] Break up mono_metadata_parse_type_internal #60725

Merged
merged 2 commits into from
Oct 26, 2021

Conversation

lambdageek
Copy link
Member

Separate the type allocation and cleanup logic from the main decoding logic and from the cached instance lookup.

Also free the allocated memory, if any, in case of decoding errors.

Motivated by #60675 /cc @am11

Separate the type allocation and cleanup logic from the main decoding logic and
from the cached instance lookup.

Also free the allocated memory, if any, in case of decoding errors.
@ghost
Copy link

ghost commented Oct 21, 2021

Tagging subscribers to this area: @buyaa-n
See info in area-owners.md if you want to be subscribed.

Issue Details

Separate the type allocation and cleanup logic from the main decoding logic and from the cached instance lookup.

Also free the allocated memory, if any, in case of decoding errors.

Motivated by #60675 /cc @am11

Author: lambdageek
Assignees: -
Labels:

area-System.Reflection.Metadata

Milestone: -

@ghost
Copy link

ghost commented Oct 21, 2021

Tagging subscribers to this area:
See info in area-owners.md if you want to be subscribed.

Issue Details

Separate the type allocation and cleanup logic from the main decoding logic and from the cached instance lookup.

Also free the allocated memory, if any, in case of decoding errors.

Motivated by #60675 /cc @am11

Author: lambdageek
Assignees: -
Labels:

area-VM-meta-mono

Milestone: -

Copy link
Member

@am11 am11 left a comment

Choose a reason for hiding this comment

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

Looking good. Fixes the warning as well without regressing functionality. 👍

@lambdageek
Copy link
Member Author

@thaystg @vargaz could you take a look at this one, please

Copy link
Member

@thaystg thaystg left a comment

Choose a reason for hiding this comment

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

LGTM

@lambdageek lambdageek merged commit bf885a3 into dotnet:main Oct 26, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Nov 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

3 participants