mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
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:
parent
e639c9a840
commit
5314d28f84
36 changed files with 789 additions and 843 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue