<div dir="ltr"><div>石��紊任后�</div><div>いつもお世話になっております。</div><div><br></div><div>私の所で・髟阡�Mayaaを利用させていただいているサ・踉札咼垢�</div><div>スレッドダンプを解析していたところ・髟阡�</div><div style>HashMapのコンカレントの不具合らしき箇所が見���韻蕕譴燭燭瓠���</div><div style>報告致します。</div><div><br>

</div><div>スレッドダンプには以王踉擦離好織奪�肇譟��スが複数見られました</div><div><br></div><div><div>&quot;TP-Processor218&quot; daemon prio=1 tid=0x00007f04281c59e0 nid=0x5e52 runnable [0x00007f0407dfa000..0x00007f0407dfc890]</div><div><span class="" style="white-space:pre">        </span>at org.apache.commons.collections.map.AbstractHashedMap.getEntry(AbstractHashedMap.java:433)</div>

<div><span class="" style="white-space:pre">        </span>at org.apache.commons.collections.map.AbstractReferenceMap.getEntry(AbstractReferenceMap.java:404)</div><div><span class="" style="white-space:pre">        </span>at org.apache.commons.collections.map.AbstractReferenceMap.get(AbstractReferenceMap.java:229)</div>

<div><span class="" style="white-space:pre">        </span>at org.seasar.mayaa.impl.engine.specification.QNameImpl.getInstance(QNameImpl.java:51)</div><div><span class="" style="white-space:pre">        </span>at org.seasar.mayaa.impl.engine.specification.SpecificationUtil.createQName(SpecificationUtil.java:246)</div>

<div><span class="" style="white-space:pre">        </span>at org.seasar.mayaa.impl.engine.specification.SpecificationUtil.createQName(SpecificationUtil.java:241)</div><div><span class="" style="white-space:pre">        </span>at sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source)</div>

<div><span class="" style="white-space:pre">        </span>at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</div><div><span class="" style="white-space:pre">        </span>at java.lang.reflect.Method.invoke(Method.java:585)</div>

<div><span class="" style="white-space:pre">        </span>at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)</div></div><div><br></div><div><br></div><div>QNameImpl.java:51を確認させていただいたところ<br></div><div><br></div><div>

<div>&nbsp; &nbsp; &nbsp; &nbsp; // 一時的に重複しても問題ないので速度を優先する。(synchronizeを外した)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; QName result = (QName)_cache.get(key);</div></div><div><br></div><div>という瘢雹記載がう髟阡擦蠅泙后�</div><div style>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;_cache</div><div style>の定義は</div><div style>

<div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;private static volatile Map _cache =</div><div>&nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; new ReferenceMap(AbstractReferenceMap.HARD, AbstractReferenceMap.SOFT, true);</div><div>となっております。</div><div><br></div><div>ここで・髟阡�ReferenceMapのJavaDocを参��箸靴燭箸海�</div>

<div><a href="http://commons.apache.org/collections/api-3.1/org/apache/commons/collections/map/ReferenceMap.html">http://commons.apache.org/collections/api-3.1/org/apache/commons/collections/map/ReferenceMap.html</a><br>
</div>
<div><br></div><div><span style="color:rgb(0,0,0);font-family:&#39;MS PGothic&#39;;font-size:medium">This implementation is not synchronized. You can use&nbsp;</span><a href="http://java.sun.com/j2se/1.3/docs/api/java/util/Collections.html#synchronizedMap" style="color:rgb(12,18,110);font-family:&#39;MS PGothic&#39;;font-size:medium"><code>Collections.synchronizedMap</code></a><span style="color:rgb(0,0,0);font-family:&#39;MS PGothic&#39;;font-size:medium">&nbsp;to provide synchronized access to a&nbsp;</span><code style="color:rgb(0,0,0)">ReferenceMap</code><span style="color:rgb(0,0,0);font-family:&#39;MS PGothic&#39;;font-size:medium">. Remember that synchronization will not stop the garbage collecter removing entries.</span><br>

</div><div><span style="color:rgb(0,0,0);font-family:&#39;MS PGothic&#39;;font-size:medium"><br></span></div><div><span style="color:rgb(0,0,0);font-family:&#39;MS PGothic&#39;;font-size:medium">という瘢雹記載されています。</span></div>
<div>
<span style="color:rgb(0,0,0);font-family:&#39;MS PGothic&#39;;font-size:medium"><br></span></div><div><span style="color:rgb(0,0,0);font-family:&#39;MS PGothic&#39;;font-size:medium">パフォ・踉札泪鵐垢砲弔い謄札鵐轡謄�屬壁��隼廚い泙垢����</span><br>

</div><div><font color="#000000" face="MS PGothic" size="3">ご確認いただけませんでしょう瘢雹か?</font></div><div><font color="#000000" face="MS PGothic" size="3"><br></font></div><div><font color="#000000" face="MS PGothic" size="3">何卒よろしくお願い致します。</font></div>

<div><br></div><div><font color="#000000" face="MS PGothic" size="3"><br></font></div></div><div><br></div><div><br></div>-- <br>Susumu ISHIGAMI
</div>