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_thread.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_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index e3051a0f8c2..b0b55eeb43a 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -521,8 +521,6 @@ impl<'a> Iterator for DocumentsIter<'a> { pub struct IncompleteParserContexts(RefCell<Vec<(PipelineId, ParserContext)>>); unsafe_no_jsmanaged_fields!(TaskQueue<MainThreadScriptMsg>); -unsafe_no_jsmanaged_fields!(dyn BackgroundHangMonitorRegister); -unsafe_no_jsmanaged_fields!(dyn BackgroundHangMonitor); #[derive(JSTraceable)] // ScriptThread instances are rooted on creation, so this is okay @@ -552,8 +550,10 @@ pub struct ScriptThread { task_queue: TaskQueue<MainThreadScriptMsg>, /// A handle to register associated layout threads for hang-monitoring. + #[no_trace] background_hang_monitor_register: Box<dyn BackgroundHangMonitorRegister>, /// The dedicated means of communication with the background-hang-monitor for this script-thread. + #[no_trace] background_hang_monitor: Box<dyn BackgroundHangMonitor>, /// A flag set to `true` by the BHM on exit, and checked from within the interrupt handler. closing: Arc<AtomicBool>, |