Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by zozbot234

3 days ago

Data races are possible on some types, specifically `long` when not declared as `volatile` - but these do not directly cause memory unsafety.

1 comment

zozbot234

Reply

ivell  3 days ago

Not just some types - any object with members. Shared references are a thing in Java and if not careful can cause data races left and right.

Rust controls that quite a bit.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities