Github user jwagenleitner commented on a diff in the pull request: https://github.com/apache/groovy/pull/219#discussion_r61764022 --- Diff: src/main/org/codehaus/groovy/util/ManagedReference.java --- @@ -46,7 +46,6 @@ public final T get() { public final void clear() { ref.clear(); - manager.removeStallEntries(); --- End diff -- `ClassInfo#finalizeReference` calls `setStrongMetaClass(null)` which in turn calls `replaceWeakMetaClassRef(null)` which calls `weakRef#clear` which is on ManagedReference. This causes a recursive call back into the queue can can lead to stackoverflow if there are lots of ClassInfo ManagedReferences in the Reference Queue. A related PR that attempts to prevent this reentrant processing is PR #298.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---