Hi On 30 January 2011 15:49, .Bill Smith <william.m.sm...@gmail.com> wrote: > Am I correct in assuming that if those allocations had been smaller (i.e. if > the JVM had not run out of memory), the GC would have eventually detected > the dead references and freed them once the locals went out of scope?
Yes, once they are out of scope they are eligible for garbage collection. The "locals clearing" is just an optimisation to allow the GC before they are out of scope, but after they are no longer needed. > On Sunday, January 30, 2011 7:41:44 AM UTC-6, Rich Hickey wrote: >> >> (Note: I still think the JVM >> GC should be able to figure out that those locals are dead references. -- Michael Wood <esiot...@gmail.com> -- 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