Assuming that the method does not borrow that HashMap from an object pool but creates a new instance, at the end of the method, does it help the Garbage Collector if the method cleared up that map before returning?
Since the JVM does not do reference counting anymore, but relies on GC roots, is there any point in iterating through such transient maps or collections to nullify references? Would it be much simpler and such as fast if the method just returned without doing anything more? Or by clearing out such data structures, would I be helping the collector which it would've done otherwise in a minor GC by traversing through such reference graphs?
Thanks.
--
You received this message because you are subscribed to the Google Groups "mechanical-sympathy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mechanical-symp...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Some depth on this: .NET specific but hotspot same way: http://blogs.msdn.com/b/oldnewthing/archive/2010/08/10/10048149.aspx
sent from my phone
To unsubscribe from this group and stop receiving emails from it, send an email to mechanical-symp...@googlegroups.com.
> send an email to mechanical-sympathy+unsub...@googlegroups.com
> <mailto:mechanical-sympathy+unsub...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "mechanical-sympathy" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to mechanical-sympathy+unsub...@googlegroups.com
> <mailto:mechanical-sympathy+unsub...@googlegroups.com>.
Interesting. To me this sounds like some bug/anomaly in how the interpreter oopmap is built - anyone care to try this on java 8? :)
sent from my phone
To unsubscribe from this group and stop receiving emails from it, send an email to mechanical-symp...@googlegroups.com.