commit | 27df758e2e7baebb6e3f393f9732fd0d064420c8 | [log] [tgz] |
---|---|---|
author | Calin Juravle <calin@google.com> | Fri Apr 17 19:12:31 2015 +0100 |
committer | Calin Juravle <calin@google.com> | Mon Apr 20 14:02:51 2015 +0100 |
tree | 261207281fd574deffb4dc1c1bc6bea8f150993e | |
parent | f8bdd9f3a002970e4b8fdcf6fe6730116f1626c3 [diff] |
[optimizing] Add memory barriers in constructors when needed If a class has final fields we must add a memory barrier before returning from constructor. This makes sure the fields are visible to other threads. Bug: 19851497 Change-Id: If8c485092fc512efb9636cd568cb0543fb27688e