diff --git a/gc.c b/gc.c index b83a91e54e6727..73a640f7fa6df0 100644 --- a/gc.c +++ b/gc.c @@ -201,11 +201,7 @@ rb_gc_worker_thread_set_vm_context(struct rb_gc_vm_context *context) GC_ASSERT(rb_current_execution_context(false) == NULL); #ifdef RB_THREAD_LOCAL_SPECIFIER -# ifdef __APPLE__ rb_current_ec_set(context->ec); -# else - ruby_current_ec = context->ec; -# endif #else native_tls_set(ruby_current_ec_key, context->ec); #endif @@ -219,11 +215,7 @@ rb_gc_worker_thread_unset_vm_context(struct rb_gc_vm_context *context) GC_ASSERT(rb_current_execution_context(true) == context->ec); #ifdef RB_THREAD_LOCAL_SPECIFIER -# ifdef __APPLE__ rb_current_ec_set(NULL); -# else - ruby_current_ec = NULL; -# endif #else native_tls_set(ruby_current_ec_key, NULL); #endif diff --git a/ractor_core.h b/ractor_core.h index c5ca883d3151ca..7327e714f8e7f2 100644 --- a/ractor_core.h +++ b/ractor_core.h @@ -311,13 +311,7 @@ static inline void rb_ractor_set_current_ec_(rb_ractor_t *cr, rb_execution_context_t *ec, const char *file, int line) { #ifdef RB_THREAD_LOCAL_SPECIFIER - -# ifdef __APPLE__ rb_current_ec_set(ec); -# else - ruby_current_ec = ec; -# endif - #else native_tls_set(ruby_current_ec_key, ec); #endif