diff options
author | 2023-11-15 10:08:42 +0000 | |
---|---|---|
committer | 2023-11-16 09:16:07 +0000 | |
commit | f174b906d316edb10d34ea50933c1a68cee31789 (patch) | |
tree | 4cba9e6c2eba91d7fcd7e1efa566f070da502977 /openjdkjvmti/ti_extension.cc | |
parent | 1ac26153c25bdbd9e99f57328c674f6731bdd2d5 (diff) |
Remove an unused jvmti extension and associated code
com.android.art.UNSAFE.class.structurally_redefine_class_direct was
added as a temporary entrypoint for testing. It is no longer used.
Test: art/test.py
Change-Id: Iead2248a4e2d105b39eeb2c8114bfbafe8b56391
Diffstat (limited to 'openjdkjvmti/ti_extension.cc')
-rw-r--r-- | openjdkjvmti/ti_extension.cc | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/openjdkjvmti/ti_extension.cc b/openjdkjvmti/ti_extension.cc index 02dc9f19c8..2e57b5f72e 100644 --- a/openjdkjvmti/ti_extension.cc +++ b/openjdkjvmti/ti_extension.cc @@ -451,38 +451,6 @@ jvmtiError ExtensionUtil::GetExtensionFunctions(jvmtiEnv* env, return error; } - // StructurallyRedefineClassDirect - error = add_extension( - reinterpret_cast<jvmtiExtensionFunction>(Redefiner::StructurallyRedefineClassDirect), - "com.android.art.UNSAFE.class.structurally_redefine_class_direct", - "Temporary prototype entrypoint for redefining a single class structurally. Currently this" - " only supports adding new static fields to a class without any instances." - " ClassFileLoadHook events will NOT be triggered. This does not currently support creating" - " obsolete methods. This function only has rudimentary error checking. This should not be" - " used except for testing.", - { - { "klass", JVMTI_KIND_IN, JVMTI_TYPE_JCLASS, false }, - { "new_def", JVMTI_KIND_IN_BUF, JVMTI_TYPE_CCHAR, false }, - { "new_def_len", JVMTI_KIND_IN, JVMTI_TYPE_JINT, false }, - }, - { - ERR(CLASS_LOADER_UNSUPPORTED), - ERR(FAILS_VERIFICATION), - ERR(ILLEGAL_ARGUMENT), - ERR(INVALID_CLASS), - ERR(MUST_POSSESS_CAPABILITY), - ERR(MUST_POSSESS_CAPABILITY), - ERR(NULL_POINTER), - ERR(OUT_OF_MEMORY), - ERR(UNMODIFIABLE_CLASS), - ERR(UNSUPPORTED_REDEFINITION_HIERARCHY_CHANGED), - ERR(UNSUPPORTED_REDEFINITION_METHOD_ADDED), - ERR(UNSUPPORTED_REDEFINITION_METHOD_DELETED), - ERR(UNSUPPORTED_REDEFINITION_SCHEMA_CHANGED), - }); - if (error != ERR(NONE)) { - return error; - } } else { LOG(INFO) << "debuggable & jni-type indices are required to implement structural " << "class redefinition extensions."; |