groovy/groovy-core — pull request #407 by candrews (2014-05-04 22:53:17+00:00)
Title: Change ClassInfo.modifiedExpandos from being a HashSet (strong references) to a ManagedLinkedList (weak references)

There doesn't seem to be any reason to hold strong references in ClassInfo.modifiedExpandos and that causes a leak, so change to use weak references.

See http://groovy.329449.n5.nabble.com/Memory-leak-in-ClassInfo-when-using-MetaClasses-tp5719218.html