mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Make RootedVec/RootCollection #[no_move]; improve code (fixes #5737)
This commit is contained in:
parent
dcb0a0eab6
commit
369a568264
7 changed files with 8 additions and 8 deletions
|
@ -577,6 +577,7 @@ impl<T: Assignable<U>, U: Reflectable> TemporaryPushable<T> for Vec<JS<U>> {
|
|||
///
|
||||
/// See also [*Exact Stack Rooting - Storing a GCPointer on the CStack*]
|
||||
/// (https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Internals/GC/Exact_Stack_Rooting).
|
||||
#[no_move]
|
||||
pub struct RootCollection {
|
||||
roots: UnsafeCell<RootedVec<*mut JSObject>>,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue