mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 09:04:41 +02:00
8194736: Refactor weak oops in ProtectionDomain table to use the Access API
Reviewed-by: coleenp, pliden
This commit is contained in:
parent
ca1e762c1f
commit
af5670373e
4 changed files with 35 additions and 14 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -37,7 +37,8 @@
|
|||
class ProtectionDomainCacheEntry : public HashtableEntry<oop, mtClass> {
|
||||
friend class VMStructs;
|
||||
public:
|
||||
oop protection_domain() { return literal(); }
|
||||
oop object();
|
||||
oop object_no_keepalive();
|
||||
|
||||
ProtectionDomainCacheEntry* next() {
|
||||
return (ProtectionDomainCacheEntry*)HashtableEntry<oop, mtClass>::next();
|
||||
|
@ -112,6 +113,7 @@ class ProtectionDomainEntry :public CHeapObj<mtClass> {
|
|||
}
|
||||
|
||||
ProtectionDomainEntry* next() { return _next; }
|
||||
oop protection_domain() { return _pd_cache->protection_domain(); }
|
||||
oop object();
|
||||
oop object_no_keepalive();
|
||||
};
|
||||
#endif // SHARE_VM_CLASSFILE_PROTECTIONDOMAINCACHE_HPP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue