按年被提到
20222022 · 2 次2026
编程语言与编译器›编译器与运行时优化·arXiv:2204.00764 · cs.DC

A Study of Real-World Data Races in Golang

Milind Chabbi, Murali Krishna Ramanathan · 2022
开始阅读 ↗PDFalphaXiv 讨论
被提及 · 3 人首次 2022-04-05 · 最近 2024-06-23
3不同的人
2活跃月份
3讨论串
37被引(OpenAlex)
arXiv 摘要(候选层不写导读)

The concurrent programming literature is rich with tools and techniques for data race detection. Less, however, has been known about real-world, industry-scale deployment, experience, and insights about data races. Golang (Go for short) is a modern programming language that makes concurrency a first-class citizen. Go offers both message passing and shared memory for communicating among concurrent threads. Go is gaining popularity in modern microservice-based systems. Data races in Go stand in the face of its emerging popularity. In this paper, using our industrial codebase as an example, we demonstrate that Go developers embrace concurrency and show how the abundance of concurrency alongside language idioms and nuances make Go programs highly susceptible to data races. Google's Go distribution ships with a built-in dynamic data race detector based on ThreadSanitizer. However, dynamic race detectors pose scalability and flakiness challenges; we discuss various software engineering trade-offs to make this detector work effectively at scale. We have deployed this detector in Uber's 46 million lines of Go codebase hosting 2100 distinct microservices, found over 2000 data races, and fixed over 1000 data races, spanning 790 distinct code patches submitted by 210 unique developers over a six-month period. Based on a detailed investigation of these data race patterns in Go, we make seven high-level observations relating to the complex interplay between the Go language paradigm and data races.

候选层:至少 2 个不同的人、在 2 个不同月份提到过,还没到主书架的 3 人 3 个月。没有做立场标注,所以只写“被提及”。

HN 书评

推荐在前,同类按时间 · 每篇最多保留 20 条,统计用全部提及
评论dureuill · 2024-06

“> Rust also has UB and you should still be runnig fuzzers and sanitizers on your rust code, that is true for C++. Safe Rust doesn't have UB[1], and safe Rust is what I review 99% of the time. For unsafe modules, you should indeed be running sanitizers. Fuzzers are always good, they are also interesting for other properties than UB. > tools available tha…”

Zig vs. Rust at work: the choice we made原评论 ↗
被提交为 story · 2 次