mirror of
https://github.com/servo/servo.git
synced 2025-06-13 02:44:29 +00:00
Remove mutex from Trusted
Use weak references rather than message passing to garbage-collect dead references.
This commit is contained in:
parent
d37d4d697a
commit
6a271b0527
5 changed files with 54 additions and 91 deletions
|
@ -31,7 +31,7 @@ use dom::bindings::global::GlobalRef;
|
|||
use dom::bindings::inheritance::Castable;
|
||||
use dom::bindings::js::{JS, MutNullableHeap, Root, RootCollection};
|
||||
use dom::bindings::js::{RootCollectionPtr, RootedReference};
|
||||
use dom::bindings::refcounted::{LiveDOMReferences, Trusted};
|
||||
use dom::bindings::refcounted::Trusted;
|
||||
use dom::bindings::reflector::Reflectable;
|
||||
use dom::bindings::str::DOMString;
|
||||
use dom::bindings::trace::JSTraceable;
|
||||
|
@ -948,8 +948,6 @@ impl ScriptThread {
|
|||
runnable.handler()
|
||||
}
|
||||
}
|
||||
MainThreadScriptMsg::Common(CommonScriptMsg::RefcountCleanup(addr)) =>
|
||||
LiveDOMReferences::cleanup(addr),
|
||||
MainThreadScriptMsg::Common(CommonScriptMsg::CollectReports(reports_chan)) =>
|
||||
self.collect_reports(reports_chan),
|
||||
MainThreadScriptMsg::DOMManipulation(task) =>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue