Bug 967457 - Fix a benign TSan data race in BytecodeTypes. r=bhackett

--HG--
extra : rebase_source : 5a5a4b1641611ee92aa3e948b3cb0805b9ca70fb
This commit is contained in:
Jan de Mooij 2014-02-05 11:34:15 +01:00
parent 32c26af04f
commit 4c58aa8f29

View File

@ -597,7 +597,7 @@ TypeScript::BytecodeTypes(JSScript *script, jsbytecode *pc, uint32_t *hint, TYPE
uint32_t offset = script->pcToOffset(pc);
// See if this pc is the next typeset opcode after the last one looked up.
if (bytecodeMap[*hint + 1] == offset && (*hint + 1) < script->nTypeSets()) {
if ((*hint + 1) < script->nTypeSets() && bytecodeMap[*hint + 1] == offset) {
(*hint)++;
return typeArray + *hint;
}