Skip to content

Commit

Permalink
runtime: fix alive reference analysis of atomic reference counting
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Dec 9, 2024
1 parent f8245e0 commit 3dba7b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/runtime/rc.jule
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ unsafe fn _RCDrop(mut p: _RCPtr): bool {
unsafe fn _RCDropAtomic(mut p: _RCPtr): bool {
// The atomicAdd function returns new data of pointer.
// So if new data equals to zero, means references zeroed.
ret atomicAdd[_RCType](*p, -RCDelta, _RCMo) > RCDelta
ret atomicAdd[_RCType](*p, -RCDelta, _RCMo) >= RCDelta
}

// Deallocates reference counting data allocation.
Expand Down

0 comments on commit 3dba7b2

Please sign in to comment.