Set app context to null on thread detach (#21489)mono-6.12.0.181
commitf354099a6b61418a78717578f939deadb30df848
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Tue, 24 May 2022 15:37:52 +0000 (24 17:37 +0200)
committerGitHub <noreply@github.com>
Tue, 24 May 2022 15:37:52 +0000 (24 17:37 +0200)
treea0b5be649b6f5fb717e2d71e91831d42d53fe1eb
parent6c7e72dd8e0a0986f197d1bb23f623a70ad87396
Set app context to null on thread detach (#21489)

When a domain is unloaded, it is possible that an InternalThread
has a reference to an app context from the unloaded domain.

Co-authored-by: Bill Holmes <bill.holmes@unity3d.com>
mono/metadata/domain.c
mono/metadata/threads.c