×

Efficient and consistent software transactional memory

  • US 9,519,467 B2
  • Filed: 09/27/2011
  • Issued: 12/13/2016
  • Est. Priority Date: 12/28/2006
  • Status: Active Grant
First Claim
Patent Images

1. One or more tangible machine readable storage medium storing code, which when executed, causes the machine to perform the operations of:

  • maintaining a global most recent transaction timestamp to be updated in response to a commit of any transaction of a plurality of transactions;

    starting a new transaction, wherein starting the new transaction comprises copying the global most recent transaction timestamp to a first local timestamp of the new transaction;

    in response to executing a current read in the new transaction, comparing a version number of a metadata location associated with the current read to the first local timestamp to determine whether the global most recent transaction timestamp has been updated between starting the new transaction and executing the current read, wherein the global most recent transaction timestamp being updated is indicative of a transaction of the plurality of transactions having committed between starting the new transaction and executing the current read;

    executing one or more prior reads in the new transaction between starting the new transaction and executing the current read, wherein executing the one or more prior reads comprises adding a version number of a metadata location associated with each of the prior reads to a current read set of the new transaction;

    determining whether the current read set for the new transaction including the one or more prior reads executed between starting the new transaction and the current read is valid in response to determining that the global most recent transaction timestamp has been updated, wherein determining whether the current read set is valid comprises comparing each of the one or more version numbers of the current read set to a version number of the metadata location associated with the corresponding prior read;

    continuing execution of the new transaction in response to determining that the global most recent transaction timestamp has not been updated;

    continuing execution of the new transaction in response to determining that the current read set including the one or more prior reads executed from starting the new transaction to the current read is valid, wherein continuing execution of the new transaction comprises performing the current read; and

    aborting the new transaction in response to determining that the current read set including the one or more prior reads executed from starting the new transaction to the current read is not valid, wherein aborting the new transaction comprises reversing changes to memory made by the new transaction.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×