Files
ghostty/src
Mitchell Hashimoto c2906398be terminal: fix living item over-count in RefCountedSet.addWithId (#14081)
Reported in https://github.com/ghostty-org/ghostty/discussions/14064

I validated this myself manually. The zero-ref branch of
`addWithIdContext` incremented `living` unconditionally even if `upsert`
resolved the value to an item that was already alive under a different
ID.

This would cause `living` to be invalid for each time this happened and
the downstream effect was that `count()` drifted. I couldn't find any
crashing or invalid effect except that this caused requested style
memory to be over-provisioned.

cc @qwerasd205 since its ref counted set, but I did this work manually
❤️
2026-08-31 10:14:12 -07:00
..
2026-08-30 02:34:21 -06:00
2026-03-15 20:58:43 -04:00
2026-08-20 13:32:30 -07:00
2025-10-03 18:52:26 +02:00
2026-07-21 17:19:16 -07:00
2025-11-27 13:37:53 -08:00
2026-08-03 20:10:19 -07:00
2026-07-21 12:35:05 -07:00
2026-07-21 17:19:16 -07:00
2026-07-21 12:35:05 -07:00
2026-07-21 17:19:16 -07:00
2026-07-21 17:19:16 -07:00
2024-08-16 14:35:10 -07:00
2026-07-21 17:19:16 -07:00
2022-08-18 11:42:32 -07:00
2026-03-20 10:37:42 -05:00
2026-07-21 12:35:05 -07:00
2026-08-31 15:07:11 +03:00
2026-07-21 12:35:05 -07:00