[ruby-cvs:60386] ko1:r53228 (trunk): * gc.c (internal_object_p): should not expose singleton classes

ko1 at ruby-lang.org ko1 at ruby-lang.org
Mon Dec 21 18:41:00 JST 2015


ko1	2015-12-21 18:40:58 +0900 (Mon, 21 Dec 2015)

  New Revision: 53228

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53228

  Log:
    * gc.c (internal_object_p): should not expose singleton classes
      without a metaclass.
      [Bug #11740]
    
    * class.c (rb_singleton_class_has_metaclass_p): added.
    
    * test/ruby/test_class.rb: add a test.

  Modified files:
    trunk/ChangeLog
    trunk/class.c
    trunk/gc.c
    trunk/test/ruby/test_class.rb


More information about the ruby-cvs mailing list