Makefile.init
author Jan Vrany <jan.vrany@labware.com>
Thu, 25 Mar 2021 20:30:03 +0000
branchjv
changeset 25411 248600ba8fd9
parent 18091 abbcac10730e
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:
15673
e71b3a79bcff added: CascadingNotification
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
#
e71b3a79bcff added: CascadingNotification
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
# DO NOT EDIT
e71b3a79bcff added: CascadingNotification
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
#
e71b3a79bcff added: CascadingNotification
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
# make uses this file (Makefile) only, if there is no
e71b3a79bcff added: CascadingNotification
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
# file named "makefile" (lower-case m) in the same directory.
e71b3a79bcff added: CascadingNotification
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
# My only task is to generate the real makefile and call make again.
e71b3a79bcff added: CascadingNotification
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
# Thereafter, I am no longer used and needed.
e71b3a79bcff added: CascadingNotification
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
#
e71b3a79bcff added: CascadingNotification
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
# MACOSX caveat:
e71b3a79bcff added: CascadingNotification
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
#   as filenames are not case sensitive (in a default setup),
e71b3a79bcff added: CascadingNotification
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
#   we cannot use the above trick. Therefore, this file is now named
e71b3a79bcff added: CascadingNotification
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
#   "Makefile.init", and you have to execute "make -f Makefile.init" to
e71b3a79bcff added: CascadingNotification
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
#   get the initial makefile.  This is now also done by the toplevel CONFIG
e71b3a79bcff added: CascadingNotification
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
#   script.
e71b3a79bcff added: CascadingNotification
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
e71b3a79bcff added: CascadingNotification
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
.PHONY: run
e71b3a79bcff added: CascadingNotification
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
e71b3a79bcff added: CascadingNotification
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
run: makefile
e71b3a79bcff added: CascadingNotification
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	$(MAKE) -f makefile
e71b3a79bcff added: CascadingNotification
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
e71b3a79bcff added: CascadingNotification
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
#only needed for the definition of $(TOP)
e71b3a79bcff added: CascadingNotification
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
include Make.proto
e71b3a79bcff added: CascadingNotification
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
e71b3a79bcff added: CascadingNotification
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
makefile: mf
e71b3a79bcff added: CascadingNotification
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
e71b3a79bcff added: CascadingNotification
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
mf:
e71b3a79bcff added: CascadingNotification
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
	$(TOP)/rules/stmkmf