Closed
Bug 1296358
Opened 8 years ago
Closed 8 years ago
Force a JS GC in between reftests
Categories
(Testing :: Reftest, defect)
Testing
Reftest
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1292218
People
(Reporter: mchang, Assigned: mchang)
Details
Attachments
(1 file)
2.45 KB,
patch
|
Details | Diff | Splinter Review |
With Skia content on windows, on some reftest suits, the tests would occasionally out of memory and not be able to allocate a surface to render content into. Locally when running tests, I would see spikes from ~200mb to 1 gig before the GC would kick in and bring the memory usage back down to 200mb. This was rather variable as sometimes the spike would be 1 gig, sometimes 500 mb, sometimes 800mb. Instead of having random reftests fail due to OOM, let's GC in between some number of reftests.
Please coordinate with those working on bug 1292218.
Flags: needinfo?(mchang)
Assignee | ||
Comment 3•8 years ago
|
||
Here's a try push with skia content on windows (so not quite there yet) showing the reftests not always failing - https://treeherder.mozilla.org/#/jobs?repo=try&revision=7b875a2b2aa9&selectedJob=25792231 Here's what it was before this patch - https://treeherder.mozilla.org/#/jobs?repo=try&revision=81ef9ee53cd0&selectedJob=25423084 Here is a try push with only this patch on all platforms (should be ready in a couple of hours hopefully) = https://treeherder.mozilla.org/#/jobs?repo=try&revision=ba74ad510d76
Flags: needinfo?(mchang)
Comment 4•8 years ago
|
||
Does my patch work instead? I don't really like forcing a full GC all the time if we can avoid it, because then we aren't actually testing incremental collection in reftests.
Comment 5•8 years ago
|
||
Comment on attachment 8782535 [details] [diff] [review] Run the JS GC every 10 reftests Review of attachment 8782535 [details] [diff] [review]: ----------------------------------------------------------------- while this patch looks great technically- i think there is concern over doing this vs other efforts, lets resolve those concerns first.
Attachment #8782535 -
Flags: review?(jmaher)
Comment 6•8 years ago
|
||
This is basically the same thing as bug 1292218
Comment 7•8 years ago
|
||
Let me know if bug 1292218 doesn't suffice to fix the OOMs you are seeing.
You need to log in
before you can comment on or make changes to this bug.
Description
•