DateConversionError.st
author Jan Vrany <jan.vrany@labware.com>
Thu, 25 Mar 2021 20:30:03 +0000
branchjv
changeset 25411 248600ba8fd9
parent 17911 a99f15c5efa5
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:
11110
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
 COPYRIGHT (c) 2008 by eXept Software AG
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
              All Rights Reserved
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
 This software is furnished under a license and may be used
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
 hereby transferred.
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
"
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
"{ Package: 'stx:libbasic' }"
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
ConversionError subclass:#DateConversionError
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
	instanceVariableNames:''
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
	classVariableNames:''
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	poolDictionaries:''
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	category:'Magnitude-Time'
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
!
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!DateConversionError class methodsFor:'documentation'!
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
copyright
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
"
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
 COPYRIGHT (c) 2008 by eXept Software AG
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
              All Rights Reserved
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
 This software is furnished under a license and may be used
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
 only in accordance with the terms of that license and with the
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
 inclusion of the above copyright notice.   This software may not
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
 be provided or otherwise made available to, or used by, any
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
 other person.  No title to or ownership of the software is
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
 hereby transferred.
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
"
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
! !
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
!DateConversionError class methodsFor:'initialization'!
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
initialize
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
    NotifierString := 'date conversion error'.
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
! !
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
!DateConversionError class methodsFor:'documentation'!
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
version
17892
d86c8bd5ece3 Merged with CVS
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17869
diff changeset
    46
    ^ '$Header: /cvs/stx/stx/libbasic/DateConversionError.st,v 1.1 2008/08/06 09:23:17 cg Exp $'
17761
b0e5971141bc Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
    47
!
b0e5971141bc Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
    48
b0e5971141bc Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17711
diff changeset
    49
version_SVN
17911
a99f15c5efa5 Updated with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17910
diff changeset
    50
    ^ '$Id: DateConversionError.st 10761 2012-01-19 11:46:00Z vranyj1 $'
11110
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
! !
c37e01a01377 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
17846
24edc476ac18 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17845
diff changeset
    53
DateConversionError initialize!
17892
d86c8bd5ece3 Merged with CVS
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17869
diff changeset
    54
17910
8d796ca8bd1d Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17892
diff changeset
    55
17911
a99f15c5efa5 Updated with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17910
diff changeset
    56