3 ms·
There exist runtimes that use reference counting and mark/sweep together. Mark/sweep is used to collect cycles that reference counting misses. PHP and Firefox's
by ghusbands 7y ago
There exist runtimes that use reference counting and mark/sweep together. Mark/sweep is used to collect cycles that reference counting misses. PHP and Firefox's XPCOM both turn up in a google search for Cycle Collector.
Maybe Swift will gain it, one day.
- chrisseaton 7y agoAll serious GCs end up being a combination of reference counting and tracing, given enough time.
- abalone 7y ago> Maybe Swift will gain it, one day. Maybe not. “We have discussed in the passed using hybrid approaches like introducing a cycle collector, which runs less frequently than a GC would. The problem with this is that if you introduce a cycle collector, code will start depending on it. In time you end up with some libraries/packages that works without GC, and others that leak without it (the D community has relevant experience here). As such, we have come to think that adding a cycle collector would be bad for the Swift community in the large.”[1] [1] https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20160208/009422.html https://lists.swift.org/pipermail/swift-evolution/Week-of-Mo...