Bug 1288564 - Baldr: change HeapPtr to ReadBarriered in WeakCache (r=terrence)

MozReview-Commit-ID: 722L1GFAo6c

--HG--
extra : rebase_source : 867c492d7114bad15414c6b671888f0ad263e478
This commit is contained in:
Luke Wagner 2016-07-21 19:26:42 -05:00
Родитель c87ae9e0a0
Коммит f58ed6912f
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -517,8 +517,8 @@ struct JSCompartment
mozilla::LinkedList<js::UnboxedLayout> unboxedLayouts;
// All wasm live instances in the compartment.
using WasmInstanceObjectSet = js::GCHashSet<js::HeapPtr<js::WasmInstanceObject*>,
js::MovableCellHasher<js::HeapPtr<js::WasmInstanceObject*>>,
using WasmInstanceObjectSet = js::GCHashSet<js::ReadBarriered<js::WasmInstanceObject*>,
js::MovableCellHasher<js::ReadBarriered<js::WasmInstanceObject*>>,
js::SystemAllocPolicy>;
JS::WeakCache<WasmInstanceObjectSet> wasmInstances;