Bug 700822: Followup: add comment about use of static local. (r=bz)

This commit is contained in:
Chris Leary 2012-02-24 11:15:32 -08:00
Родитель 1723509063
Коммит 4d9b05b171
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -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;
}