src/share/vm/opto/parse3.cpp

Print this page

        

*** 330,339 **** --- 330,343 ---- if (is_field) { set_wrote_volatile(true); } } + if (is_field) { + set_wrote_fields(true); + } + // If the field is final, the rules of Java say we are in <init> or <clinit>. // Note the presence of writes to final non-static fields, so that we // can insert a memory barrier later on to keep the writes from floating // out of the constructor. // Any method can write a @Stable field; insert memory barriers after those also.