Commit 887deaa
[mono][interp] Add missing GC wbarriers for static field stores with hotreload enabled (dotnet#100775)
* [mono][interp] Add missing GC wbarriers for static field stores in hotreload
By default, static fields are stored in malloced memory that is registered and always scanned as roots. With hotreload, new static data is allocated inside newly created objects, so storing into it will require write barriers. In order to avoid slowing the normal execution, for fields from metadata updates, we will store into them via ldflda + stobj instead.
* [mono][interp] Add missing GC wbarriers for static field stores in collectible assemblies1 parent 20a6043 commit 887deaa
1 file changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4644 | 4644 | | |
4645 | 4645 | | |
4646 | 4646 | | |
| 4647 | + | |
| 4648 | + | |
| 4649 | + | |
| 4650 | + | |
| 4651 | + | |
| 4652 | + | |
| 4653 | + | |
| 4654 | + | |
| 4655 | + | |
| 4656 | + | |
| 4657 | + | |
| 4658 | + | |
4647 | 4659 | | |
4648 | 4660 | | |
4649 | 4661 | | |
| |||
0 commit comments