[ruby-cvs:60401] nobu:r53243 (trunk): gc.c: do not expose internal singleton class

nobu at ruby-lang.org nobu at ruby-lang.org
Tue Dec 22 22:15:59 JST 2015


nobu	2015-12-22 22:15:58 +0900 (Tue, 22 Dec 2015)

  New Revision: 53243

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

  Log:
    gc.c: do not expose internal singleton class
    
    * gc.c (internal_object_p): should not expose singleton classes
      without a metaclass.  based on patches by ko1 and shugo.
      [Bug #11740]
    * class.c (rb_singleton_class_object_p): added.

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


More information about the ruby-cvs mailing list