{"pub_number":"US12379928B2","doc_number":"12379928","country":"US","kind_code":"B2","patent_type":"utility","status":"active","title":"Method and apparatus for rectifying weak memory ordering problem","abstract_text":"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.","claims":[{"number":1,"text":"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.","independent":true},{"number":2,"text":"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","independent":false,"depends_on":[1]}],"description":"","inventors":[{"name":"Yu Di","slug":"yu-di","country":"CN"},{"name":"Lv Yandong","slug":"lv-yandong","country":"CN"},{"name":"Zhang Rutao","slug":"zhang-rutao","country":"CN"}],"assignees":[{"name":"Huawei Tech Co Ltd","slug":"huawei-tech-co-ltd","country":"CN"}],"examiners":["Faherty Corey S"],"cpc_codes":["G06F 11/073","G06F 11/0793","G06F 8/41","G06F 8/458","G06F 9/3004","G06F 9/30087","G06F 9/30192","G06F 9/38","G06F 9/3834","G06F 9/3836","G06F 9/3851","G06F 9/3856"],"ipc_codes":["G06F 8/41","G06F 9/30","G06F 9/38"],"filing_date":"2023-05-18","pub_date":"2025-08-05","grant_date":"2025-08-05","priority_date":"2020-11-19","expiration_date":"2043-05-18","application_number":"US-202318320039-A","family_id":"FAM-81594188","family_members":[],"citations_made":[{"pub_number":"US6209073B1","category":"SEA"},{"pub_number":"US6973605B1","category":"SEA"},{"pub_number":"US7447876B2","category":"SEA"},{"pub_number":"CN101833440A","category":"APP"},{"pub_number":"US7941627B2","category":"SEA"},{"pub_number":"US10417056B2","category":"SEA"},{"pub_number":"US11507379B2","category":"SEA"},{"pub_number":"US2022413945A1","category":"SEA"},{"pub_number":"US11625249B2","category":"SEA"},{"pub_number":"US2023315458A1","category":"SEA"}],"non_patent_literature":["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)."],"drawings_count":0,"source_id":"google_patents_public","upstream_forward_citations":0,"metrics":{"forward_citations":0,"indexed_forward_citations":0,"backward_citations":10,"npl_citations":5,"citations_per_year":0.0,"pagerank":0.9652804732322692,"citation_rank":1409238,"pagerank_rank":1409238,"velocity_rank":1409238,"family_citations":0}}