8245289: Clean up offset code in JavaClasses

Make offset member names consistent and private, move static initializations near owning classes

Reviewed-by: fparain, lfoltan
This commit is contained in:
Coleen Phillimore 2020-05-29 15:00:19 -04:00
parent e639c9a840
commit 5314d28f84
36 changed files with 789 additions and 843 deletions

View file

@ -734,7 +734,7 @@ oop InstanceKlass::init_lock() const {
void InstanceKlass::fence_and_clear_init_lock() {
// make sure previous stores are all done, notably the init_state.
OrderAccess::storestore();
java_lang_Class::set_init_lock(java_mirror(), NULL);
java_lang_Class::clear_init_lock(java_mirror());
assert(!is_not_initialized(), "class must be initialized now");
}