mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update to SpiderMonkey 66.
This commit is contained in:
parent
d0d3401361
commit
4328713f71
31 changed files with 150 additions and 144 deletions
|
@ -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 = {}).",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue