Auto merge of #23340 - asajeffrey:gc-threshold-parameters-are-percentages, r=jdm

Express GC thresholds as percentages

<!-- Please describe your changes on the following line: -->

According to https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetGCParameter, the GC thresholds are percentages.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #23076
- [X] These changes do not require tests because we don't test prefs.json

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- 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/23340)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2019-05-08 19:09:43 -04:00 committed by GitHub
commit cfe64a2635
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,8 +42,8 @@
"js.ion.enabled": true,
"js.ion.offthread_compilation.enabled": true,
"js.ion.unsafe_eager_compilation.enabled": false,
"js.mem.gc.allocation_threshold_avoid_interrupt_factor": 1,
"js.mem.gc.allocation_threshold_factor": 1,
"js.mem.gc.allocation_threshold_avoid_interrupt_factor": 100,
"js.mem.gc.allocation_threshold_factor": 100,
"js.mem.gc.allocation_threshold_mb": 30,
"js.mem.gc.compacting.enabled": true,
"js.mem.gc.decommit_threshold_mb": 32,