Generator sometimes hangs up
----------------------------

                 Key: JRUBY-1553
                 URL: http://jira.codehaus.org/browse/JRUBY-1553
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.1b1
         Environment: Mac OS X 10.4, MacBook, Core Duo, 2GB RAM
            Reporter: Kornelius Kalnbach


The Generator seems to have problems with big enumerations:

$ time jruby -rgenerator -e 'gen = Generator.new((0..100000)); gen.next while 
gen.next?'
real    0m5.699s
$ time jruby -rgenerator -e 'gen = Generator.new((0..100000)); gen.next while 
gen.next?'
^C
real    3m9.880s

It seems the bigger the number is, the more often jruby hangs up (process goes 
to sleep.)

This also affects the bm_loop_generator benchmark from Ruby 1.9.

Since the problem doesn't arise always, I can't think of a test case yet.

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