-17
you are viewing a single comment's thread
view the rest of the comments
[-] anton@lemmy.blahaj.zone 4 points 4 months ago

Rust doesn't have a scheduler.
The issue is the false assumption, that the remove operation can safely be done without taking a lock. This can be done in some specific data structures using atomic operations, but here the solution was to just take the lock. The same thing could have happened in a C code base but without the unsafe block indicating where to look for the bug.

this post was submitted on 18 Dec 2025
-17 points (43.3% liked)

Programmer Humor

31215 readers
691 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS