Options "--watchdog=1000 --watchdog-exception-ok" suppose to let jsc terminate a hanging Javascript program with a time out 1000ms. However, the options fail on this example with a ToT build. ``` function foo(a) { 'use strict'; return foo(a, 0); } foo(1); ```
Looks like global common subexpression elimination eliminated an InvalidationPoint. That's the reason the watchdog wasn't able to terminate the script.
We added a --usePollingTraps=true option to stress test call-link-info-osrexit-repatch.js as a workaround. We should remove that once we fix this problem.
<rdar://problem/96239507>