aboutsummaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorKJ Tsanaktsidis <kj@kjtsanaktsidis.id.au>2024-01-12 17:32:16 +1100
committerKJ Tsanaktsidis <kj@kjtsanaktsidis.id.au>2024-01-12 17:58:54 +1100
commit396e94666ba1646cb0fd1459eeae3f2e7ddd2658 (patch)
tree246d743ec71c97ed9fa98e82da12135b1da354a4 /eval.c
parent6af0f442c7d16ab526c0e6859aa97ff217b73f99 (diff)
downloadruby-396e94666ba1646cb0fd1459eeae3f2e7ddd2658.tar.gz
Revert "Pass down "stack start" variables from closer to the top of the stack"
This reverts commit 4ba8f0dc993953d3ddda6328e3ef17a2fc2cbde5.
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/eval.c b/eval.c
index 6424aed1dc..aa0eae0872 100644
--- a/eval.c
+++ b/eval.c
@@ -70,7 +70,7 @@ ruby_setup(void)
if (GET_VM())
return 0;
- ruby_init_stack(&state);
+ ruby_init_stack((void *)&state);
/*
* Disable THP early before mallocs happen because we want this to
@@ -79,7 +79,7 @@ ruby_setup(void)
#if defined(__linux__) && defined(PR_SET_THP_DISABLE)
prctl(PR_SET_THP_DISABLE, 1, 0, 0, 0);
#endif
- Init_BareVM(&state);
+ Init_BareVM();
Init_heap();
rb_vm_encoded_insn_data_table_init();
Init_vm_objects();