Closed Bug 1296358 Opened 8 years ago Closed 8 years ago

Force a JS GC in between reftests

Categories

(Testing :: Reftest, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1292218

People

(Reporter: mchang, Assigned: mchang)

Details

Attachments

(1 file)

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.
Thanks!
Attachment #8782535 - Flags: review?(jmaher)
Please coordinate with those working on bug 1292218.
Flags: needinfo?(mchang)
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)
See Also: → 1292218
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 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)
This is basically the same thing as bug 1292218
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
See Also: 1292218
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.

Attachment

General

Created:
Updated:
Size: