Bug 988706 - Fix bogus assert in ForkJoin. (r=lth in person)
authorShu-yu Guo <shu@rfrn.org>
Thu, 27 Mar 2014 10:22:55 -0700
changeset 175664 f2c60695a6e94d19ba35bb15598af9d61c79a1c1
parent 175663 e04599ab2ee3c149b49e48a716a502b54f6ba1c9
child 175665 08032b8280c60a681a0c2c57a65c259ee76b3c44
push id26496
push userkwierso@gmail.com
push dateFri, 28 Mar 2014 02:28:34 +0000
treeherdermozilla-central@3c09159e01da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslth
bugs988706
milestone31.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 988706 - Fix bogus assert in ForkJoin. (r=lth in person)
js/src/vm/ForkJoin.cpp
--- a/js/src/vm/ForkJoin.cpp
+++ b/js/src/vm/ForkJoin.cpp
@@ -512,17 +512,17 @@ js::ForkJoin(JSContext *cx, CallArgs &ar
 
     RootedFunction fun(cx, &args[0].toObject().as<JSFunction>());
     uint16_t sliceStart = (uint16_t)(args[1].toInt32());
     uint16_t sliceEnd = (uint16_t)(args[2].toInt32());
     ForkJoinMode mode = (ForkJoinMode)(args[3].toInt32());
 
     MOZ_ASSERT(sliceStart == args[1].toInt32());
     MOZ_ASSERT(sliceEnd == args[2].toInt32());
-    MOZ_ASSERT(sliceStart < sliceEnd);
+    MOZ_ASSERT(sliceStart <= sliceEnd);
 
     ForkJoinOperation op(cx, fun, sliceStart, sliceEnd, mode);
     ExecutionStatus status = op.apply();
     if (status == ExecutionFatal)
         return false;
 
     switch (mode) {
       case ForkJoinModeNormal: