{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,17]],"date-time":"2026-11-17T23:57:06Z","timestamp":1794959826488,"version":"4.9.1"},"reference-count":59,"publisher":"Association for Computing Machinery (ACM)","issue":"1","license":[{"start":{"date-parts":[[2011,1,1]],"date-time":"2011-01-01T00:00:00Z","timestamp":1293840000000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"funder":[{"DOI":"10.13039\/100000143","name":"Division of Computing and Communication Foundations","doi-asserted-by":"publisher","award":["CCF-0541036CCF-0346989CCF-0430118CCF-0524036"],"award-info":[{"award-number":["CCF-0541036CCF-0346989CCF-0430118CCF-0524036"]}],"id":[{"id":"10.13039\/100000143","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Program. Lang. Syst."],"published-print":{"date-parts":[[2011,1]]},"abstract":"<jats:p>Locksmith is a static analysis tool for automatically detecting data races in C programs. In this article, we describe each of Locksmith's component analyses precisely, and present systematic measurements that isolate interesting trade-offs between precision and efficiency in each analysis. Using a benchmark suite comprising stand-alone applications and Linux device drivers totaling more than 200,000 lines of code, we found that a simple no-worklist strategy yielded the most efficient interprocedural dataflow analysis; that our sharing analysis was able to determine that most locations are thread-local, and therefore need not be protected by locks; that modeling C structs and void pointers precisely is key to both precision and efficiency; and that context sensitivity yields a much more precise analysis, though with decreased scalability. Put together, our results illuminate some of the key engineering challenges in building Locksmith and data race detection analyses in particular, and constraint-based program analyses in general.<\/jats:p>","DOI":"10.1145\/1889997.1890000","type":"journal-article","created":{"date-parts":[[2011,1,24]],"date-time":"2011-01-24T14:58:13Z","timestamp":1295881093000},"page":"1-55","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":102,"title":["LOCKSMITH"],"prefix":"10.1145","volume":"33","author":[{"given":"Polyvios","family":"Pratikakis","sequence":"first","affiliation":[{"name":"University of Maryland"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Jeffrey S.","family":"Foster","sequence":"additional","affiliation":[{"name":"University of Maryland"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Michael","family":"Hicks","sequence":"additional","affiliation":[{"name":"University of Maryland"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2011,1,25]]},"reference":[{"key":"e_1_2_1_1_1","doi-asserted-by":"publisher","DOI":"10.1145\/1101908.1101944"},{"key":"e_1_2_1_2_1","volume-title":"Proceedings of the 5th International Conference on Verification, Model Checking and Abstract Interpretation. Lecture Notes in Computer Science","volume":"2937","author":"Agarwal R.","unstructured":"Agarwal , R. and Stoller , S. D . 2004. Type inference for parameterized race-free java . In Proceedings of the 5th International Conference on Verification, Model Checking and Abstract Interpretation. Lecture Notes in Computer Science , vol. 2937 . Springer-Verlag, 149--160. Agarwal, R. and Stoller, S. D. 2004. Type inference for parameterized race-free java. In Proceedings of the 5th International Conference on Verification, Model Checking and Abstract Interpretation. Lecture Notes in Computer Science, vol. 2937. Springer-Verlag, 149--160."},{"key":"e_1_2_1_3_1","unstructured":"Aho A. V. and Ullman J. D. 1977. Principles of Compiler Design (Addison-Wesley Series in Computer Science and Information Processing). Addison-Wesley Longman Publishing Co. Inc. Boston MA.   Aho A. V. and Ullman J. D. 1977. Principles of Compiler Design (Addison-Wesley Series in Computer Science and Information Processing). Addison-Wesley Longman Publishing Co. Inc. Boston MA."},{"key":"e_1_2_1_4_1","doi-asserted-by":"publisher","DOI":"10.1145\/781131.781146"},{"key":"e_1_2_1_5_1","unstructured":"Alexandrescu A. Boehm H. Henney K. Hutchings B. Lea D. and Pugh B. 2005. Memory model for multithreaded c++: Issues. http:\/\/en.scientificcommons.org\/42366732.  Alexandrescu A. Boehm H. Henney K. Hutchings B. Lea D. and Pugh B. 2005. Memory model for multithreaded c++: Issues. http:\/\/en.scientificcommons.org\/42366732."},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.1145\/504282.504287"},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","DOI":"10.1145\/512529.512560"},{"key":"e_1_2_1_8_1","unstructured":"Cooper K. D. Harvey T. J. and Kennedy K. 2004. Iterative data-flow analysis revisited. Tech. rep. TR04-100 Department of Computer Science Rice University.  Cooper K. D. Harvey T. J. and Kennedy K. 2004. Iterative data-flow analysis revisited. Tech. rep. TR04-100 Department of Computer Science Rice University."},{"key":"e_1_2_1_9_1","doi-asserted-by":"publisher","DOI":"10.1145\/292540.292564"},{"key":"e_1_2_1_10_1","doi-asserted-by":"publisher","DOI":"10.1145\/945445.945468"},{"key":"e_1_2_1_11_1","doi-asserted-by":"publisher","DOI":"10.1145\/512529.512532"},{"key":"e_1_2_1_12_1","doi-asserted-by":"publisher","DOI":"10.1145\/349299.349332"},{"key":"e_1_2_1_13_1","volume-title":"Proceedings of the 8th European Symposium on Programming Languages and Systems (ESOP'99)","author":"Flanagan C.","unstructured":"Flanagan , C. and Abadi , M . 1999. Types for safe locking . In Proceedings of the 8th European Symposium on Programming Languages and Systems (ESOP'99) . Springer-Verlag, 91--108. Flanagan, C. and Abadi, M. 1999. Types for safe locking. In Proceedings of the 8th European Symposium on Programming Languages and Systems (ESOP'99). Springer-Verlag, 91--108."},{"key":"e_1_2_1_14_1","doi-asserted-by":"publisher","DOI":"10.1145\/349299.349328"},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.1145\/379605.379687"},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.1145\/964001.964023"},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.scico.2006.03.006"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1145\/1040294.1040299"},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1145\/512529.512558"},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.1145\/781131.781169"},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.1145\/1186632.1186635"},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/512529.512531"},{"key":"e_1_2_1_23_1","doi-asserted-by":"publisher","DOI":"10.1145\/604174.604177"},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.1145\/378795.378855"},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","DOI":"10.1145\/169701.169692"},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/773184.773203"},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.1145\/996893.996844"},{"key":"e_1_2_1_28_1","unstructured":"Hote C. 2004. Runtime error detection through semantic analysis. http\/\/nesl.ee.ucla.edu\/courses\/ee202a\/2005f\/papers\/Semantic_Analysis.pdf.  Hote C. 2004. Runtime error detection through semantic analysis. http\/\/nesl.ee.ucla.edu\/courses\/ee202a\/2005f\/papers\/Semantic_Analysis.pdf."},{"key":"e_1_2_1_29_1","unstructured":"Intel. 2007. Teraflops research chip. http\/\/techresearch.intel.com\/ProjectDetails.aspx?Id=151.  Intel. 2007. Teraflops research chip. http\/\/techresearch.intel.com\/ProjectDetails.aspx?Id=151."},{"key":"e_1_2_1_30_1","volume-title":"Proceedings of the 13th Conference on USENIX Security Symposium (SSYM'04)","author":"Johnson R.","unstructured":"Johnson , R. and Wagner , D . 2004. Finding user\/kernel pointer bugs with type inference . In Proceedings of the 13th Conference on USENIX Security Symposium (SSYM'04) . USENIX Association, Berkeley, CA, 9--9. Johnson, R. and Wagner, D. 2004. Finding user\/kernel pointer bugs with type inference. In Proceedings of the 13th Conference on USENIX Security Symposium (SSYM'04). USENIX Association, Berkeley, CA, 9--9."},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.1145\/996841.996867"},{"key":"e_1_2_1_32_1","doi-asserted-by":"publisher","DOI":"10.1007\/11547662_16"},{"key":"e_1_2_1_33_1","doi-asserted-by":"publisher","DOI":"10.1145\/359545.359563"},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.1109\/MC.1993.274940"},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.1145\/1040305.1040336"},{"key":"e_1_2_1_37_1","doi-asserted-by":"publisher","DOI":"10.1145\/1190215.1190265"},{"key":"e_1_2_1_38_1","doi-asserted-by":"publisher","DOI":"10.1145\/1133981.1134018"},{"key":"e_1_2_1_39_1","doi-asserted-by":"publisher","DOI":"10.1145\/1328438.1328447"},{"key":"e_1_2_1_40_1","volume-title":"Proceedings of the 11th International Conference on Compiler Construction (CC'02)","author":"Necula G. C.","unstructured":"Necula , G. C. , McPeak , S. , Rahul , S. P. , and Weimer , W . 2002. Cil: Intermediate language and tools for analysis and transformation of c programs . In Proceedings of the 11th International Conference on Compiler Construction (CC'02) . Springer-Verlag, 213--228. Necula, G. C., McPeak, S., Rahul, S. P., and Weimer, W. 2002. Cil: Intermediate language and tools for analysis and transformation of c programs. In Proceedings of the 11th International Conference on Compiler Construction (CC'02). Springer-Verlag, 213--228."},{"key":"e_1_2_1_41_1","unstructured":"News.com. 2007. Designer puts 96 cores on single chip. http\/\/news.com.com\/Designer+puts+96+cores+on+single+chip\/2100-1006_3-5399128.html.  News.com. 2007. Designer puts 96 cores on single chip. http\/\/news.com.com\/Designer+puts+96+cores+on+single+chip\/2100-1006_3-5399128.html."},{"key":"e_1_2_1_42_1","doi-asserted-by":"publisher","DOI":"10.1145\/781498.781528"},{"key":"e_1_2_1_43_1","volume-title":"Types and Programming Languages","author":"Pierce B. C.","unstructured":"Pierce , B. C. 2002. Types and Programming Languages . MIT Press , Cambridge, MA . Pierce, B. C. 2002. Types and Programming Languages. MIT Press, Cambridge, MA."},{"key":"e_1_2_1_44_1","unstructured":"Poulsen K. 2004. Tracking the blackout bug. http:\/\/www.securityfocus.com\/news\/8412.  Poulsen K. 2004. Tracking the blackout bug. http:\/\/www.securityfocus.com\/news\/8412."},{"key":"e_1_2_1_45_1","doi-asserted-by":"publisher","DOI":"10.1007\/11823230_7"},{"key":"e_1_2_1_46_1","doi-asserted-by":"publisher","DOI":"10.1145\/1133981.1134019"},{"key":"e_1_2_1_47_1","doi-asserted-by":"publisher","DOI":"10.1145\/996841.996845"},{"key":"e_1_2_1_48_1","doi-asserted-by":"publisher","DOI":"10.1145\/360204.360208"},{"key":"e_1_2_1_49_1","doi-asserted-by":"publisher","DOI":"10.1145\/199448.199462"},{"key":"e_1_2_1_50_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-30538-5_4"},{"key":"e_1_2_1_51_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.scico.2005.03.003"},{"key":"e_1_2_1_52_1","doi-asserted-by":"publisher","DOI":"10.1145\/265924.265927"},{"key":"e_1_2_1_53_1","first-page":"413","article-title":"Global invariants for analyzing multi-threaded applications","author":"Seidl H.","year":"2003","unstructured":"Seidl , H. , Vene , V. , and M\u00fcller-Olm , M. 2003 . Global invariants for analyzing multi-threaded applications . Proc. Estonian Acad. Sci. Phys. Math , 413 - 436 . Seidl, H., Vene, V., and M\u00fcller-Olm, M. 2003. Global invariants for analyzing multi-threaded applications. Proc. Estonian Acad. Sci. Phys. Math, 413-436.","journal-title":"Proc. Estonian Acad. Sci. Phys. Math"},{"key":"e_1_2_1_54_1","volume-title":"Proceedings of the 7th European Software Engineering Conference Held Jointly with the 7th ACM SIGSOFT International Symposium on Foundations of Software Engineering. Springer-Verlag, 180--198","author":"Siff M.","unstructured":"Siff , M. , Chandra , S. , Ball , T. , Kunchithapadam , K. , and Reps , T . 1999. Coping with type casts in c . In Proceedings of the 7th European Software Engineering Conference Held Jointly with the 7th ACM SIGSOFT International Symposium on Foundations of Software Engineering. Springer-Verlag, 180--198 . Siff, M., Chandra, S., Ball, T., Kunchithapadam, K., and Reps, T. 1999. Coping with type casts in c. In Proceedings of the 7th European Software Engineering Conference Held Jointly with the 7th ACM SIGSOFT International Symposium on Foundations of Software Engineering. Springer-Verlag, 180--198."},{"key":"e_1_2_1_55_1","volume-title":"Proceedings of the 9th European Symposium on Programming Languages and Systems (ESOP'00)","author":"Smith F.","unstructured":"Smith , F. , Walker , D. , and Morrisett , J. G . 2000. Alias types . In Proceedings of the 9th European Symposium on Programming Languages and Systems (ESOP'00) . Springer-Verlag, 366--381. Smith, F., Walker, D., and Morrisett, J. G. 2000. Alias types. In Proceedings of the 9th European Symposium on Programming Languages and Systems (ESOP'00). Springer-Verlag, 366--381."},{"key":"e_1_2_1_56_1","doi-asserted-by":"publisher","DOI":"10.1006\/inco.1994.1046"},{"key":"e_1_2_1_57_1","doi-asserted-by":"publisher","DOI":"10.1145\/1375581.1375583"},{"key":"e_1_2_1_58_1","doi-asserted-by":"publisher","DOI":"10.1145\/291891.291894"},{"key":"e_1_2_1_59_1","doi-asserted-by":"publisher","DOI":"10.1145\/781131.781145"},{"key":"e_1_2_1_60_1","doi-asserted-by":"publisher","DOI":"10.1145\/1287624.1287654"}],"container-title":["ACM Transactions on Programming Languages and Systems"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/1889997.1890000","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/1889997.1890000","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,18]],"date-time":"2025-06-18T10:52:18Z","timestamp":1750243938000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/1889997.1890000"}},"subtitle":["Practical static race detection for C"],"short-title":[],"issued":{"date-parts":[[2011,1]]},"references-count":59,"journal-issue":{"issue":"1","published-print":{"date-parts":[[2011,1]]}},"alternative-id":["10.1145\/1889997.1890000"],"URL":"https:\/\/doi.org\/10.1145\/1889997.1890000","relation":{},"ISSN":["0164-0925","1558-4593"],"issn-type":[{"value":"0164-0925","type":"print"},{"value":"1558-4593","type":"electronic"}],"subject":[],"published":{"date-parts":[[2011,1]]},"assertion":[{"value":"2008-07-01","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2010-02-01","order":1,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2011-01-25","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}