mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Enable redefinition check for rbinc methods
This commit is contained in:
parent
1395838e18
commit
84d8dbe7a5
3 changed files with 78 additions and 7 deletions
5
ruby.c
5
ruby.c
|
@ -1787,7 +1787,12 @@ ruby_opt_init(ruby_cmdline_options_t *opt)
|
|||
|
||||
Init_ext(); /* load statically linked extensions before rubygems */
|
||||
Init_extra_exts();
|
||||
|
||||
GET_VM()->running = 0;
|
||||
rb_call_builtin_inits();
|
||||
GET_VM()->running = 1;
|
||||
memset(ruby_vm_redefined_flag, 0, sizeof(ruby_vm_redefined_flag));
|
||||
|
||||
ruby_init_prelude();
|
||||
|
||||
// Initialize JITs after prelude because JITing prelude is typically not optimal.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue