mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8152844: JVM InstanceKlass Methods For Obtaining Package/Module Should Be Moved to Klass
Converted package() and module() functions to pure virtual functions of Klass Reviewed-by: dholmes, coleenp, lfoltan, hseigel
This commit is contained in:
parent
b788b49698
commit
09add35155
9 changed files with 99 additions and 32 deletions
|
@ -54,6 +54,9 @@ class ObjArrayKlass : public ArrayKlass {
|
|||
void set_bottom_klass(Klass* k) { _bottom_klass = k; }
|
||||
Klass** bottom_klass_addr() { return &_bottom_klass; }
|
||||
|
||||
ModuleEntry* module() const;
|
||||
PackageEntry* package() const;
|
||||
|
||||
// Compiler/Interpreter offset
|
||||
static ByteSize element_klass_offset() { return in_ByteSize(offset_of(ObjArrayKlass, _element_klass)); }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue