Bug #1124
closedAnyURI cache grows indefinitely when threading
0%
Description
SourceForge user: mhkay
The class AnyURIValue, which implements the schema type xs:anyURI, maintains a cache of recently used URI values to reduce the cost of checking URI validity on commonly used URIs, especially namespaces. This cache is designed to have a finite size, so the oldest entries are discarded when new entries are added. However, the cache is shared between threads and is implemented without synchoronisation. This does not appear to cause any functional problems, but has the effect that old entries are not being properly discarded, so that the cache gradually grows in size.
A patch to module net.sf.saxon.value.AnyURIValue is being committed. The effect of the patch is to use a ThreadLocal cache in place of the current shared cache.
Updated by Anonymous almost 15 years ago
SourceForge user: mhkay
Fixed in 9.1.0.7
Please register to edit this issue