diff options
author | Jeremy Evans <code@jeremyevans.net> | 2020-05-22 07:54:34 -0700 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2020-05-22 07:54:34 -0700 |
commit | 8d798e7c531c19756f38aadd03cb801a48cbd97d (patch) | |
tree | 5d25ae6d8173e217b2bef4247c5063171da4e428 /internal/class.h | |
parent | c745a60634260ba2080d35af6fdeaaae86fe5193 (diff) |
Revert "Fix origin iclass pointer for modules"
This reverts commit c745a60634260ba2080d35af6fdeaaae86fe5193.
This triggers a VM assertion. Reverting until the issue can be
debugged.
Diffstat (limited to 'internal/class.h')
-rw-r--r-- | internal/class.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/internal/class.h b/internal/class.h index 7724fe43a6..4bebb22905 100644 --- a/internal/class.h +++ b/internal/class.h @@ -95,10 +95,9 @@ typedef struct rb_classext_struct rb_classext_t; #endif #define RCLASS_INCLUDER(c) (RCLASS_EXT(c)->includer) -#define RICLASS_IS_ORIGIN FL_USER5 #define RCLASS_CLONED FL_USER6 +#define RICLASS_IS_ORIGIN FL_USER5 #define RCLASS_REFINED_BY_ANY FL_USER7 -#define RICLASS_ORIGIN_SHARED_MTBL FL_USER8 /* class.c */ void rb_class_subclass_add(VALUE super, VALUE klass); @@ -121,7 +120,6 @@ VALUE rb_singleton_class_get(VALUE obj); int rb_class_has_methods(VALUE c); void rb_undef_methods_from(VALUE klass, VALUE super); static inline void RCLASS_SET_ORIGIN(VALUE klass, VALUE origin); -static inline void RICLASS_SET_ORIGIN_SHARED_MTBL(VALUE iclass); static inline VALUE RCLASS_SUPER(VALUE klass); static inline VALUE RCLASS_SET_SUPER(VALUE klass, VALUE super); static inline void RCLASS_SET_INCLUDER(VALUE iclass, VALUE klass); @@ -139,12 +137,6 @@ RCLASS_SET_ORIGIN(VALUE klass, VALUE origin) } static inline void -RICLASS_SET_ORIGIN_SHARED_MTBL(VALUE iclass) -{ - FL_SET(iclass, RICLASS_ORIGIN_SHARED_MTBL); -} - -static inline void RCLASS_SET_INCLUDER(VALUE iclass, VALUE klass) { RB_OBJ_WRITE(iclass, &RCLASS_INCLUDER(iclass), klass); |