There was an error while loading. Please reload this page.
1 parent 114ea05 commit ec2a74fCopy full SHA for ec2a74f
1 file changed
zjit/src/payload.rs
@@ -37,6 +37,9 @@ impl IseqPayload {
37
}
38
39
40
+ /// Profile counts are used for compilation policy.
41
+ /// When we deoptimize a method that can be recompiled, we need to update the count.
42
+ /// Otherwise, we will generate the same code that was just deoptimized.
43
pub fn reset_profiles_remaining(&mut self, insn_idx: YarvInsnIdx) {
44
let num_profiles = get_option!(num_profiles);
45
self.profile.entry_mut(insn_idx).set_profiles_remaining(num_profiles);
0 commit comments