Add GCHandle in native default ALC at creation (#53308)
authorRyan Lucia <rylucia@microsoft.com>
Sat, 5 Jun 2021 07:04:30 +0000 (03:04 -0400)
committerGitHub <noreply@github.com>
Sat, 5 Jun 2021 07:04:30 +0000 (03:04 -0400)
commitf70b5b7aef21a70478e9b86dba7d996a57a9add9
treeb9f1f7ba6d9d4c53f364538b0db6716e796a46fd
parent9f92b9afeddbff9b4c802c657185ab9314ace566
Add GCHandle in native default ALC at creation (#53308)

This lets embedders have a handle to fetch and pass before the runtime is properly started up and the managed default ALC is not yet created. Once the managed counterpart is initialized, the handle's target is changed, but the handle stays the same.
src/mono/mono/metadata/assembly-load-context.c
src/mono/mono/metadata/mono-private-unstable.h
src/mono/mono/metadata/native-library.c