summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-10 02:11:37 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-10 02:11:37 +0000
commit16095eb187c49a6462a0c7d8a698e1800a49d402 (patch)
tree1b561199627d681e0a970fd2b1b6c8ed2404c756 /vm.c
parentdcad4bda588c999d396dc3405bb1bfd241ae5c8b (diff)
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
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/vm.c b/vm.c
index a43f3d6..0ade176 100644
--- a/vm.c
+++ b/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;