Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
armanbilge committed Jan 19, 2024
1 parent b32e1e2 commit 7c84098
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ private object WeakList {

if (get() == null) {
// We own the pack lock, so it is safe to write `next`. It will be published to subsequent packs via the lock.
// Concurrent readers ie `CallbackStack#apply` may read a stale value for `next` still pointing to this node.
// Concurrent readers ie `WeakList#foreach` may read a stale value for `next` still pointing to this node.
// This is okay b/c the new `next` (this node's tail) is still reachable via the old `next` (this node).
prev.setNext(next)
if (next == null) {
Expand Down

0 comments on commit 7c84098

Please sign in to comment.