mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Resume tracing our collections of roots.
The second JS_SetExtraGCRootsTracer call clobbered the first, so trace_collections was no longer being called.
This commit is contained in:
parent
ec417a84b1
commit
d46db6d7f1
2 changed files with 5 additions and 4 deletions
|
@ -428,7 +428,7 @@ impl<T> DerefMut for RootedVec<T> {
|
|||
|
||||
|
||||
/// SM Callback that traces the rooted collections
|
||||
pub unsafe extern fn trace_collections(tracer: *mut JSTracer, _data: *mut libc::c_void) {
|
||||
pub unsafe fn trace_collections(tracer: *mut JSTracer) {
|
||||
ROOTED_COLLECTIONS.with(|ref collections| {
|
||||
let collections = collections.borrow();
|
||||
collections.trace(tracer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue