On Thu, Jan 20, 2011 at 11:57 PM, Mark Engelberg
<mark.engelb...@gmail.com> wrote:
> On Thu, Jan 20, 2011 at 6:51 AM, Andreas Liljeqvist <bon...@gmail.com> wrote:
>> I am sorry, I can't seem to reproduce the behavior at the moment :(
>> Mark, please tell me that I am not delusional...
>
> I definitely exhausted the heap running your program.  I was using
> Clojure 1.1, Java 1.6.0_21 with -server -Xmx1600M flags, running via
> Clojure Box on Windows XP.
>

"Fine grained locals clearing" was added in clojure 1.2, so it's
likely that your entire (range 1 1000000) list has to be processed
before it can be GC'ed.

max-key uses destructuring, which was one of the culprits for
unexpectedly holding onto the head of lists before locals clearing was
added.

See http://groups.google.com/group/clojure/msg/9b4e268b85c20cd6

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to