зеркало из https://github.com/mozilla/gecko-dev.git
Bug 700822: Followup: add comment about use of static local. (r=bz)
This commit is contained in:
Родитель
1723509063
Коммит
4d9b05b171
|
@ -94,6 +94,8 @@ RandomizeIsBrokenImpl()
|
|||
static bool
|
||||
RandomizeIsBroken()
|
||||
{
|
||||
// Use the compiler's intrinsic guards for |static type value = expr| to avoid some potential
|
||||
// races if runtimes are created from multiple threads.
|
||||
static int result = RandomizeIsBrokenImpl();
|
||||
return !!result;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче