Page MenuHomeWildfire Games

Fix JS OOM in tests following rP24180
ClosedPublic

Authored by wraitii on Nov 14 2020, 3:41 PM.

Details

Summary

rP24180 made ScriptInterface not recreate a new JSContext since it becomes a compartment wrapper, but that means we need to GC tests or they might OOM.

To make it mostly seamless, GC on any test setup. The JS tests are pretty close to the 16Mb limit as it stands so GC them manually too, for good measure.

Refs #4893

Test Plan

Run tests.

Diff Detail

Repository
rP 0 A.D. Public Repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

wraitii created this revision.Nov 14 2020, 3:41 PM

Build was aborted.

builderr-debug-gcc6.txt
make[1]: *** [obj/test_Debug/test_TextureManager.o] Terminated
make: *** [test] Terminated

Link to build: https://jenkins.wildfiregames.com/job/docker-differential/3536/display/redirect

wraitii updated this revision to Diff 13913.Nov 14 2020, 3:52 PM

Correct rebase

wraitii requested review of this revision.Nov 14 2020, 4:11 PM
This revision was not accepted when it landed; it landed in state Needs Review.Nov 14 2020, 4:14 PM
This revision was automatically updated to reflect the committed changes.