Commit a1c550c
[reflection] Initialize default ALC gchandle in GetLoadContext (#60399)
If we try to get the ALC of an assembly from the default context before the
managed default ALC object has been created, the native gchandle has a null
target.
Ensure it is not null by explicitly referencing the Default ALC.
Fixes #60348
Co-authored-by: Aleksey Kliger <alklig@microsoft.com>1 parent 8b0cf9c commit a1c550c
File tree
1 file changed
+1
-0
lines changed- src/mono/System.Private.CoreLib/src/System/Runtime/Loader
1 file changed
+1
-0
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| |||
0 commit comments