On 10/30/13 4:31 PM, Robert O'Callahan wrote:
RWarcs are worse. However, tasks that share a RWarc can't generally fail independently, I assume. So one possibility is to group tasks into units of failure, require that RWarcs can only be shared within such units, and account for memory usage at failure-unit granularity.
Yeah, something like that could work. Incidentally RWarcs are quite rare. Off the top of my head I don't think we use a single one in Servo. (Though we'll probably need a couple, e.g. the interning table, which will likely actually be a concurrent hashmap of some sort instead of a RWarc.)
Patrick _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
