aboutsummaryrefslogtreecommitdiffstats
path: root/yjit/src/asm
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2023-02-01 17:21:11 -0500
committerAlan Wu <XrXr@users.noreply.github.com>2023-02-02 10:05:00 -0500
commita690db390d68995311a77a5011298d81dca15233 (patch)
treeb7d565d187a0ed5862126774ff1f26e0e97d83d1 /yjit/src/asm
parent81b7f86f474ca54d93a128a5e6cec5deb20cd30b (diff)
downloadruby-a690db390d68995311a77a5011298d81dca15233.tar.gz
YJIT: other_cb is None in tests
Since the other cb is in CodegenGlobals, and we want Rust tests to be self-contained.
Diffstat (limited to 'yjit/src/asm')
-rw-r--r--yjit/src/asm/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/yjit/src/asm/mod.rs b/yjit/src/asm/mod.rs
index 509cb52035..72cc7a16a5 100644
--- a/yjit/src/asm/mod.rs
+++ b/yjit/src/asm/mod.rs
@@ -139,6 +139,7 @@ impl CodeBlock {
}
// Move the other CodeBlock to the same page if it'S on the furthest page
+ #[cfg(not(test))]
self.other_cb().unwrap().set_page(next_page_idx.unwrap(), &jmp_ptr);
return !self.dropped_bytes;