- From: Anne van Kesteren <notifications@github.com>
- Date: Thu, 09 Feb 2023 07:49:07 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 9 February 2023 15:49:20 UTC
Well, although we don't always do a good job at this, we do need to describe relationships between objects in a way that allows GC to eventually succeed. And I don't think we should accept "agent lifetime" as a way out, although sometimes that is acceptable. I hadn't looked at the GC section here yet, I was hoping @smaug---- could take a look at that. But now that I have: * Strong references are implied so don't need to be stated. * That something is a weak reference should be mentioned as part of the definition, not in a separate section. * The GC section should mainly state when something can be GC'd or ideally what prevents GC when GC would otherwise be possible. https://xhr.spec.whatwg.org/#garbage-collection is an example of that, although I think there's been a suggestion that user agents will never collect when the connection is still open either, so maybe that should be a must not instead. (I hope that at some point JS/IDL formalize some of these aspects better so we can ground terminology like "weak reference" in terms of a larger web platform memory model.) -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/pull/1152#issuecomment-1424411085 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/dom/pull/1152/c1424411085@github.com>
Received on Thursday, 9 February 2023 15:49:20 UTC