mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8209301: JVM rename is_anonymous, host_klass to unsafe specific terminology ahead of Unsafe.defineAnonymousClass deprecation
Clean up VM anonymous class terminology. Reviewed-by: coleenp, dholmes, mchung
This commit is contained in:
parent
6ccb60937c
commit
75ed173e15
64 changed files with 359 additions and 354 deletions
|
@ -136,7 +136,7 @@ bool VM_RedefineClasses::doit_prologue() {
|
|||
}
|
||||
|
||||
oop mirror = JNIHandles::resolve_non_null(_class_defs[i].klass);
|
||||
// classes for primitives and arrays and vm anonymous classes cannot be redefined
|
||||
// classes for primitives and arrays and vm unsafe anonymous classes cannot be redefined
|
||||
// check here so following code can assume these classes are InstanceKlass
|
||||
if (!is_modifiable_class(mirror)) {
|
||||
_res = JVMTI_ERROR_UNMODIFIABLE_CLASS;
|
||||
|
@ -278,8 +278,8 @@ bool VM_RedefineClasses::is_modifiable_class(oop klass_mirror) {
|
|||
return false;
|
||||
}
|
||||
|
||||
// Cannot redefine or retransform an anonymous class.
|
||||
if (InstanceKlass::cast(k)->is_anonymous()) {
|
||||
// Cannot redefine or retransform an unsafe anonymous class.
|
||||
if (InstanceKlass::cast(k)->is_unsafe_anonymous()) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
@ -2650,7 +2650,7 @@ bool VM_RedefineClasses::skip_type_annotation_target(
|
|||
|
||||
case 0x10:
|
||||
// kind: type in extends clause of class or interface declaration
|
||||
// (including the direct superclass of an anonymous class declaration),
|
||||
// (including the direct superclass of an unsafe anonymous class declaration),
|
||||
// or in implements clause of interface declaration
|
||||
// location: ClassFile
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue