Bug 1477566 - Avoid recording events in SliceBudget::UnlimitedDeadline, r=sfink.
authorBrian Hackett <bhackett1024@gmail.com>
Mon, 23 Jul 2018 21:57:20 +0000
changeset 428121 cbee873889b50a9643b8c8a751f07e53205aef9c
parent 428120 9af637ffd0471c1a3c7b56d6efdf5863efd80cd4
child 428122 aa577f54b222917c77f65bb16215c9d91221098f
push id34327
push userarchaeopteryx@coole-files.de
push dateWed, 25 Jul 2018 14:18:02 +0000
treeherdermozilla-central@fa78cd1a6880 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssfink
bugs1477566
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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();