To help ensure that tests runs always produce the same output, we can remove timing related behaviour from the GC when JS_MORE_DETERMINISTIC is defined.
There are three ways GC is affected by time:
- ReleaseObservedTypes called in the sweep phase triggers every 60 seconds
- MaybeGC triggers a full GC every 20 seconds (not called from the shell)
- incremental GC budgets where explicitly requested
The proposal is to make the first two only conditional on this macro being not defined.
Created attachment 638308 [details] [diff] [review]
Make timing related stuff in jsgc.cpp conditional