Project

Profile

Help

Bug #5094

closed

Caching of last() at context level is not working

Added by Michael Kay over 3 years ago. Updated over 3 years ago.

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

100%

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

Description

The code is designed so that the value of last() only ever needs to be computed once for a given dynamic context (this is because it can be expensive to compute, requiring lookahead). It is actually cached at two levels: the FocusTrackingIterator, and the XPathContextMinor. The caching at iterator level is working, but the caching at context level is not. This mainly affects multi-threading situations where several iterators may be obtained over the same underlying sequence.

There is no specific test case for this patch, but it has been present in the 11 branch for some while, and was verified by tracing in the debugger.

Actions #1

Updated by Michael Kay over 3 years ago

  • Status changed from New to Resolved
  • Priority changed from Low to Normal
  • Applies to branch 10 added
  • Fix Committed on Branch 10 added

Fix applied to XPathContextMinor

Actions #2

Updated by O'Neil Delpratt over 3 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in Maintenance Release 10.6 added

Bug fix applied in the Saxon 10.6 maintenance release

Actions #3

Updated by Michael Kay over 3 years ago

It's possible that the symptoms described in bug #4934 could be related to this bug.

Please register to edit this issue

Also available in: Atom PDF