[CLJ-1250] Reducer (and folder) instances hold onto the head of seqs Created: 03/Sep/13 Updated: 28/Sep/13
|Affects Version/s:||Release 1.5|
To reproduce the problem, compare:
(If reducers are faster than seqs, increase the range.)
The sequence can't be garbage collected because the reducer can't be garbage collected because the first local is never cleared.
See https://groups.google.com/d/msg/clojure-dev/t6NhGnYNH1A/2lXghJS5HywJ for more details.
A proposed solution is to clear "this" before tail calls.
|Comment by Gary Fredericks [ 03/Sep/13 8:53 AM ]|
Fixed indentation in description.