Wayne Meissner created JRUBY-6439:
-------------------------------------
Summary: cext: Memory leak in String and Array handling
Key: JRUBY-6439
URL: https://jira.codehaus.org/browse/JRUBY-6439
Project: JRuby
Issue Type: Bug
Components: C Extensions
Affects Versions: JRuby 1.6
Reporter: Wayne Meissner
Assignee: Thomas E Enebo
Fix For: JRuby 1.7
When a cext call returns, and it is the last level of invocation (e.g. in a
ruby -> cext -> ruby -> cext sequence), then the RString and RArray pointers
are reset (set to NULL), but the memory allocated for these values is not
freed. Also, since these values are nulled out, when the RubyString or
RubyArray object is collected, the memory won't be freed then, either.
This used to be done by a finalizer on an associated RString or RArray java
proxy, but it looks like those classes aren't used anymore.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.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