3 ms·
Yeah that's certainly possible but leaking a pointer like this seems like it would be really easy to spot?
by dnautics 10mo ago
Yeah that's certainly possible but leaking a pointer like this seems like it would be really easy to spot?
- dwattttt 10mo agoIt's harder than you'd expect. Depending on what kind of bucketing an arena does (by size or by type), a stale reference may end up pointing to another piece of memory of the correct type, which is still wrong, but more subtly than a crash.
- dnautics 9mo agoLook at the architecture of lightpanda and come back with a response.
- dwattttt 9mo agoI'm not familiar enough with Zig to want to dive into architecture, the point I wanted to make is general to arenas in any language that can have a stale reference. I once had a stale stack reference bug in C that lived for a year, because the exact same object was created at the exact same offset every time it was used, which is a similar situation.