Implement Kernel::fork (for experimental purposes only)
-------------------------------------------------------

                 Key: JRUBY-1845
                 URL: http://jira.codehaus.org/browse/JRUBY-1845
             Project: JRuby
          Issue Type: Bug
            Reporter: Charles Oliver Nutter
            Assignee: Charles Oliver Nutter
             Fix For: JRuby 1.1b2


fork is unlikely to ever be safe considering we'd be forking an entire JVM. But 
implement it anyway, disabled by default, for experimentation purposes.

I have this done. Here's sample output from a session using fork:

{noformat}
~/NetBeansProjects/jruby $ jruby -J-Djruby.fork.enabled=true -e "p fork"
2140
0
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc:  SuppressErrorAt=/os_macosx.cpp:1806]
#
# An unexpected Java error has been detected by HotSpot Virtual Machine.
#
# If this error is reproducible, please report it with the following 
information: 
#   1. Provide the steps to reproduce, a test case, and any relevant 
information 
#   2. The corresponding JavaNativeCrash_pid<num>.crash.log (Java state) 
#   3. The corresponding <name>.crash.log (native state; generated by 
CrashReporter) 
#   4. This data: 
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0-b88-17-release mixed mode, sharing)
# An unexpected error has been detected by Java Runtime Environment:
#
#  Internal Error 
(/SourceCache/HotSpot16/HotSpot16-17/src/os/macosx/vm/os_macosx.cpp, line 
1806), pid=2140, tid=25184768
#
# Error: mach_port_destroy failed: 0xf
# An error report file with more information is saved as 
/Users/headius/Library/Logs/Java/JavaNativeCrash_pid2140.crash.log
#   
#
# File report at: http://bugreport.apple.com/
#
~/NetBeansProjects/jruby $ jruby -J-Djruby.fork.enabled=true 
-J-XX:SuppressErrorAt=/os_macosx.cpp:1806 -e "p fork"
2144
0
{noformat}

-- 
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

Reply via email to