diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2019-05-10 23:51:12 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-10 23:51:12 -0400 |
commit | d9559499b22bb4724f9b6108919f8d24bdbc83d9 (patch) | |
tree | 692e26002cd8afe36e8ab6679d929be11e58a0af /components/script/dom/worklet.rs | |
parent | 887f43b65bacad5490365f14d54bf25af4d3234b (diff) | |
parent | 7c1c1d9af4735ae86968d65d78b981b7c14585f3 (diff) | |
download | servo-d9559499b22bb4724f9b6108919f8d24bdbc83d9.tar.gz servo-d9559499b22bb4724f9b6108919f8d24bdbc83d9.zip |
Auto merge of #23163 - jdm:smup66, r=asajeffrey
Upgrade to SpiderMonkey 66
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23163)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/worklet.rs')
-rw-r--r-- | components/script/dom/worklet.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/worklet.rs b/components/script/dom/worklet.rs index a7611517d13..569af7fd184 100644 --- a/components/script/dom/worklet.rs +++ b/components/script/dom/worklet.rs @@ -46,7 +46,7 @@ use dom_struct::dom_struct; use js::jsapi::JSGCParamKey; use js::jsapi::JSTracer; use js::jsapi::JS_GetGCParameter; -use js::jsapi::JS_GC; +use js::jsapi::{GCReason, JS_GC}; use msg::constellation_msg::PipelineId; use net_traits::request::Destination; use net_traits::request::RequestBuilder; @@ -568,7 +568,7 @@ impl WorkletThread { self.current_memory_usage(), self.gc_threshold ); - unsafe { JS_GC(self.runtime.cx()) }; + unsafe { JS_GC(self.runtime.cx(), GCReason::API) }; self.gc_threshold = max(MIN_GC_THRESHOLD, self.current_memory_usage() * 2); debug!( "END GC (usage = {}, threshold = {}).", |