Project

Profile

Help

Bug #3458

closed

Putting SameNameTest in TypeHierarchy cache locks document into memory

Added by Michael Kay about 7 years ago. Updated about 7 years ago.

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

100%

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

Description

A SameNameTest is a pattern than matches nodes having the same node kind and name as a specified node. Because this object contains a reference to the relevant NodeInfo, storing it in the TypeHierarchy cache will result in the document tree containing that NodeInfo being locked into memory.

Reported here: https://saxonica.plan.io/boards/3/topics/6988

Actions #1

Updated by Michael Kay about 7 years ago

  • Status changed from New to Resolved
  • Fix Committed on Branch 9.8 added

Although I don't have a repro that actually causes a SameNameTest to be placed in the TypeHierarchy cache, it's clearly something that shouldn't be allowed to happen so I have put in a guard against it.

Actions #2

Updated by O'Neil Delpratt about 7 years ago

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

Bug fix applied in the Saxon 9.8.0.5 maintenance release.

Please register to edit this issue

Also available in: Atom PDF