IRBConsole doesn't fully exit the VM when its window is closed
--------------------------------------------------------------
Key: JRUBY-1809
URL: http://jira.codehaus.org/browse/JRUBY-1809
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.x
Environment: Latest JRuby 1.1b1 from trunk
Reporter: Vladimir Sizikov
Attachments: irbconsole-doesnt-exit.patch
Start IRBConsole either via
java -cp jruby-complete.jar org.jruby.demo.IRBConsole
or via samples/jirb.jnlp
And then close the window. The VM doesn't exit. This is not a major problem
when IRBConsole is started from the command line, users can see that the VM is
not dead in invoke Control-C. But this is an important problem for WebStart
users. They will not be aware that every time they execute the jirb via
WebStart, one more Java VM instance stays alive and consumes the memory.
The proposed patch fixes the problem. (The problem was a non-daemon thread
blocking in TextAreaReadline.readLine).
The patch added a proper notification mechanism to unblock the thread and
safely exit the IRB.
--
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