Project

Profile

Help

Bug #1124

closed

AnyURI cache grows indefinitely when threading

Added by Anonymous about 15 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Performance
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Legacy ID:
sf-2770579
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:

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.

Actions #1

Updated by Anonymous almost 15 years ago

SourceForge user: mhkay

Fixed in 9.1.0.7

Please register to edit this issue

Also available in: Atom PDF