Adaptive process for data sharing with selection of lock elision and locking
Abstract
In a Hardware Lock Elision (HLE) Environment, predictively determining whether a HLE transaction should actually acquire a lock and execute non-transactionally, is provided. Included is, based on encountering an HLE lock-acquire instruction, determining, based on an HLE predictor, whether to elide the lock and proceed as an HLE transaction or to acquire the lock and proceed as a non-transaction; based on the HLE predictor predicting to elide, setting the address of the lock as a read-set of the transaction, and suppressing any write by the lock-acquire instruction to the lock and proceeding in HLE transactional execution mode until an xrelease instruction is encountered wherein the xrelease instruction releases the lock or the HLE transaction encounters a transactional conflict; and based on the HLE predictor predicting not-to-elide, treating the HLE lock-acquire instruction as a non-HLE lock-acquire instruction, and proceeding in non-transactional mode.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 50 · Forward citations: 2.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
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 instru
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (2 of 2 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 10,303,482 B2 | Dynamic processor frequency selection | 2019 | 0 |
| US 12,379,974 B2 | Data race detection with per-thread memory protection | 2025 | 0 |
References Cited — Backward Prior Art (50)
Non-Patent Literature (5)
- "Intel® Architecture Instruction Set Extensions Programming Reference", 319433-012A, Feb. 2012.
- Barros et al., "Software transactional memory as a building block for parallel embedded real-time systems", 2011, 37th EUROMICRO Conference on Software Engineering and Advanced Applications, pp. 251-255.
- Bradbury et al., "Indicating Nearing the Completion of a Transaction," U.S. Appl. No. 14/194,769, filed Mar. 2, 2014.
- Bradbury, et al., "Evading Floating Interruption While in the Transactional-Execution Mode," U.S. Appl. No. 14/191,640, filed Feb. 27, 2014.
- Bradbury, et al., "Predicting the Length of a Transaction," U.S. Appl. No. 14/191,615, filed Feb. 27, 2014.