×

Systems and methods for adaptive integration of hardware and software lock elision techniques

  • US 9,619,281 B2
  • Filed: 11/09/2015
  • Issued: 04/11/2017
  • Est. Priority Date: 07/16/2013
  • Status: Active Grant
First Claim
Patent Images

1. A method, comprising:

  • performing by a computer;

    beginning instrumentation of code of a multithreaded application,wherein the application comprises at least one critical section of code that is associated with a lock, and wherein when the lock is held by a thread, other threads are prevented from accessing resources that are protected by the lock;

    declaring, for one or more respective locks of the at least one critical section, metadata for use by an adaptive lock elision library, wherein the metadata for a given lock comprises a respective label corresponding to the given lock;

    selecting one of a plurality of mechanisms for executing the critical section without acquiring the lock; and

    instrumenting the critical section for execution using the selected one of the plurality of mechanisms, wherein the instrumenting the critical section comprises replacing a call for the lock with a call to the adaptive lock elision library.

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