commit | c32be671805a85975541fa7f06fd49e2759aa69e | [log] [tgz] |
---|---|---|
author | David Pursehouse <david.pursehouse@sonymobile.com> | Fri Aug 23 19:03:11 2013 +0900 |
committer | David Pursehouse <david.pursehouse@sonymobile.com> | Fri Aug 23 19:06:12 2013 +0900 |
tree | b36c135fe8eabc1371b293286e5c58aae12a0c25 | |
parent | faf1c4e2ee22ef4bc73ec3cd440fac329c8a3577 [diff] |
Fix lazy initialization of non-volatile static field in GerritLauncher The `myArchive` static member of GerritLauncher is lazy initialized in the `getDistributionArchive` method. According to FindBugs: Because the compiler or processor may reorder instructions, threads are not guaranteed to see a completely initialized object, if the method can be called by multiple threads. Fix this by declaring the member as 'volatile'. Change-Id: I2774cc12c2ee749331f72ff83c3d317b073787f3