我想开源一个大型代码库,并且在实际操作之前无法手动审核所有源代码。
似乎MS在他们为.NET BCL发布的源代码中的注释中编辑了一些文本。
以下是System.Lazy<T>
的一个例子:
if (boxed == null ||
Interlocked.CompareExchange(ref m_boxed, boxed, null) != null)
{
// If CreateValue returns null, it means another thread successfully invoked the value factory
// and stored the result, so we should just take what was stored. If CreateValue returns non-null
// but we lose the ---- to store the single value, again we should just take what was stored.
boxed = (Boxed)m_boxed;
}
请注意----
文字。似乎race
这个词可能已被删除。
在他们的代码中,我似乎还有很多其他的例子。
这些修改是如何计算的?这是简单的字符串匹配吗?