servo/components/layout_thread
Michael Howell 5f320bd2ca Make FlowRef a newtype
This creates a sharp distinction between `Arc<Flow>`s, which may be
owned by anyone, and `FlowRef`s, which may only be owned by the
traversal code. By checking the reference count, we ensure that a `Flow`
cannot be pointed to by `Arc`s and `FlowRef`s simultaneously.

This is not a complete fix for #6503, though it is a necessary start
(enforcing the no-aliasing rule of `FlowRef::deref_mut` will require far
more work).

Fixes #14014
2016-11-04 13:36:04 -07:00
..
Cargo.toml Use heapsize_derive instead of heapsize_plugin 2016-11-03 01:10:32 +01:00
lib.rs Make FlowRef a newtype 2016-11-04 13:36:04 -07:00