On Tue Mar 19 00:33:51 2024 +0000, Zebediah Figura wrote:
It wouldn't surprise me if some global objects can't be deleted, but at the same time, relying on that is... maybe not fragile per se, but obscure. This patch seems simple and declarative.
Being able to make system objects temporary is not a bug; in fact I have been able to successfully mark `` as temporary (and then back to permanent), and Windows allows you to actually delete other system objects this way.
However, a handful of system objects cannot be deleted this way because they still retain refcount (presumably via global references) even after it's made temporary. An example is the root directory. Wineserver doesn't have such behavior, which makes it possible to delete everything.
The main intention of this patch is to prevent future regressions in this aspect, rather than fixing a known bug.