dotnet/runtime

[mono] MonoImage->references reads should be atomic

Open

#32.889 aperta il 26 feb 2020

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)C# (5445 fork)batch import
area-VM-meta-monogood first issueruntime-mono

Metriche repository

Star
 (17.886 star)
Metriche merge PR
 (Merge medio 12g 11h) (661 PR mergiate in 30 g)

Descrizione

As of https://github.com/dotnet/runtime/pull/32622 we will take the image lock when writing to references, but reads throughout the code are currently done directly and without locking. This should be changed to use accessor functions that read in the pointer atomically.

This isn't time-critical as I don't believe we've seen many (any?) crashes related to this, but is worth noting and changing for completeness' sake.

Guida contributor