On 12/6/13 2:59 PM, Niko Matsakis wrote:
This is not necessarily the case -- creating a new kind of GCThing is
rather hard, and wrapping in an object is heavyweight compared to
allocating a data structure on the stack.

Data structures on the stack should be traced with a CustomAutoRooter, in my opinion. That's what Gecko's WebIDL bindings use for dictionaries and sequences and whatnot.

At least assuming we can create a CustomAutoRooter subclass with a vtable and the like in Rust...

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

Reply via email to