--- old/src/hotspot/share/oops/cpCache.hpp 2017-10-12 12:05:55.364027665 -0400 +++ new/src/hotspot/share/oops/cpCache.hpp 2017-10-12 12:05:54.979152147 -0400 @@ -136,7 +136,7 @@ private: volatile intx _indices; // constant pool index & rewrite bytecodes - volatile Metadata* _f1; // entry specific metadata field + Metadata* volatile _f1; // entry specific metadata field volatile intx _f2; // entry specific int/metadata field volatile intx _flags; // flags @@ -144,7 +144,7 @@ void set_bytecode_1(Bytecodes::Code code); void set_bytecode_2(Bytecodes::Code code); void set_f1(Metadata* f1) { - Metadata* existing_f1 = (Metadata*)_f1; // read once + Metadata* existing_f1 = _f1; // read once assert(existing_f1 == NULL || existing_f1 == f1, "illegal field change"); _f1 = f1; }