From a690db390d68995311a77a5011298d81dca15233 Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Wed, 1 Feb 2023 17:21:11 -0500 Subject: [PATCH] YJIT: other_cb is None in tests Since the other cb is in CodegenGlobals, and we want Rust tests to be self-contained. --- yjit/src/asm/mod.rs | 1 + 1 file changed, 1 insertion(+) 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;