InlineCachingCallSite references RubyObjects which are no longer reachable
--------------------------------------------------------------------------
Key: JRUBY-2716
URL: http://jira.codehaus.org/browse/JRUBY-2716
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.1.2
Environment: Mac OS X 10.5.3; J2SE 5.0
Reporter: Micah Alles
Attachments: test_ostruct_caching_callsite_mem_leak.rb
In some cases references to RubyObjects which are no longer reachable are not
collected due to a reference to a {{cachedMethod}} in an InlineCachingCallSite.
The cause of the leak was observed by inspecting a memory snapshot of the jruby
process which was taken after pausing execution before the assertion in the
included unit test with a call to {{sleep}}.
Specifically in the included unit test the OpenStruct#thing method looks to be
the one which for which the cachedMethod is created which retains a reference
to the OpenStruct and, therefore, its contents as well.
The included unit test fails on trunk (r7037) and the 1.1.2 branch.
--
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