Skip to content

Commit a9102cc

Browse files
committed
Remove rb_gc_worker_thread_(un)set_vm_context
These functions are no longer used.
1 parent a41ae11 commit a9102cc

2 files changed

Lines changed: 0 additions & 32 deletions

File tree

gc.c

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff 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-
231201
bool
232202
rb_gc_event_hook_required_p(rb_event_flag_t event)
233203
{

gc/gc.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@ MODULAR_GC_FN bool rb_gc_obj_needs_cleanup_p(VALUE obj);
101101
MODULAR_GC_FN bool rb_gc_event_hook_required_p(rb_event_flag_t event);
102102
MODULAR_GC_FN void *rb_gc_get_ractor_newobj_cache(void);
103103
MODULAR_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);
106104
MODULAR_GC_FN void rb_gc_move_obj_during_marking(VALUE from, VALUE to);
107105
MODULAR_GC_FN void rb_gc_print_backtrace();
108106
#endif

0 commit comments

Comments
 (0)