Instances of Ruby VM do not get GC'ed sometimes
-----------------------------------------------
Key: JRUBY-4165
URL: http://jira.codehaus.org/browse/JRUBY-4165
Project: JRuby
Issue Type: Bug
Components: Miscellaneous
Affects Versions: JRuby 1.4.0RC2, JRuby 1.4.0RC1, JRuby 1.3.1, JRuby 1.3
Environment: All
Reporter: Micah Martin
When working with MVM, sometimes a Ruby instance will NOT get GC'ed. There is
a reference chain that keeps the Ruby instance tied to the living so the GC
will not collect it.
[11:44am] micahmartin: headius: More info on the Ruby instance that won't get
GC'ed.... The accused InterfaceImpl is being references by
JavaSupport.javaClassCache from a different Ruby instance. How could the
IntefaceImpl be cached by the wrong VM instance?
[11:44am] headius: micahmartin: ah-ha...that is interesting...are you passing
those objects across VMs?
[11:45am] micahmartin: hmm... quite possibly
[11:45am] headius: here's one of those quirky issues with passing objects
across instances
[11:49am] micahmartin: headius: Would the world crumble if I cleared the
javaClassCache?
[11:49am] headius: no
[11:49am] headius: no crumbling
[11:49am] headius: it's just to avoid regenerating a class for the same
ruby+interfaces combo
[11:50am] headius: but if you're ditching that instance anyway, no big deal
[11:50am] headius: micahmartin: we should start tracking this in a bug too
[11:50am] micahmartin: I'll try that.
[11:50am] micahmartin: I'll add a ticket.
--
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