Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upScriptTask::mouse_over_targets is not traced #4985
Comments
|
I want to take it, may you describe more, please. |
|
We need to make a few changes:
|
|
thank you, i'll do it |
Depends on servo#4620
|
Is'it right? |
|
Hmm, I suppose it might be possible to use a RootedVec in the future, but I would feel more comfortable if all of ScriptTask was guaranteed to be traced. Instead of a separate struct and rooting collections, I would prefer to store an As for testing it, there should definitely be a final GC that occurs at shutdown, but you can also force one by adding |
|
Look it, please, like that? |
|
Yes, adding the removal to the destructor would be great. Also there are a couple issues with the latest code:
|
|
when i tried window.gc(), i got thread 'ScriptTask' panicked at 'DOMRefCell<T> already mutably borrowed', /home/jiojiajiu/workspace/opensource/servo/components/script/dom/bindings/cell.rs:125
stack backtrace:
1: 0x7fc1ab136f90 - sys::backtrace::write::ha4a9415e174db438Rsy
2: 0x7fc1ab14bf70 - failure::on_fail::hac5db0a0a6a39fd6LWF
3: 0x7fc1ab11b380 - rt::unwind::begin_unwind_inner::h6e98ac6f3dbe1e23iBF
4: 0x7fc1a9e14780 - rt::unwind::begin_unwind::h7826163975826071217
5: 0x7fc1aa4260e0 - dom::bindings::cell::DOMRefCell<T>::borrow::h18387299031793431724
6: 0x7fc1aa426030 - dom::bindings::cell::DOMRefCell<T>.JSTraceable::trace::h1428091579037181142
7: 0x7fc1aa418400 - script_task::ScriptTask...dom..bindings..trace..JSTraceable::trace::he65a819eed4069ebvuG
8: 0x7fc1aa417d20 - script_task::trace_script_tasks::closure.89239
9: 0x7fc1aa417800 - thread_local::Key<T>::with::h12470583157952388181
10: 0x7fc1aa4177a0 - script_task::trace_script_tasks::__rust_abiThe problem in implementation trace for fields? 192 /// A handle to the information pertaining to page layout
193 page: DOMRefCell<Rc<Page>>, The script task has some DOMRefCell struct, what is the right workflow and tool for debug? gdb? |
|
That was fixed two hours ago by #5131 :) |
That's kind of bad, and if we had the lint that picked up
Vec<JS<T>>we would have caught this before now.