Fixed a memory leak in TALES. If an exception occurs in a repeat block, a
cycle is left behind that includes a SafeMapping, and SafeMappings are not aware of GC, therefore the cycle can't be collected. Iterator is also in the cycle, however, and it does not need a strong reference to the Context object, since the Context refers to the Iterator. So Iterators now refer to Context through a weak reference.
Showing
Please register or sign in to comment