aboutsummaryrefslogtreecommitdiffstats
path: root/yjit/src/options.rs
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-10-25 09:07:10 -0700
committerGitHub <noreply@github.com>2022-10-25 09:07:10 -0700
commitb7644a231100b1e1b70af528f9629d2e39572087 (patch)
treeeab3b5c4cd93e286b8d6014f3249dafc02bd842d /yjit/src/options.rs
parent1d2d25dcadda0764f303183ac091d0c87b432566 (diff)
downloadruby-b7644a231100b1e1b70af528f9629d2e39572087.tar.gz
YJIT: GC and recompile all code pages (#6406)
when it fails to allocate a new page. Co-authored-by: Alan Wu <alansi.xingwu@shopify.com>
Diffstat (limited to 'yjit/src/options.rs')
-rw-r--r--yjit/src/options.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/yjit/src/options.rs b/yjit/src/options.rs
index 303ae4980f..a0cdbbc566 100644
--- a/yjit/src/options.rs
+++ b/yjit/src/options.rs
@@ -91,7 +91,7 @@ macro_rules! get_option_ref {
// Unsafe is ok here because options are initialized
// once before any Ruby code executes
($option_name:ident) => {
- unsafe { &(OPTIONS.$option_name) }
+ unsafe { &($crate::options::OPTIONS.$option_name) }
};
}
pub(crate) use get_option_ref;