Integer#round can effectively hang jruby for large negative arguments in --1.9 
mode
-----------------------------------------------------------------------------------

                 Key: JRUBY-6131
                 URL: https://jira.codehaus.org/browse/JRUBY-6131
             Project: JRuby
          Issue Type: Bug
         Environment: --1.9
            Reporter: Martin Harriman
            Assignee: Thomas E Enebo


jruby --1.9 -e '42.round(-2**30)'

This will cheerfully consume a thread's worth of cpu more or less indefinitely. 
Impatient users will need kill -9 to recover.

mri 1.9.2 returns 0.0 without any difficulty.


--
This message is automatically generated by JIRA.
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