diff options
author | Samson <16504129+sagudev@users.noreply.github.com> | 2023-08-10 23:46:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-10 21:46:06 +0000 |
commit | 450f8193a567ac6e5acd84e89fe73ed7ce137a78 (patch) | |
tree | 1c8418988d54fc4122d14218275927a523058413 /components/script/script_runtime.rs | |
parent | 1f7f4cf2bedd1819ae129c2ac327425a756b5299 (diff) | |
download | servo-450f8193a567ac6e5acd84e89fe73ed7ce137a78.tar.gz servo-450f8193a567ac6e5acd84e89fe73ed7ce137a78.zip |
Use mozjs tracing infrastructure (#29918)
* Update mozjs
https://github.com/servo/mozjs/commit/64711ec2e6dc4595df691bffc7f1e5052ab86c8d also fixes https://github.com/servo/servo/issues/30043
* Move to mozjs Traceable and introduce CustomTraceable
Diffstat (limited to 'components/script/script_runtime.rs')
-rw-r--r-- | components/script/script_runtime.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/script/script_runtime.rs b/components/script/script_runtime.rs index 709b2891306..6dc1e24fd7c 100644 --- a/components/script/script_runtime.rs +++ b/components/script/script_runtime.rs @@ -22,7 +22,7 @@ use crate::dom::bindings::refcounted::{Trusted, TrustedPromise}; use crate::dom::bindings::reflector::DomObject; use crate::dom::bindings::root::trace_roots; use crate::dom::bindings::settings_stack; -use crate::dom::bindings::trace::{trace_traceables, JSTraceable}; +use crate::dom::bindings::trace::JSTraceable; use crate::dom::bindings::utils::DOM_CALLBACKS; use crate::dom::event::{Event, EventBubbles, EventCancelable, EventStatus}; use crate::dom::eventtarget::EventTarget; @@ -825,7 +825,6 @@ unsafe extern "C" fn trace_rust_roots(tr: *mut JSTracer, _data: *mut os::raw::c_ } debug!("starting custom root handler"); trace_thread(tr); - trace_traceables(tr); trace_roots(tr); trace_refcounted_objects(tr); settings_stack::trace(tr); |