|
On 25/07/2014 1:27 PM, Jonathan S.
Shapiro wrote:
I disagree somewhat about the simplest model. I'm not aware of any GC model in which release is guaranteed to be prompt for non-memory resources. If nothing else you can end up with a bug that preserves a reachable cycle, and that stuff will never get released. This is true of memory too. The GC has to conservatively assume that programs keep alive objects that they need (although there has been work on GCs that infer whether a program *will* use objects, and frees ones that won't ever be accessed again). Furthermore, a prompt release GC model for any kind of resource is trivial: perform trial deletion on every decrement. It's not efficient though, like I initially said. Sandro |
_______________________________________________ bitc-dev mailing list [email protected] http://www.coyotos.org/mailman/listinfo/bitc-dev
