Bug 1477566 - Avoid recording events in SliceBudget::UnlimitedDeadline, r=sfink.

--HG--
extra : rebase_source : 463699491f3475ae928a6d700302ad2a9014b57d
This commit is contained in:
Brian Hackett 2018-07-23 21:57:20 +00:00
parent ecde232f88
commit e77cc309c4

View File

@ -38,6 +38,7 @@ struct JS_PUBLIC_API(WorkBudget)
class JS_PUBLIC_API(SliceBudget)
{
const mozilla::TimeStamp &UnlimitedDeadline() const {
mozilla::recordreplay::AutoPassThroughThreadEvents pt;
static const mozilla::TimeStamp unlimitedDeadline =
mozilla::TimeStamp::Now() + mozilla::TimeDuration::Forever();
return unlimitedDeadline;