mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8191567: Refactor ciInstanceKlass G1 keep alive barrier to use Access API
Reviewed-by: dholmes, rkennke, tschatzl
This commit is contained in:
parent
01ab4faae4
commit
8f739404a7
4 changed files with 21 additions and 25 deletions
|
@ -3421,6 +3421,15 @@ void JNIid::verify(Klass* holder) {
|
|||
}
|
||||
}
|
||||
|
||||
oop InstanceKlass::klass_holder_phantom() {
|
||||
oop* addr;
|
||||
if (is_anonymous()) {
|
||||
addr = _java_mirror.ptr_raw();
|
||||
} else {
|
||||
addr = &class_loader_data()->_class_loader;
|
||||
}
|
||||
return RootAccess<IN_CONCURRENT_ROOT | ON_PHANTOM_OOP_REF>::oop_load(addr);
|
||||
}
|
||||
|
||||
#ifdef ASSERT
|
||||
void InstanceKlass::set_init_state(ClassState state) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue