Skip to content

Commit

Permalink
fix: Fix traversal of weak references, was lossing the state of non-c…
Browse files Browse the repository at this point in the history
…ollected references
  • Loading branch information
WojciechMazur committed Mar 29, 2024
1 parent 0ab86e0 commit 61dfa12
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private[java] object WeakReferenceRegistry {
prev.nextReference = current.nextReference
enqueueCollectedReferences(head, current.nextReference, current)
}
case _ => enqueueCollectedReferences(head, current.nextReference, prev)
case _ => enqueueCollectedReferences(head, current.nextReference, current)
}
private def handleCollectedReferences(): Unit = {
// This method is designed for calls from C and therefore should not include
Expand Down

0 comments on commit 61dfa12

Please sign in to comment.