This commit is contained in:
Jesper Wilhelmsson 2017-03-16 16:40:41 -07:00
commit 7e8d75378e
712 changed files with 22732 additions and 13609 deletions

View file

@ -87,11 +87,11 @@ Handle ModuleEntry::shared_protection_domain() {
// Set the shared ProtectionDomain atomically
void ModuleEntry::set_shared_protection_domain(ClassLoaderData *loader_data,
Handle pd_h) {
// Create a JNI handle for the shared ProtectionDomain and save it atomically.
// If someone beats us setting the _pd cache, the created JNI handle is destroyed.
// Create a handle for the shared ProtectionDomain and save it atomically.
// If someone beats us setting the _pd cache, the created handle is destroyed.
jobject obj = loader_data->add_handle(pd_h);
if (Atomic::cmpxchg_ptr(obj, &_pd, NULL) != NULL) {
loader_data->remove_handle(obj);
loader_data->remove_handle_unsafe(obj);
}
}