Bug 1477566 - Avoid recording events in SliceBudget::UnlimitedDeadline, r=sfink.
authorBrian Hackett <bhackett1024@gmail.com>
Mon, 23 Jul 2018 21:57:20 +0000
changeset 822123 cbee873889b50a9643b8c8a751f07e53205aef9c
parent 822122 9af637ffd0471c1a3c7b56d6efdf5863efd80cd4
child 822124 aa577f54b222917c77f65bb16215c9d91221098f
push id117296
push userbmo:gl@mozilla.com
push dateTue, 24 Jul 2018 20:28:07 +0000
reviewerssfink
bugs1477566
milestone63.0a1
Bug 1477566 - Avoid recording events in SliceBudget::UnlimitedDeadline, r=sfink.
js/public/SliceBudget.h
--- a/js/public/SliceBudget.h
+++ b/js/public/SliceBudget.h
@@ -33,16 +33,17 @@ struct JS_PUBLIC_API(WorkBudget)
  * This class records how much work has been done in a given collection slice,
  * so that we can return before pausing for too long. Some slices are allowed
  * to run for unlimited time, and others are bounded. To reduce the number of
  * gettimeofday calls, we only check the time every 1000 operations.
  */
 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;
     }
 
     static const intptr_t unlimitedStartCounter = INTPTR_MAX;
 
     bool checkOverBudget();