[PATCH] RubyGC singleton methods
--------------------------------

                 Key: JRUBY-1866
                 URL: http://jira.codehaus.org/browse/JRUBY-1866
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.x
            Reporter: Dan Manges
            Priority: Minor
         Attachments: jruby-1866_rubygc_singleton_methods.diff

Looking at Ruby 1.8.6, GC.start, GC.enable, and GC.disable should be singleton 
methods on the GC module.  GC#garbage_collect should be a regular method.

    rb_mGC = rb_define_module("GC");
    rb_define_singleton_method(rb_mGC, "start", rb_gc_start, 0);
    rb_define_singleton_method(rb_mGC, "enable", rb_gc_enable, 0);
    rb_define_singleton_method(rb_mGC, "disable", rb_gc_disable, 0);
    rb_define_method(rb_mGC, "garbage_collect", rb_gc_start, 0);



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