On Fri Jul 3 09:48:12 2026 +0000, Rémi Bernon wrote:
It's not specified, but I believe it does in practice. The wglShareLists tests pretty much rely on that behavior and it passes on both AMD/NV on Windows. That doesn't mean that it will be the case on Linux or other platforms, but I believe it's the case nonetheless. Mesa also implements name allocation in a way that has the same characteristic. We can keep the rb_tree if you think it's better not to assume that, it was mostly an optimization to avoid looking up the entry twice when trying to replace a previous value. It would be nice to have rb_put able to swap values instead of failing if it's already there. Yes, that doesn't seem like something we should depend on, those kinds of dependencies tend to cause hard to reproduce issues. We could introduce a replacing variant of rb_put, though I wouldn't expect it to make a measurable performance difference in this case.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/11226#note_144902