mirror of
https://github.com/ruby/ruby.git
synced 2025-09-17 09:33:59 +02:00
Revert "Filling cache values on cvar write"
This reverts commit08de37f9fa
. This reverts commite8ae922b62
.
This commit is contained in:
parent
08de37f9fa
commit
07f055bb13
15 changed files with 26 additions and 275 deletions
6
class.c
6
class.c
|
@ -27,7 +27,6 @@
|
|||
#include <ctype.h>
|
||||
|
||||
#include "constant.h"
|
||||
#include "debug_counter.h"
|
||||
#include "id_table.h"
|
||||
#include "internal.h"
|
||||
#include "internal/class.h"
|
||||
|
@ -44,8 +43,6 @@
|
|||
#define METACLASS_OF(k) RBASIC(k)->klass
|
||||
#define SET_METACLASS_OF(k, cls) RBASIC_SET_CLASS(k, cls)
|
||||
|
||||
RUBY_EXTERN rb_serial_t ruby_vm_global_cvar_state;
|
||||
|
||||
void
|
||||
rb_class_subclass_add(VALUE super, VALUE klass)
|
||||
{
|
||||
|
@ -960,7 +957,6 @@ rb_include_class_new(VALUE module, VALUE super)
|
|||
RCLASS_CONST_TBL(module) = rb_id_table_create(0);
|
||||
}
|
||||
RCLASS_IV_TBL(klass) = RCLASS_IV_TBL(module);
|
||||
RCLASS_CVC_TBL(klass) = RCLASS_CVC_TBL(module);
|
||||
RCLASS_CONST_TBL(klass) = RCLASS_CONST_TBL(module);
|
||||
|
||||
RCLASS_SET_SUPER(klass, super);
|
||||
|
@ -1089,8 +1085,6 @@ do_include_modules_at(const VALUE klass, VALUE c, VALUE module, int search_super
|
|||
VALUE super_class = RCLASS_SUPER(c);
|
||||
|
||||
// invalidate inline method cache
|
||||
RB_DEBUG_COUNTER_INC(cvar_include_invalidate);
|
||||
ruby_vm_global_cvar_state++;
|
||||
tbl = RCLASS_M_TBL(module);
|
||||
if (tbl && rb_id_table_size(tbl)) {
|
||||
if (search_super) { // include
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue