mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 854400 - Disable double conversion in parallel mode r=bhackett
This commit is contained in:
parent
108b6c89c0
commit
cdc6685302
@ -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 &&
|
||||
|
Loading…
Reference in New Issue
Block a user