mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 967457 - Fix a benign TSan data race in BytecodeTypes. r=bhackett
--HG-- extra : rebase_source : 5a5a4b1641611ee92aa3e948b3cb0805b9ca70fb
This commit is contained in:
parent
32c26af04f
commit
4c58aa8f29
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user