[ruby-cvs:54671] ko1:r47523 (trunk): * include/ruby/ruby.h: freeze nil/true/false.

ko1 at ruby-lang.org ko1 at ruby-lang.org
Thu Sep 11 14:37:34 JST 2014


ko1	2014-09-11 14:37:32 +0900 (Thu, 11 Sep 2014)

  New Revision: 47523

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

  Log:
    * include/ruby/ruby.h: freeze nil/true/false.
    * gc.c (should_be_finalizable): check frozen after checkin FL_ABLE.
    * object.c (rb_obj_taint): check
      OBJ_TAINTABLE(obj).
    * object.c (rb_obj_freeze): remove immediate_frozen_tbl
       because all of immediate values are frozen. YAY!
    * object.c (rb_obj_frozen_p): ditto.
    * test/ruby/test_eval.rb: skip instance_variable_set for
      frozen objects.
    * test/ruby/test_weakmap.rb: check ArgumentError instead of
      RuntimeError.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
    trunk/include/ruby/ruby.h
    trunk/object.c
    trunk/test/ruby/test_eval.rb
    trunk/test/ruby/test_weakmap.rb


More information about the ruby-cvs mailing list