Bug 1520343 - Pass through events when choosing random addresses for memory allocation, r=ehoogeveen.
authorBrian Hackett <bhackett1024@gmail.com>
Tue, 15 Jan 2019 13:18:32 -1000
changeset 511310 adb2bf52cba2bd1c0093396a6b7d32fced5e6066
parent 511309 3c6af4081f3a1494e47daed014cfc65d784cc208
child 511311 a441a085b516820f5e75c8d788a5a4dd5a6c4684
push id10547
push userffxbld-merge
push dateMon, 21 Jan 2019 13:03:58 +0000
treeherdermozilla-beta@24ec1916bffe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehoogeveen
bugs1520343
milestone66.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 1520343 - Pass through events when choosing random addresses for memory allocation, r=ehoogeveen.
js/src/gc/Memory.cpp
--- a/js/src/gc/Memory.cpp
+++ b/js/src/gc/Memory.cpp
@@ -258,16 +258,17 @@ static inline uint64_t GetNumberInRange(
   const uint64_t MaxRand = UINT64_C(0xffffffffffffffff);
   maxNum -= minNum;
   uint64_t binSize = 1 + (MaxRand - maxNum) / (maxNum + 1);
 
   uint64_t rndNum;
   do {
     mozilla::Maybe<uint64_t> result;
     do {
+      mozilla::recordreplay::AutoPassThroughThreadEvents pt;
       result = mozilla::RandomUint64();
     } while (!result);
     rndNum = result.value() / binSize;
   } while (rndNum > maxNum);
 
   return minNum + rndNum;
 }