ZJIT: Temporarily revert path compression

For reasons I don't understand yet, this causes an issue when trying to
boot yjit-bench. Temporarily revert it.
This commit is contained in:
Max Bernstein 2025-05-08 08:22:44 -04:00 committed by GitHub
parent f3006c26de
commit 5e53484994
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
Notes: git 2025-05-08 12:22:56 +00:00
Merged: https://github.com/ruby/ruby/pull/13268

Merged-By: XrXr

View File

@ -752,7 +752,9 @@ impl Function {
macro_rules! find {
( $x:expr ) => {
{
self.union_find.borrow_mut().find($x)
// TODO(max): Figure out why borrow_mut().find() causes `already borrowed:
// BorrowMutError`
self.union_find.borrow().find_const($x)
}
};
}
@ -773,7 +775,7 @@ impl Function {
}
};
}
let insn_id = self.union_find.borrow_mut().find(insn_id);
let insn_id = find!(insn_id);
use Insn::*;
match &self.insns[insn_id.0] {
result@(PutSelf | Const {..} | Param {..} | GetConstantPath {..}