mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 09:34:38 +02:00
8262028: Make InstanceKlass::implementor return InstanceKlass
Reviewed-by: coleenp, ccheung, vlivanov
This commit is contained in:
parent
fe8e3707c5
commit
75bf10610f
4 changed files with 36 additions and 36 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2021, 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
|
||||
|
@ -74,9 +74,9 @@ inline Klass** InstanceKlass::end_of_nonstatic_oop_maps() const {
|
|||
nonstatic_oop_map_count());
|
||||
}
|
||||
|
||||
inline Klass* volatile* InstanceKlass::adr_implementor() const {
|
||||
inline InstanceKlass* volatile* InstanceKlass::adr_implementor() const {
|
||||
if (is_interface()) {
|
||||
return (Klass* volatile*)end_of_nonstatic_oop_maps();
|
||||
return (InstanceKlass* volatile*)end_of_nonstatic_oop_maps();
|
||||
} else {
|
||||
return NULL;
|
||||
}
|
||||
|
@ -102,7 +102,7 @@ inline address InstanceKlass::adr_fingerprint() const {
|
|||
return (address)(adr_host + 1);
|
||||
}
|
||||
|
||||
Klass* volatile* adr_impl = adr_implementor();
|
||||
InstanceKlass* volatile* adr_impl = adr_implementor();
|
||||
if (adr_impl != NULL) {
|
||||
return (address)(adr_impl + 1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue