ClassBuildWarning.st
author Jan Vrany <jan.vrany@labware.com>
Thu, 25 Mar 2021 20:30:03 +0000
branchjv
changeset 25411 248600ba8fd9
parent 16426 f8a36e7fd6b1
permissions -rw-r--r--
Fix unlikely but possible race in `WeakValueDictionary` It may happen that value in `valueArray` could have been already collected by the GC but #clearDeadSlots have not yet been called. When this happened, `#at:ifAbsentPut:` returned tombstone rather than updating the dictionary with value from block. This commit fixes this by checking whether `valueArray` contain the tombstone and if so, clearing up the dead slots and restarting the operation. HTH.

"{ Package: 'stx:libbasic' }"

Warning subclass:#ClassBuildWarning
	instanceVariableNames:'className'
	classVariableNames:''
	poolDictionaries:''
	category:'Kernel-Support'
!


!ClassBuildWarning methodsFor:'accessing'!

className:aSymbol
    className := aSymbol.
! !

!ClassBuildWarning class methodsFor:'documentation'!

version
    ^ '$Header: /cvs/stx/stx/libbasic/ClassBuildWarning.st,v 1.1 2014-05-13 22:11:40 cg Exp $'
!

version_CVS
    ^ '$Header: /cvs/stx/stx/libbasic/ClassBuildWarning.st,v 1.1 2014-05-13 22:11:40 cg Exp $'
! !