{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,6,18]],"date-time":"2025-06-18T04:15:55Z","timestamp":1750220155542,"version":"3.41.0"},"reference-count":44,"publisher":"Association for Computing Machinery (ACM)","issue":"3","license":[{"start":{"date-parts":[[2022,7,6]],"date-time":"2022-07-06T00:00:00Z","timestamp":1657065600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"funder":[{"DOI":"10.13039\/501100001807","name":"FAPESP","doi-asserted-by":"crossref","id":[{"id":"10.13039\/501100001807","id-type":"DOI","asserted-by":"crossref"}]},{"name":"Center for Computational Engineering and Sciences"}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Archit. Code Optim."],"published-print":{"date-parts":[[2022,9,30]]},"abstract":"<jats:p>\n            With chip manufacturers such as Intel, IBM, and ARM offering native support for transactional memory in their instruction set architectures, memory transactions are on the verge of being considered a genuine application tool rather than just an interesting research topic. Despite this recent increase in popularity on the\n            <jats:bold>hardware side of transactional memory (HTM)<\/jats:bold>\n            ,\n            <jats:bold>software support for transactional memory (STM)<\/jats:bold>\n            is still scarce and the only compiler with transactional support currently available, the\n            <jats:bold>GNU Compiler Collection (GCC)<\/jats:bold>\n            , does not generate code that achieves desirable performance. For\n            <jats:bold>hybrid solutions of TM (HyTM)<\/jats:bold>\n            , which are frameworks that leverage the best aspects of HTM and STM, the subpar performance of the software side, caused by inefficient compiler generated code, might forbid HyTM to offer optimal results. This article extends previous work focused exclusively on STM implementations by presenting a detailed analysis of transactional code generated by GCC in the context of HybridTM implementations. In particular, it builds on previous research of transactional memory support in the Clang\/LLVM compiler framework, which is decoupled from any TM runtime, and presents the following novel contributions: (a) it shows that STM\u2019s performance overhead, due to an excessive amount of read and write barriers added by the compiler, also impacts the performance of HyTM systems; and (b) it reveals the importance of the previously proposed annotation mechanism to reduce the performance gap between HTM and STM in phased runtime systems. Furthermore, it shows that, by correctly using the annotations on just a few lines of code, it is possible to reduce the total number of instrumented barriers by 95% and to achieve speed-ups of up to 7\u00d7 when compared to the original code generated by GCC and the Clang compiler.\n            <jats:xref ref-type=\"fn\">\n              <jats:sup>1<\/jats:sup>\n            <\/jats:xref>\n          <\/jats:p>","DOI":"10.1145\/3533318","type":"journal-article","created":{"date-parts":[[2022,5,4]],"date-time":"2022-05-04T11:16:37Z","timestamp":1651662997000},"page":"1-23","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":0,"title":["Using Barrier Elision to Improve Transactional Code Generation"],"prefix":"10.1145","volume":"19","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-0273-7367","authenticated-orcid":false,"given":"Bruno Chinelato","family":"Honorio","sequence":"first","affiliation":[{"name":"University of Campinas - UNICAMP, Brazil"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-3476-184X","authenticated-orcid":false,"given":"Jo\u00e3o P. L.","family":"De Carvalho","sequence":"additional","affiliation":[{"name":"University of Alberta, Alberta, Canada"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-7218-1774","authenticated-orcid":false,"given":"Catalina Munoz","family":"Morales","sequence":"additional","affiliation":[{"name":"University of Campinas - UNICAMP, Brazil"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-8824-3055","authenticated-orcid":false,"given":"Alexandro","family":"Baldassin","sequence":"additional","affiliation":[{"name":"State University of S\u00e3o Paulo - UNESP, Brazil"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-4869-5190","authenticated-orcid":false,"given":"Guido","family":"Araujo","sequence":"additional","affiliation":[{"name":"University of Campinas - UNICAMP, Brazil"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"320","published-online":{"date-parts":[[2022,7,6]]},"reference":[{"key":"e_1_3_2_2_2","unstructured":"http:\/\/gcc.gnu.org\/wiki\/TransactionalMemory 2012 Transactional Memory in GCC Free Software Foundation"},{"key":"e_1_3_2_3_2","doi-asserted-by":"publisher","DOI":"10.5555\/1299042.1299064"},{"key":"e_1_3_2_4_2","doi-asserted-by":"publisher","DOI":"10.1145\/2688500.2688504"},{"key":"e_1_3_2_5_2","doi-asserted-by":"publisher","DOI":"10.1145\/1480881.1480909"},{"key":"e_1_3_2_6_2","doi-asserted-by":"publisher","DOI":"10.1145\/2628071.2628086"},{"key":"e_1_3_2_7_2","doi-asserted-by":"publisher","DOI":"10.1145\/1133981.1133983"},{"key":"e_1_3_2_8_2","doi-asserted-by":"publisher","DOI":"10.1145\/2442516.2442556"},{"key":"e_1_3_2_9_2","doi-asserted-by":"publisher","DOI":"10.1145\/1950365.1950373"},{"key":"e_1_3_2_10_2","doi-asserted-by":"publisher","DOI":"10.1145\/1693453.1693464"},{"key":"e_1_3_2_11_2","doi-asserted-by":"publisher","DOI":"10.1145\/3079079.3079094"},{"key":"e_1_3_2_12_2","doi-asserted-by":"publisher","DOI":"10.1109\/IPDPS47924.2020.00107"},{"key":"e_1_3_2_13_2","doi-asserted-by":"publisher","DOI":"10.1145\/1583991.1584049"},{"key":"e_1_3_2_14_2","doi-asserted-by":"publisher","DOI":"10.1109\/tpds.2010.49"},{"key":"e_1_3_2_15_2","doi-asserted-by":"publisher","DOI":"10.5555\/1855056"},{"key":"e_1_3_2_16_2","doi-asserted-by":"publisher","DOI":"10.1145\/165123.165164"},{"key":"e_1_3_2_17_2","doi-asserted-by":"publisher","DOI":"10.5555\/1734069"},{"key":"e_1_3_2_18_2","doi-asserted-by":"publisher","DOI":"10.1109\/WSCAD.2018.00037"},{"key":"e_1_3_2_19_2","doi-asserted-by":"publisher","DOI":"10.1145\/239912.239913"},{"volume-title":"Intel Transactional Memory Compiler and Runtime Application Binary Interface (1.1 ed.)","year":"2009","key":"e_1_3_2_20_2","unstructured":"Intel Corporation 2009. Intel Transactional Memory Compiler and Runtime Application Binary Interface (1.1 ed.). Intel Corporation."},{"key":"e_1_3_2_21_2","doi-asserted-by":"publisher","DOI":"10.1145\/1122971.1123003"},{"key":"e_1_3_2_22_2","doi-asserted-by":"publisher","DOI":"10.1109\/TPDS.2018.2861712"},{"key":"e_1_3_2_23_2","doi-asserted-by":"publisher","DOI":"10.1145\/99583.99599"},{"key":"e_1_3_2_24_2","doi-asserted-by":"publisher","DOI":"10.1145\/99583.99599"},{"key":"e_1_3_2_25_2","doi-asserted-by":"publisher","DOI":"10.1109\/CGO.2004.1281665"},{"key":"e_1_3_2_26_2","unstructured":"Chris Lattner and Jacques Pienaar. 2019. MLIR primer: A compiler infrastructure for the end of Moore\u2019s law. (2019)."},{"key":"e_1_3_2_27_2","doi-asserted-by":"publisher","DOI":"10.1147\/JRD.2014.2380199"},{"key":"e_1_3_2_28_2","first-page":"136","volume-title":"Proceedings of the 18th International Conference on Parallel Architectures and Compilation Techniques","author":"Lev Yossi","year":"2009","unstructured":"Yossi Lev and Maurice Herlihy. 2009. tm_db: A generic debugging library for transactional programs. In Proceedings of the 18th International Conference on Parallel Architectures and Compilation Techniques. 136\u2013145."},{"key":"e_1_3_2_29_2","volume-title":"Second ACM SIGPLAN Workshop on Transactional Computing","author":"Lev Yossi","year":"2007","unstructured":"Yossi Lev, Mark Moir, and Dan Nussbaum. 2007. PhTM: Phased transactional memory. In Second ACM SIGPLAN Workshop on Transactional Computing."},{"key":"e_1_3_2_30_2","volume-title":"First ACM SIGPLAN Workshop on Languages, Compilers, and Hardware Support for Transactional Computing","author":"Marathe Virendra J.","year":"2006","unstructured":"Virendra J. Marathe, Michael F. Spear, Christopher Heriot, Athul Acharya, David Eisenstat, William N. Scherer, and Michael L. Scott. 2006. Lowering the overhead of nonblocking software transactional memory. In First ACM SIGPLAN Workshop on Languages, Compilers, and Hardware Support for Transactional Computing. http:\/\/www.cs.rochester.edu\/research\/synchronization\/pubs.shtml."},{"key":"e_1_3_2_31_2","doi-asserted-by":"publisher","DOI":"10.1145\/2694344.2694393"},{"key":"e_1_3_2_32_2","first-page":"35","volume-title":"Proceedings of the IEEE International Symposium on Workload Characterization","author":"Minh Chi Cao","year":"2008","unstructured":"Chi Cao Minh, JaeWoong Chung, C. Kozyrakis, and K. Olukotun. 2008. STAMP: Stanford transactional applications for multi-processing. In Proceedings of the IEEE International Symposium on Workload Characterization. 35\u201346."},{"key":"e_1_3_2_33_2","doi-asserted-by":"publisher","DOI":"10.1145\/2749469.2750403"},{"key":"e_1_3_2_34_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-35308-6_5"},{"key":"e_1_3_2_35_2","volume-title":"Ninth ACM SIGPLAN Workshop on Transactional Computing","author":"Ruan Wenjia","year":"2014","unstructured":"Wenjia Ruan, Yujie Liu, and Michael Spear. 2014. STAMP need not be considered harmful. In Ninth ACM SIGPLAN Workshop on Transactional Computing."},{"key":"e_1_3_2_36_2","first-page":"1","volume-title":"Proceedings of the International Symposium on Code Generation and Optimization","author":"Ruan Wenjia","year":"2013","unstructured":"Wenjia Ruan, Yujie Liu, Chao Wang, and Michael Spear. 2013. On the platform specificity of STM instrumentation mechanisms. In Proceedings of the International Symposium on Code Generation and Optimization. 1\u201310."},{"key":"e_1_3_2_37_2","volume-title":"Technical Specification for C++ Extensions for Transactional Memory (n4514 ed.)","author":"SC22 ISO\/IEC JTC1","year":"2015","unstructured":"ISO\/IEC JTC1 SC22. 2015. Technical Specification for C++ Extensions for Transactional Memory (n4514 ed.). ISO copyright officer."},{"key":"e_1_3_2_38_2","article-title":"New technologies in the ARM architecture","author":"Stephens Nigel","year":"2019","unstructured":"Nigel Stephens. 2019. New technologies in the ARM architecture. ARM Ltd. Linaro Connect Bangkok (April 2019).","journal-title":"ARM Ltd. Linaro Connect Bangkok"},{"key":"e_1_3_2_39_2","doi-asserted-by":"publisher","DOI":"10.1145\/1095408.1095421"},{"key":"e_1_3_2_40_2","doi-asserted-by":"publisher","DOI":"10.1145\/2086696.2086710"},{"key":"e_1_3_2_41_2","doi-asserted-by":"publisher","DOI":"10.1109\/CGO.2007.4"},{"key":"e_1_3_2_42_2","doi-asserted-by":"publisher","DOI":"10.1002\/cpe.v21:1"},{"key":"e_1_3_2_43_2","doi-asserted-by":"publisher","DOI":"10.1145\/2503210.2503232"},{"key":"e_1_3_2_44_2","doi-asserted-by":"publisher","DOI":"10.1145\/1378533.1378582"},{"key":"e_1_3_2_45_2","doi-asserted-by":"publisher","DOI":"10.1145\/3328796"}],"container-title":["ACM Transactions on Architecture and Code Optimization"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3533318","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3533318","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T19:00:17Z","timestamp":1750186817000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3533318"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2022,7,6]]},"references-count":44,"journal-issue":{"issue":"3","published-print":{"date-parts":[[2022,9,30]]}},"alternative-id":["10.1145\/3533318"],"URL":"https:\/\/doi.org\/10.1145\/3533318","relation":{},"ISSN":["1544-3566","1544-3973"],"issn-type":[{"type":"print","value":"1544-3566"},{"type":"electronic","value":"1544-3973"}],"subject":[],"published":{"date-parts":[[2022,7,6]]},"assertion":[{"value":"2021-11-01","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2022-04-01","order":1,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2022-07-06","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}