×

Compiler implementation of lock/unlock using hardware transactional memory

  • US 8,612,929 B2
  • Filed: 12/10/2008
  • Issued: 12/17/2013
  • Est. Priority Date: 12/10/2008
  • Status: Active Grant
First Claim
Patent Images

1. A method executable by a processor for parallelizing code using transaction memory comprising:

  • examining one or more program instructions;

    identifying a transaction synchronization region (TSR) within said program instructions, wherein the TSR accesses a shared region of memory within a shared memory;

    performing no transformation of the TSR, in response to predicting a transformed TSR will fail during execution; and

    in response to predicting a transformed TSR will not fail during execution;

    replacing the TSR with a first portion of code and a second portion of code, wherein the first portion of code is configured to access the shared region without lock and unlock function calls and without software transactional memory semantics;

    executing the first portion of code without disabling existing hardware transactional memory support; and

    said first portion calling said second portion to perform a failure handling routine in response to an indication a failure occurs within said first portion.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×