On Sun, Feb 17, 2013 at 7:26 PM, Patrick Walton <pwal...@mozilla.com> wrote:

> On 2/17/13 3:16 AM, smaug wrote:
>
>> Curious, how does GC manage nodes? Do we explicitly trace even those
>> nodes which don't have js wrappers or do
>> we just use GC for everything in Rust?
>>
>
> All the nodes in Servo have JS wrappers at the moment, and their lifetimes
> are managed by the JS garbage collector. The JS garbage collector traces
> all nodes. The Rust garbage collector isn't really involved as far as DOM
> nodes are concerned.
>

Lazily creating wrappers may be something that we will want to keep memory
usage down.

- Kyle
_______________________________________________
dev-servo mailing list
dev-servo@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-servo

Reply via email to