|
|
|
[
Permlink
| « Hide
]
P T Withington - 03/Jul/07 01:57 PM
Have a look at the other caches in the system. We seem to have a penchant for adding them without considering how they will be managed...
When this bug is fixed, you can also close "
Right now I'm working on a patch for this issue. I guess I'll send it out in a day or two for review.
Should be:
Attached testcase " r6496 | bargull | 2007-09-15 21:47:13 +0200 (Sat, 15 Sep 2007) | 36 lines
Ge?\195?\164nderte Pfade: M /openlaszlo/branches/legals/WEB-INF/lps/lfc/data/LzDatapointer.lzs M /openlaszlo/branches/legals/WEB-INF/lps/lfc/data/LzParsedPath.lzs Change 20070915-bargull-2 by bargull@dell--p4--2-53 on 2007-09-15 21:39:09 in /home/Admin/src/svn/openlaszlo/branches/legals for http://svn.openlaszlo.org/openlaszlo/branches/legals Summary: Fix for memory leak in LzParsedPath New Features: Bugs Fixed: Technical Reviewer: hminsky QA Reviewer: ptw Doc Reviewer: (pending) Documentation: Added "getContext()" to LzParsedPath which replaces the direct access to "context"-member of "LzParsedPath". With this change the "context"-member of LzParsedPath is only used for "new"-datasets (xpath:"new:/foo/bar"). This API-Change was necessary, because LzParsedPath was holding a reference to a dataset through his "context"-member, but even if this dataset was destroyed, the reference was not cleared. This led to two bugs: 1. it was preventing garbage-collection 2. when a user created a new dataset with the same name, cached LzParsedPaths were still pointing to the old dataset, which gave some strange errors i.e. when a user used xpath:"ds:/foo/text()" (cached) this gave the old results, but xpath:"ds:/foo" (non-cached) and then a LzDatapointer#getNodeText() gave new results. For better understanding of this issue, please see the attached testcase at Release Notes: Details: The marked memory leaks in the testcase are covered by LPP-4688 Tests: Testcase is attached at |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||