On Monday, January 25, 2016 at 9:26:17 AM UTC-6, Alex Miller wrote:
>
> When you disable locals clearing, you will start holding the head of 
> (potentially large) locals everywhere. This is the reason that locals are 
> aggressively called in the first place. This is a typical consequence of 
> disabling locals clearing and the reason why they are cleared by default.
>

Got it, thanks.  Makes sense.  So I was just lucky that I didn't experience 
a problem with 1.6.0--maybe because of  the lack of optimizations that were 
introduced in 1.7.0.  Thanks Alex, Ghadi.
 

> This is a good example of a typical head holding issue:
>
> http://stackoverflow.com/questions/15994316/clojure-head-retention
>

I know about head holding in general, and initially spent some time making 
sure I wasn't inadvertently doing that.  The linked example and 
explanations look especially interesting, though--thanks.
 

>
>
> On Monday, January 25, 2016 at 12:49:03 AM UTC-6, Mars0i wrote:
>>
>> In my  application, I seem to get a memory leak when I use 
>> -Dclojure.compiler.disable-locals-clearing=true in Clojure 1.7.0 and 1.8.0, 
>> but not in 1.6.0.  (i.e. I get "java.lang.OutOfMemoryError: GC overhead 
>> limit exceeded" with the more recent versions).
>>
>> Any guesses about why this might happen?  Just curious.  
>>
>> (I think I can live without disabling locals-clearing.  I don't fully 
>> understand it.  Not sure why I started using it.  I don't use a debugger.)
>>
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to