Bug 854400 - Disable double conversion in parallel mode r=bhackett

This commit is contained in:
Nicholas D. Matsakis 2013-05-08 14:08:38 -04:00
parent 108b6c89c0
commit cdc6685302

View File

@ -6229,8 +6229,14 @@ IonBuilder::jsop_getelem_dense()
// If we can load the element as a definite double, make sure to check that
// the array has been converted to homogenous doubles first.
//
// NB: We disable this optimization in parallel execution mode
// because it is inherently not threadsafe (how do you convert the
// array atomically when there might be concurrent readers)?
types::StackTypeSet *objTypes = obj->resultTypeSet();
ExecutionMode executionMode = info().executionMode();
bool loadDouble =
executionMode == SequentialExecution &&
!barrier &&
loopDepth_ &&
!readOutOfBounds &&