On Tue Jul 18 09:11:52 2023 +0000, Jacek Caban wrote:
This is also not safe, something like `while (!list_empty( list )) { ... }` would take care of it.
To keep `has_weak_refs` in sync and avoid pointless lookup overhead when there's no weak refs, `remove_weakmap_entry` removes the list when it's the only entry in the list, so I can't check the list.
But obviously, I can just check `has_weak_refs` and I'll do just that.