Mercurial > hg > truffle
diff src/share/vm/c1/c1_IR.cpp @ 4966:701a83c86f28
7120481: storeStore barrier in constructor with final field
Summary: Issue storestore barrier before constructor return if the constructor write final field.
Reviewed-by: dholmes, jrose, roland, coleenp
Contributed-by: Jiangli Zhou <jiangli.zhou@oracle.com>
author | jiangli |
---|---|
date | Tue, 21 Feb 2012 13:14:55 -0500 |
parents | 5ddfcf4b079e |
children | 51111665eda6 b9a9ed0f8eeb |
line wrap: on
line diff
--- a/src/share/vm/c1/c1_IR.cpp Wed Feb 22 14:00:34 2012 -0500 +++ b/src/share/vm/c1/c1_IR.cpp Tue Feb 21 13:14:55 2012 -0500 @@ -141,6 +141,7 @@ _xhandlers = new XHandlers(method); _number_of_locks = 0; _monitor_pairing_ok = method->has_balanced_monitors(); + _wrote_final = false; _start = NULL; if (osr_bci == -1) {