nt.def
author Jan Vrany <jan.vrany@labware.com>
Thu, 25 Mar 2021 20:30:03 +0000
branchjv
changeset 25411 248600ba8fd9
parent 5925 a6914726ffcd
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.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4044
69646f4c0c4d added description & version id
Claus Gittinger <cg@exept.de>
parents: 3811
diff changeset
     1
LIBRARY libbasic
69646f4c0c4d added description & version id
Claus Gittinger <cg@exept.de>
parents: 3811
diff changeset
     2
DESCRIPTION     'Smalltalk/X Basic classes'
69646f4c0c4d added description & version id
Claus Gittinger <cg@exept.de>
parents: 3811
diff changeset
     3
VERSION         3.5
5925
a6914726ffcd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5923
diff changeset
     4
CODE            EXECUTE READ 
4044
69646f4c0c4d added description & version id
Claus Gittinger <cg@exept.de>
parents: 3811
diff changeset
     5
DATA            READ WRITE
69646f4c0c4d added description & version id
Claus Gittinger <cg@exept.de>
parents: 3811
diff changeset
     6
SECTIONS
5925
a6914726ffcd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5923
diff changeset
     7
    INITCODE    READ EXECUTE 
5923
17d0bd92ede7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4044
diff changeset
     8
    INITDATA    READ WRITE 
4044
69646f4c0c4d added description & version id
Claus Gittinger <cg@exept.de>
parents: 3811
diff changeset
     9
EXPORTS 
69646f4c0c4d added description & version id
Claus Gittinger <cg@exept.de>
parents: 3811
diff changeset
    10
    _libbasic_Init