File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -562,7 +562,8 @@ bool RB_TYPE_P(VALUE value, int type);
562
562
#ifdef __GNUC__
563
563
#define RB_GC_GUARD (v ) \
564
564
(*__extension__ ({ \
565
- volatile VALUE *rb_gc_guarded_ptr = rb_tr_gc_guard(&v); \
565
+ polyglot_invoke(RUBY_CEXT, "rb_tr_gc_guard", v); \
566
+ volatile VALUE *rb_gc_guarded_ptr = &v; \
566
567
rb_gc_guarded_ptr; \
567
568
}))
568
569
#elif defined _MSC_VER
Original file line number Diff line number Diff line change @@ -52,13 +52,6 @@ extern void* (*rb_tr_unwrap)(VALUE obj);
52
52
extern VALUE (* rb_tr_wrap )(void * obj );
53
53
extern VALUE (* rb_tr_longwrap )(long obj );
54
54
55
- // Needed for GC guarding
56
-
57
- ALWAYS_INLINE (static VALUE * rb_tr_gc_guard (VALUE * ptr ));
58
- static inline VALUE * rb_tr_gc_guard (VALUE * ptr ) {
59
- polyglot_invoke (RUBY_CEXT , "rb_tr_gc_guard" , * ptr );
60
- return ptr ;
61
- }
62
55
63
56
#define RB_NIL_P (value ) ((int)polyglot_as_boolean(polyglot_invoke(rb_tr_cext, "RB_NIL_P", value)))
64
57
You can’t perform that action at this time.
0 commit comments