On Mon, 22 Dec 2025, RVP wrote:
1. why there is used both __destructor__ and atexit(3) in Mesa's context.cProlly going belt-and-suspenders because of all the above reasons.
Actually, that is NetBSD-added code from way back: https://github.com/NetBSD/xsrc/commit/eabf4f72bd144ce7a1702762e8b5147de1958b79#diff-a0dcc7bcb9c33bd013a4153c8cd470db8ca00250a5aa01a1d8350f8b8df5cac2 https://github.com/NetBSD/xsrc/commit/d63b28c10f190a6db70dcf0ec4a2b5e182cd4a7c#diff-a0dcc7bcb9c33bd013a4153c8cd470db8ca00250a5aa01a1d8350f8b8df5cac2 -RVP
