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:
Ms2ger 2015-04-10 12:56:46 +02:00
parent ec417a84b1
commit d46db6d7f1
2 changed files with 5 additions and 4 deletions

View file

@ -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);