8263589: Introduce JavaValue::get_oop/set_oop

Reviewed-by: coleenp, sspitsyn
This commit is contained in:
Stefan Karlsson 2021-03-16 08:29:11 +00:00
parent 20297a1beb
commit a1f6591f6c
26 changed files with 72 additions and 67 deletions

View file

@ -757,7 +757,7 @@ Handle SystemDictionaryShared::get_shared_jar_url(int shared_path_index, TRAPS)
vmSymbols::toFileURL_signature(),
path_string, CHECK_(url_h));
atomic_set_shared_jar_url(shared_path_index, (oop)result.get_jobject());
atomic_set_shared_jar_url(shared_path_index, result.get_oop());
}
url_h = Handle(THREAD, shared_jar_url(shared_path_index));
@ -819,7 +819,7 @@ Handle SystemDictionaryShared::get_protection_domain_from_classloader(Handle cla
vmSymbols::getProtectionDomain_name(),
vmSymbols::getProtectionDomain_signature(),
cs, CHECK_NH);
return Handle(THREAD, (oop)obj_result.get_jobject());
return Handle(THREAD, obj_result.get_oop());
}
// Returns the ProtectionDomain associated with the JAR file identified by the url.
@ -862,7 +862,7 @@ Handle SystemDictionaryShared::get_shared_protection_domain(Handle class_loader,
JavaCalls::call_static(&result, classLoaders_klass, vmSymbols::toFileURL_name(),
vmSymbols::toFileURL_signature(),
location_string, CHECK_NH);
url = Handle(THREAD, (oop)result.get_jobject());
url = Handle(THREAD, result.get_oop());
}
Handle pd = get_protection_domain_from_classloader(class_loader, url,