Skip to content

Commit 6fdcd08

Browse files
committed
ZJIT: Fix land race
1 parent ceed406 commit 6fdcd08

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

zjit/src/hir.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12323,14 +12323,15 @@ mod opt_tests {
1232312323
PatchPoint MethodRedefined(Object@0x1000, zero@0x1008, cme:0x1010)
1232412324
PatchPoint NoSingletonClass(Object@0x1000)
1232512325
v22:HeapObject[class_exact*:Object@VALUE(0x1000)] = GuardType v6, HeapObject[class_exact*:Object@VALUE(0x1000)]
12326-
v23:BasicObject = SendWithoutBlockDirect v22, :zero (0x1038)
12326+
IncrCounter inline_iseq_optimized_send_count
12327+
v30:StaticSymbol[:b] = Const Value(VALUE(0x1038))
1232712328
PatchPoint SingleRactorMode
1232812329
PatchPoint MethodRedefined(Object@0x1000, one@0x1040, cme:0x1048)
1232912330
PatchPoint NoSingletonClass(Object@0x1000)
1233012331
v27:HeapObject[class_exact*:Object@VALUE(0x1000)] = GuardType v6, HeapObject[class_exact*:Object@VALUE(0x1000)]
12331-
v28:BasicObject = SendWithoutBlockDirect v27, :one (0x1038), v23
12332+
IncrCounter inline_iseq_optimized_send_count
1233212333
CheckInterrupts
12333-
Return v28
12334+
Return v30
1233412335
");
1233512336
}
1233612337

@@ -12408,9 +12409,9 @@ mod opt_tests {
1240812409
v12:Fixnum[100] = Const Value(100)
1240912410
PatchPoint MethodRedefined(Class@0x1010, identity@0x1018, cme:0x1020)
1241012411
PatchPoint NoSingletonClass(Class@0x1010)
12411-
v25:BasicObject = SendWithoutBlockDirect v22, :identity (0x1048), v12
12412+
IncrCounter inline_iseq_optimized_send_count
1241212413
CheckInterrupts
12413-
Return v25
12414+
Return v12
1241412415
");
1241512416
}
1241612417

0 commit comments

Comments
 (0)