mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8204939: Change Access nomenclature: root to native
Rename RootAccess => NativeAccess, IN_ROOT => IN_NATIVE, and related cleanups. Reviewed-by: pliden, stefank, coleenp
This commit is contained in:
parent
1a4997b484
commit
05b5a78903
29 changed files with 101 additions and 101 deletions
|
@ -48,7 +48,7 @@ WeakHandle<T> WeakHandle<T>::create(Handle obj) {
|
|||
vm_exit_out_of_memory(sizeof(oop*), OOM_MALLOC_ERROR, "Unable to create new weak oop handle in OopStorage");
|
||||
}
|
||||
// Create WeakHandle with address returned and store oop into it.
|
||||
RootAccess<ON_PHANTOM_OOP_REF>::oop_store(oop_addr, obj());
|
||||
NativeAccess<ON_PHANTOM_OOP_REF>::oop_store(oop_addr, obj());
|
||||
return WeakHandle(oop_addr);
|
||||
}
|
||||
|
||||
|
@ -58,7 +58,7 @@ void WeakHandle<T>::release() const {
|
|||
if (_obj != NULL) {
|
||||
// Clear the WeakHandle. For race in creating ClassLoaderData, we can release this
|
||||
// WeakHandle before it is cleared by GC.
|
||||
RootAccess<ON_PHANTOM_OOP_REF>::oop_store(_obj, (oop)NULL);
|
||||
NativeAccess<ON_PHANTOM_OOP_REF>::oop_store(_obj, (oop)NULL);
|
||||
get_storage()->release(_obj);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue