aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
authorMatt Valentine-House <matt@eightbitraptor.com>2023-03-07 18:41:04 +0000
committerMatt Valentine-House <matt@eightbitraptor.com>2023-03-15 21:26:26 +0000
commit60b8c7d9fd2e2cb82dae7189a66335b3bec9005f (patch)
treeb582f3036e3e0f0bae68ff857b42837b5bac21a1 /thread.c
parent5791aa6263f730e3b2c8d4a4fb7a054539cf6135 (diff)
downloadruby-60b8c7d9fd2e2cb82dae7189a66335b3bec9005f.tar.gz
Rename RB_GC_SAVE_MACHINE_CONTEXT -> RB_VM_SAVE_MACHINE_CONTEXT
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/thread.c b/thread.c
index d4348e8df2..4ea9716139 100644
--- a/thread.c
+++ b/thread.c
@@ -173,7 +173,7 @@ static inline void blocking_region_end(rb_thread_t *th, struct rb_blocking_regio
#define THREAD_BLOCKING_BEGIN(th) do { \
struct rb_thread_sched * const sched = TH_SCHED(th); \
- RB_GC_SAVE_MACHINE_CONTEXT(th); \
+ RB_VM_SAVE_MACHINE_CONTEXT(th); \
thread_sched_to_waiting(sched);
#define THREAD_BLOCKING_END(th) \
@@ -1439,7 +1439,7 @@ rb_thread_schedule_limits(uint32_t limits_us)
if (th->running_time_us >= limits_us) {
RUBY_DEBUG_LOG("switch %s", "start");
- RB_GC_SAVE_MACHINE_CONTEXT(th);
+ RB_VM_SAVE_MACHINE_CONTEXT(th);
thread_sched_yield(TH_SCHED(th), th);
rb_ractor_thread_switch(th->ractor, th);
@@ -1474,7 +1474,7 @@ blocking_region_begin(rb_thread_t *th, struct rb_blocking_region_buffer *region,
RUBY_DEBUG_LOG("");
- RB_GC_SAVE_MACHINE_CONTEXT(th);
+ RB_VM_SAVE_MACHINE_CONTEXT(th);
thread_sched_to_waiting(TH_SCHED(th));
return TRUE;
}