Skip to content

Commit c8f7129

Browse files
committed
fix: missing acquire fence
1 parent 2b0e313 commit c8f7129

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main/java/com/ishland/flowsched/scheduler/Cancellable.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public boolean cancel() {
3737
// Set it to cancelled if we can; if we failed, it can only be complete() or another cancel()
3838
boolean tryCancel = handle == VH_CANCEL.compareAndExchangeRelease(this, handle, CANCELLED);
3939
if (tryCancel) {
40+
VarHandle.acquireFence();
4041
handle.run();
4142
}
4243
return tryCancel;

0 commit comments

Comments
 (0)