dotnet/runtime

[mono] MonoImage->references reads should be atomic

开放

#32,889 创建于 2020年2月26日

 (1 条评论) (0 个反应) (0 位负责人)C# (5,445 个派生)batch import
area-VM-meta-monogood first issueruntime-mono

仓库指标

星标
 (17,886 个星标)
PR 合并指标
 (平均合并 12天 11小时) (30 天内合并 661 个 PR)

描述

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.

贡献者指南