mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
8000725: NPG: method_holder() and pool_holder() and pool_holder field should be InstanceKlass
Change types of above methods and field to InstanceKlass and remove unneeded casts from the source files. Reviewed-by: dholmes, coleenp, zgu
This commit is contained in:
parent
e1d995ab86
commit
7fee66f152
39 changed files with 176 additions and 179 deletions
|
@ -86,8 +86,8 @@ class ConstantPool : public Metadata {
|
|||
friend class Universe; // For null constructor
|
||||
private:
|
||||
Array<u1>* _tags; // the tag array describing the constant pool's contents
|
||||
ConstantPoolCache* _cache; // the cache holding interpreter runtime information
|
||||
Klass* _pool_holder; // the corresponding class
|
||||
ConstantPoolCache* _cache; // the cache holding interpreter runtime information
|
||||
InstanceKlass* _pool_holder; // the corresponding class
|
||||
Array<u2>* _operands; // for variable-sized (InvokeDynamic) nodes, usually empty
|
||||
|
||||
// Array of resolved objects from the constant pool and map from resolved
|
||||
|
@ -193,9 +193,9 @@ class ConstantPool : public Metadata {
|
|||
void set_on_stack(const bool value);
|
||||
|
||||
// Klass holding pool
|
||||
Klass* pool_holder() const { return _pool_holder; }
|
||||
void set_pool_holder(Klass* k) { _pool_holder = k; }
|
||||
Klass** pool_holder_addr() { return &_pool_holder; }
|
||||
InstanceKlass* pool_holder() const { return _pool_holder; }
|
||||
void set_pool_holder(InstanceKlass* k) { _pool_holder = k; }
|
||||
InstanceKlass** pool_holder_addr() { return &_pool_holder; }
|
||||
|
||||
// Interpreter runtime support
|
||||
ConstantPoolCache* cache() const { return _cache; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue