8182397: Race in field updates when creating ArrayKlasses can lead to crash

Update array_klass field in component mirror after klass.java_mirror field for concurrent readers in compiled code

Reviewed-by: aph, kbarrett
This commit is contained in:
Coleen Phillimore 2017-07-24 17:46:06 -04:00
parent fe6e4eb1e0
commit fd08aa9cef
5 changed files with 108 additions and 16 deletions

View file

@ -204,6 +204,8 @@ class oopDesc {
inline Metadata* metadata_field(int offset) const;
inline void metadata_field_put(int offset, Metadata* value);
inline void release_metadata_field_put(int offset, Metadata* value);
inline jbyte byte_field(int offset) const;
inline void byte_field_put(int offset, jbyte contents);