提交 de8f2a63 编写于 作者: S sherman

6898310: (cs) Charset cache lookups should be synchronized

Summary: synchronize the lookup in iterator
Reviewed-by: alanb
上级 60839a4f
......@@ -179,7 +179,9 @@ public class AbstractCharsetProvider
public Charset next() {
String csn = i.next();
return lookup(csn);
synchronized (AbstractCharsetProvider.this) {
return lookup(csn);
}
}
public void remove() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册