Don't assert when we do a rule tree GC and the root nodes still has strong references.

It could still have children.
This commit is contained in:
Cameron McCormack 2016-11-21 17:04:58 +08:00
parent 226c946817
commit d92cc8ecd0

View file

@ -440,8 +440,7 @@ impl StrongRuleNode {
// script.
debug_assert!(!thread_state::get().is_worker() &&
(thread_state::get().is_layout() ||
(thread_state::get().is_script() &&
me.refcount.load(Ordering::SeqCst) == 0)));
thread_state::get().is_script()));
let current = me.next_free.load(Ordering::SeqCst);
if current == FREE_LIST_SENTINEL {