Login

Safe Open-Nested Transactions Through Ownership

Show full item record


Citable URI: http://hdl.handle.net/1721.1/41871

Title: Safe Open-Nested Transactions Through Ownership
Author: Agrawal, Kunal; Lee, I-Ting Angelina; Sukha, Jim
Advisor: Charles Leiserson
Abstract: Researchers in transactional memory (TM) have proposed open nesting asa methodology for increasing the concurrency of a program. The ideais to ignore certain "low-level" memory operations of anopen-nested transaction when detecting conflicts for its parenttransaction, and instead perform abstract concurrency control for the"high-level" operation that nested transaction represents. Tosupport this methodology, TM systems use an open-nested commitmechanism that commits all changes performed by an open-nestedtransaction directly to memory, thereby avoiding low-levelconflicts. Unfortunately, because the TM runtime is unaware of thedifferent levels of memory, an unconstrained use of open-nestedcommits can lead to anomalous program behavior.In this paper, we describe a framework of ownership-awaretransactional memory which incorporates the notion of modules into theTM system and requires that transactions and data be associated withspecific transactional modules or Xmodules. We propose a newownership-aware commit mechanism, a hybrid between anopen-nested and closed-nested commit which commits a piece of datadifferently depending on whether the current Xmodule owns the data ornot. Moreover, we give a set of precise constraints on interactionsand sharing of data among the Xmodules based on familiar notions ofabstraction. We prove that ownership-aware TM has has cleanmemory-level semantics and can guarantee serializability bymodules, which is an adaptation of multilevel serializability fromdatabases to TM. In addition, we describe how a programmer canspecify Xmodules and ownership in a Java-like language. Our typesystem can enforce most of the constraints required by ownership-awareTM statically, and can enforce the remaining constraints dynamically.Finally, we prove that if transactions in the process of aborting obeyrestrictions on their memory footprint, the OAT model is free fromsemantic deadlock.
URI: http://hdl.handle.net/1721.1/41871
Issue Date: 2008-02-20
Keywords: abstract serializability, open-nested transactions, ownership types, ownership-aware transactions, serializability by levels, serializability by modules, transactional memory, Xmodules

Files in this item

Files Size Format
MIT-CSAIL-TR-2008-038.pdf 499.1Kb application/pdf
MIT-CSAIL-TR-2008-038.ps 73.87Kb application/postscript

The following license files are associated with this item:

This item appears in the following Collection(s)

Show full item record

Search DSpace


Advanced Search

Browse

My Account

Links