提交 6065f5a5 编写于 作者: S Sam Harwell 提交者: GitHub

Merge pull request #19023 from sharwell/add-guard

Guard access to shared resource WordSimilarityChecker.s_pool
......@@ -140,7 +140,10 @@ public void Free()
_source = null;
_editDistance = null;
_lastAreSimilarResult = default(CacheResult);
s_pool.Push(this);
lock (s_poolGate)
{
s_pool.Push(this);
}
}
public static bool AreSimilar(string originalText, string candidateText)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册