mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 1229031. Make sure to not init binding pref var caches on worker threads. r=smaug
This commit is contained in:
parent
d66acee504
commit
8ed93afa4c
@ -2779,7 +2779,7 @@ class CGCreateInterfaceObjectsMethod(CGAbstractMethod):
|
||||
for pref, ptr in prefCacheData]
|
||||
prefCache = CGWrapper(CGIndenter(CGList(prefCacheData)),
|
||||
pre=("static bool sPrefCachesInited = false;\n"
|
||||
"if (!sPrefCachesInited) {\n"
|
||||
"if (!sPrefCachesInited && NS_IsMainThread()) {\n"
|
||||
" sPrefCachesInited = true;\n"),
|
||||
post="}\n")
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user