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

修复AppDomain无法被GC的bug #695

Closed
wants to merge 1 commit into from
Closed

Conversation

tinysnake
Copy link
Contributor

@tinysnake tinysnake commented Apr 29, 2022

GetTypeFlags方法中通过判断Type是否是ILRuntimeWrapperType从而将ILRuntimeWrapperTypeRuntimeType分开缓存对应值,最后在AppDomainDispose方法中进行统一清理, 避免AppDomain被static成员引用导致无法GC的问题。

@liiir1985 liiir1985 closed this in 0d7fd01 May 25, 2022
@liiir1985
Copy link
Collaborator

额外增加一个dictionary开销会比较大,直接从ILRuntimeWrapperType取RealType作为缓存即可,见上面的提交记录

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.

2 participants