OSDN Git Service

Fix potential race condition with threads array.
authorAart Bik <ajcbik@google.com>
Wed, 23 Mar 2016 18:31:28 +0000 (11:31 -0700)
committerAart Bik <ajcbik@google.com>
Wed, 23 Mar 2016 21:41:52 +0000 (14:41 -0700)
commitd07453889fd9f314849df8c172afadb477e46d64
tree7c8b2d9bace6f45622927e69a825222b3f103fd6
parent6fa06e6f5a92cd318021afad9b036126438b2de4
Fix potential race condition with threads array.

Rationale:
Array should be filled with threads prior to first fork,
since only in that case does Java memory model ensure
all threads have consistent view of array, which itself is
subject to one test.

BUG=27805463

Change-Id: I28f1eb8461842217ced2255062d2135ef880e7d5
test/004-checker-UnsafeTest18/src/Main.java