Memory enhancements as described in GROOVY-6171
Merge branch 'GROOVY-6171-memory-enhancements' of https://github.com/aeisenberg/groovy-core into aeisenberg-GROOVY-6171-memory-enhancements