Skip to content

Commit

Permalink
YJIT: other_cb is None in tests
Browse files Browse the repository at this point in the history
Since the other cb is in CodegenGlobals, and we want Rust tests to be
self-contained.
  • Loading branch information
XrXr committed Feb 2, 2023
1 parent 81b7f86 commit a690db3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions yjit/src/asm/mod.rs
Expand Up @@ -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;
Expand Down

0 comments on commit a690db3

Please sign in to comment.