×

Adaptive process for data sharing with selection of lock elision and locking

  • US 9,524,196 B2
  • Filed: 08/25/2015
  • Issued: 12/20/2016
  • Est. Priority Date: 02/27/2014
  • Status: Active Grant
First Claim
Patent Images

1. A method for predictively determining an execution mode, the method comprising:

  • in response to detecting, by a processor having Hardware Lock Elision (HLE) support, a transaction-starting prefix instruction added to a lock acquire instruction, beginning a transaction in lock elision mode, based on a count of mispredictions not exceeding a threshold number of failed transaction executions, otherwise entering non-transactional lock mode based on the count of mispredictions exceeding the threshold number of failed transaction executions;

    in response to detecting a transaction-ending prefix instruction added to a lock release instruction, committing the transaction based on the processor not detecting an interference by an other processor, and incrementing a count of successful predictions; and

    in response to the processor detecting the interference by the other processor, obtaining a lock, restarting the transaction in non-transactional lock mode, and incrementing the count of mispredictions.

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