File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -198,36 +198,6 @@ rb_gc_initialize_vm_context(struct rb_gc_vm_context *context)
198198 context -> ec = GET_EC ();
199199}
200200
201- #if USE_MODULAR_GC
202- void
203- rb_gc_worker_thread_set_vm_context (struct rb_gc_vm_context * context )
204- {
205- rb_native_mutex_lock (& context -> lock );
206-
207- GC_ASSERT (rb_current_execution_context (false) == NULL );
208-
209- #ifdef RB_THREAD_LOCAL_SPECIFIER
210- rb_current_ec_set (context -> ec );
211- #else
212- native_tls_set (ruby_current_ec_key , context -> ec );
213- #endif
214- }
215-
216- void
217- rb_gc_worker_thread_unset_vm_context (struct rb_gc_vm_context * context )
218- {
219- rb_native_mutex_unlock (& context -> lock );
220-
221- GC_ASSERT (rb_current_execution_context (true) == context -> ec );
222-
223- #ifdef RB_THREAD_LOCAL_SPECIFIER
224- rb_current_ec_set (NULL );
225- #else
226- native_tls_set (ruby_current_ec_key , NULL );
227- #endif
228- }
229- #endif
230-
231201bool
232202rb_gc_event_hook_required_p (rb_event_flag_t event )
233203{
Original file line number Diff line number Diff line change @@ -101,8 +101,6 @@ MODULAR_GC_FN bool rb_gc_obj_needs_cleanup_p(VALUE obj);
101101MODULAR_GC_FN bool rb_gc_event_hook_required_p (rb_event_flag_t event );
102102MODULAR_GC_FN void * rb_gc_get_ractor_newobj_cache (void );
103103MODULAR_GC_FN void rb_gc_initialize_vm_context (struct rb_gc_vm_context * context );
104- MODULAR_GC_FN void rb_gc_worker_thread_set_vm_context (struct rb_gc_vm_context * context );
105- MODULAR_GC_FN void rb_gc_worker_thread_unset_vm_context (struct rb_gc_vm_context * context );
106104MODULAR_GC_FN void rb_gc_move_obj_during_marking (VALUE from , VALUE to );
107105MODULAR_GC_FN void rb_gc_print_backtrace ();
108106#endif
You can’t perform that action at this time.
0 commit comments