Method and apparatus for rectifying weak memory ordering problem
Abstract
This application relates to the field of computer technologies, and discloses methods and apparatuses, for example, for rectifying a weak memory ordering problem. An example method includes: determining a read/write instruction set in to-be-repaired code; classifying instructions in the read/write instruction set to determine a target instruction; and inserting a memory barrier instruction between a previous read/write instruction of the target instruction and the target instruction. The read/write instruction set includes a read instruction and/or a write instruction in the to-be-repaired code, and an instruction in the read/write instruction set is used for memory access.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 10 · Forward citations: 0.
Claims (2)
- Claim 1Independent Claim
A method, wherein the method comprises: determining a read/write instruction set in to-be-repaired code, wherein the read/write instruction set comprises a read instruction or a write instruction in the to-be-repaired code, and wherein an instruction in the read/write instruction set is used for memory access; classifying instructions in the read/write instruction set to determine a target instruction; and inserting a memory barrier instruction between a previous read/write instruction of the target instruction and the target instruction.
- Claim 2Depends on #1
The method according to claim 1 , wherein the classifying instructions in the read/write instruction set to determine a target instruction specifically comprises: determining a first-type instruction in the read/write instruction set, wherein the first-type instruction is an instructio
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (10)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (5)
- Abdulla et al., “Automatic Fence Insertion in Integer Programs via Predicate Abstraction,” Proceedings of Static Analysis: 19th International Symposium, SAS 2012, Sep. 11-13, 2012, pp. 164-180.
- De Carvalho et al., “Improving Transactional Code Generation via Variable Annotation and Barrier Elision,” Proceedings of 2020 IEEE International Parallel and Distributed Processing Symposium (IPDPS), May 18, 2020, pp. 1008-1017.
- De Carvalho, “Optimizing Memory Transactions for Large-Scale Programs,” Thesis for the degree of Doctor of Information Systems and Computer Engineering, University of Lisbon, Jan. 1, 2014, 187 pages.
- Extended European Search Report in European Appln. No. 21893641.7, mailed on Mar. 25, 2024, 15 pages.
- International Search Report and Written Opinion in International Appln. No. PCT/CN2021/123883, mailed on Jan. 14, 2022, 15 pages (with English translation).