mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
vm.c: hide singleton class of frozen-core
* vm.c (Init_VM): hide also the singleton class of frozen-core, not only frozen-core itself. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
dcad4bda58
commit
16095eb187
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Oct 10 11:11:33 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* vm.c (Init_VM): hide also the singleton class of frozen-core, not
|
||||
only frozen-core itself.
|
||||
|
||||
Thu Oct 10 06:02:08 2013 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* test/ruby/test_rand.rb: fix r43224. local variable `e' is
|
||||
|
|
3
vm.c
3
vm.c
|
@ -2285,6 +2285,9 @@ Init_VM(void)
|
|||
rb_define_method_id(klass, idProc, rb_block_proc, 0);
|
||||
rb_define_method_id(klass, idLambda, rb_block_lambda, 0);
|
||||
rb_obj_freeze(fcore);
|
||||
RBASIC_CLEAR_CLASS(klass);
|
||||
RCLASS_SET_SUPER(klass, 0);
|
||||
rb_obj_freeze(klass);
|
||||
rb_gc_register_mark_object(fcore);
|
||||
rb_mRubyVMFrozenCore = fcore;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue