aboutsummaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2025-01-09 03:49:59 -0500
committerGitHub <noreply@github.com>2025-01-09 08:49:59 +0000
commit3d1b7f8f06c7d7e43f35af4832051e529004567c (patch)
tree4b6234b59188bf8805674649d5b68f46eb4afcc4 /components
parentceec1759f60d436add95d9076d8d45e515e85e59 (diff)
downloadservo-3d1b7f8f06c7d7e43f35af4832051e529004567c.tar.gz
servo-3d1b7f8f06c7d7e43f35af4832051e529004567c.zip
script: Downgrade noisy debug logs. (#34914)
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
Diffstat (limited to 'components')
-rw-r--r--components/script/dom/bindings/refcounted.rs6
-rw-r--r--components/script/dom/bindings/root.rs2
-rw-r--r--components/script/script_runtime.rs4
-rw-r--r--components/script/script_thread.rs2
4 files changed, 7 insertions, 7 deletions
diff --git a/components/script/dom/bindings/refcounted.rs b/components/script/dom/bindings/refcounted.rs
index d0a2ea9dffe..97a181f1c2f 100644
--- a/components/script/dom/bindings/refcounted.rs
+++ b/components/script/dom/bindings/refcounted.rs
@@ -265,7 +265,7 @@ impl LiveDOMReferences {
let capacity = table.capacity();
let len = table.len();
if (0 < capacity) && (capacity <= len) {
- info!("growing refcounted references by {}", len);
+ trace!("growing refcounted references by {}", len);
remove_nulls(&mut table);
table.reserve(len);
}
@@ -294,7 +294,7 @@ fn remove_nulls<K: Eq + Hash + Clone, V>(table: &mut HashMap<K, Weak<V>>) {
.filter(|&(_, value)| Weak::upgrade(value).is_none())
.map(|(key, _)| key.clone())
.collect();
- info!("removing {} refcounted references", to_remove.len());
+ trace!("removing {} refcounted references", to_remove.len());
for key in to_remove {
table.remove(&key);
}
@@ -303,7 +303,7 @@ fn remove_nulls<K: Eq + Hash + Clone, V>(table: &mut HashMap<K, Weak<V>>) {
/// A JSTraceDataOp for tracing reflectors held in LIVE_REFERENCES
#[allow(crown::unrooted_must_root)]
pub unsafe fn trace_refcounted_objects(tracer: *mut JSTracer) {
- info!("tracing live refcounted references");
+ trace!("tracing live refcounted references");
LIVE_REFERENCES.with(|r| {
let r = r.borrow();
let live_references = r.as_ref().unwrap();
diff --git a/components/script/dom/bindings/root.rs b/components/script/dom/bindings/root.rs
index 6ca8a5f9cee..c934dae7fbf 100644
--- a/components/script/dom/bindings/root.rs
+++ b/components/script/dom/bindings/root.rs
@@ -299,7 +299,7 @@ impl RootCollection {
/// SM Callback that traces the rooted reflectors
pub unsafe fn trace_roots(tracer: *mut JSTracer) {
- debug!("tracing stack roots");
+ trace!("tracing stack roots");
STACK_ROOTS.with(|collection| {
let collection = &*(*collection.get().unwrap()).roots.get();
for root in collection {
diff --git a/components/script/script_runtime.rs b/components/script/script_runtime.rs
index 28241117744..f02ec3f4c04 100644
--- a/components/script/script_runtime.rs
+++ b/components/script/script_runtime.rs
@@ -892,12 +892,12 @@ unsafe extern "C" fn trace_rust_roots(tr: *mut JSTracer, _data: *mut os::raw::c_
if !THREAD_ACTIVE.with(|t| t.get()) {
return;
}
- debug!("starting custom root handler");
+ trace!("starting custom root handler");
trace_thread(tr);
trace_roots(tr);
trace_refcounted_objects(tr);
settings_stack::trace(tr);
- debug!("done custom root handler");
+ trace!("done custom root handler");
}
#[allow(unsafe_code)]
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs
index 6587c604d8b..74c63bf1ebc 100644
--- a/components/script/script_thread.rs
+++ b/components/script/script_thread.rs
@@ -176,7 +176,7 @@ pub(crate) fn with_script_thread<R: Default>(f: impl FnOnce(&ScriptThread) -> R)
/// or else the garbage collector may end up collecting objects that are still reachable.
pub unsafe fn trace_thread(tr: *mut JSTracer) {
with_script_thread(|script_thread| {
- debug!("tracing fields of ScriptThread");
+ trace!("tracing fields of ScriptThread");
script_thread.trace(tr);
})
}