mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 976889 - Fix the check in CurrentThreadCanAccessRuntime; r=shu
--HG-- extra : rebase_source : 1ad4f015458b617c6c4d52dda17feed158b66509
This commit is contained in:
parent
8a77f5f205
commit
c7e03b491d
3
js/src/jit-test/tests/parallel/bug976889.js
Normal file
3
js/src/jit-test/tests/parallel/bug976889.js
Normal file
@ -0,0 +1,3 @@
|
||||
Array.buildPar(5, function() {
|
||||
return [].t = encodeURI
|
||||
})
|
@ -870,7 +870,7 @@ JSRuntime::clearUsedByExclusiveThread(Zone *zone)
|
||||
bool
|
||||
js::CurrentThreadCanAccessRuntime(JSRuntime *rt)
|
||||
{
|
||||
return rt->ownerThread_ == PR_GetCurrentThread() || InExclusiveParallelSection();
|
||||
return rt->ownerThread_ == PR_GetCurrentThread() && !InParallelSection();
|
||||
}
|
||||
|
||||
bool
|
||||
|
Loading…
Reference in New Issue
Block a user