dotnet/runtime

[mono] MonoImage->references reads should be atomic

Ouverte

#32 889 ouverte le 26 févr. 2020

 (1 commentaire) (0 réaction) (0 personne assignée)C# (5 445 forks)batch import
area-VM-meta-monogood first issueruntime-mono

Métriques du dépôt

Stars
 (17 886 étoiles)
Métriques de merge PR
 (Merge moyen 12j 11h) (661 PRs mergées en 30 j)

Description

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.

Guide contributeur