When a ruby object is wrapped to a java interface on the fly a new class is created for every instance but that class is never released ---------------------------------------------------------------------------------------------------------------------------------------
Key: JRUBY-4857 URL: http://jira.codehaus.org/browse/JRUBY-4857 Project: JRuby Issue Type: Bug Components: Java Integration Affects Versions: JRuby 1.5.1, JRuby 1.5 Reporter: Brian Olsen When I don't use include but simply pass a ruby object to some java method that requires an interface argument that ruby object gets wrapped with a class that is created on the fly. The problem is that each new instance gets its own class and these classes don't get garbage collected so over time the PermGen runs out of memory. I have created a gist with a small tests that illustrates the problem: http://gist.github.com/430032 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email