mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8192025: Less referential references
Reviewed-by: coleenp, eosterlund, mchung, ahgross, rhalade
This commit is contained in:
parent
9714f829c9
commit
1ac19a3166
8 changed files with 107 additions and 4 deletions
|
@ -62,11 +62,13 @@ bool Klass::is_cloneable() const {
|
|||
}
|
||||
|
||||
void Klass::set_is_cloneable() {
|
||||
if (name() != vmSymbols::java_lang_invoke_MemberName()) {
|
||||
_access_flags.set_is_cloneable_fast();
|
||||
} else {
|
||||
if (name() == vmSymbols::java_lang_invoke_MemberName()) {
|
||||
assert(is_final(), "no subclasses allowed");
|
||||
// MemberName cloning should not be intrinsified and always happen in JVM_Clone.
|
||||
} else if (is_instance_klass() && InstanceKlass::cast(this)->reference_type() != REF_NONE) {
|
||||
// Reference cloning should not be intrinsified and always happen in JVM_Clone.
|
||||
} else {
|
||||
_access_flags.set_is_cloneable_fast();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue