summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2025-01-17 22:48:10 +0900
committerNobuyoshi Nakada <[email protected]>2025-01-17 22:48:10 +0900
commitf7059af50a31a4d27a04ace0beadb60616f3f971 (patch)
treed1d238d9d58133eeb2daec577b233b18709700dc /vm.c
parentcc7fafb459725565e448b7d1f1bc9ae88679602e (diff)
Use no-inline version `rb_current_ec` on Arm64
The TLS across .so issue seems related to Arm64, but not Darwin.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12593
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index db168e62c0..cff159a663 100644
--- a/vm.c
+++ b/vm.c
@@ -571,7 +571,7 @@ rb_current_ec_set(rb_execution_context_t *ec)
}
-#ifdef __APPLE__
+#if defined(__arm64__) || defined(__aarch64__)
rb_execution_context_t *
rb_current_ec(void)
{