1999 · 26 citations · 17 references
ComputingComputer ScienceComputer SystemsOperating SystemsStorage SystemsSystems ProgrammingGarbage CollectionInterrupt HandlingMemory ConsistencyThread ManagementAtomic Memory OperationsAtomic OperationsAtomicityAutomatic Memory ManagementGarbage Collection OverheadHeap ManagementInvariantsStructural Invariants
Languages such as Java, ML, Scheme, and Haskell provide automatic storage management, that is, garbage collection. The two fundamental operations performed on a garbage-collected heap are "allocate" and "collect." Because the heap is in an inconsistent state during these operations, they must be performed atomically. Otherwise, a heap client might access the heap during a time when its fundamental invariants do not hold, corrupting the heap.Standard techniques for providing this atomicity guarantee have large latencies and other performance problems that impede their application in high-performance, interruptladen, thread-based systems applications. In particular, the standard techniques prevent thread schedulers from switching threads on VM page faults.We cast the space of possible implementations into a general taxonomy, and describe a new technique that provides a simple, low-overhead, low-latency interlock. We have implemented this technique in a version of SML/NJ, and, because of its applicability to thread-based systems, are currently implementing it in the scheduler of our raw-hardware SML-based kernel, ML/OS. Our technique can be extended to provide other atomic sequences besides storage allocation.
17
Maurice Herlihy · ACM Transactions on Programming Languages and Systems · 1991 · 1.8K citations · Full text
Safe kernel extensions without run-time checking
George C. Necula, Peter Lee · 1996 · 506 citations
Systems programming with Modula-3
Choice Reviews Online · 1992 · 260 citations
David Kranz, Richard Kelsey, Jonathan Rees et al. · ACM SIGPLAN Notices · 2004 · 259 citations
Bryan Ford, Godmar Back, Greg Benson et al. · 1997 · 258 citations · Full text