Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
4965:d79f8393df2b | 4966:701a83c86f28 |
---|---|
139 _level = caller == NULL ? 0 : caller->level() + 1; | 139 _level = caller == NULL ? 0 : caller->level() + 1; |
140 _method = method; | 140 _method = method; |
141 _xhandlers = new XHandlers(method); | 141 _xhandlers = new XHandlers(method); |
142 _number_of_locks = 0; | 142 _number_of_locks = 0; |
143 _monitor_pairing_ok = method->has_balanced_monitors(); | 143 _monitor_pairing_ok = method->has_balanced_monitors(); |
144 _wrote_final = false; | |
144 _start = NULL; | 145 _start = NULL; |
145 | 146 |
146 if (osr_bci == -1) { | 147 if (osr_bci == -1) { |
147 _requires_phi_function.clear(); | 148 _requires_phi_function.clear(); |
148 } else { | 149 } else { |