Research indexJournal article
Allocation without locking
Appel
Software Practice and Experience1 Jul 1989
NobleIDark:/48914/w1/20260521/5AC11961DOI10.1002/spe.4380190704
Allocation without locking
Appel · Software Practice and Experience · 1989 · Subscription
NobleIDark:/48914/w1/20260521/5AC11961DOI10.1002/spe.4380190704
The full text is at the publisher
You can read the abstract here, or open it at the publisher.
Abstract
Abstract In a programming environment with both concurrency and automatic garbage collection, the allocation and initialization of a new record is a sensitive matter: if it is interrupted half‐way through, the allocating process may be in a state that the garbage collector cannot understand. In particular, the collector will not know which words of the new record have been initialized and which are meaningless (and unsafe to traverse). For this reason, parallel implementations usually use a locking or semaphore mechanism to ensure that allocation is an atomic operation. The locking significantly adds to the cost of allocation. This paper shows how allocation can run extremely quickly even in a multi‐thread environment: open‐coded, without locking.