summaryrefslogtreecommitdiff
path: root/openjdkjvmti/transform.h
diff options
context:
space:
mode:
author Mythri Alle <mythria@google.com> 2023-11-15 13:19:06 +0000
committer Mythri Alle <mythria@google.com> 2023-11-16 09:45:04 +0000
commit6ad23882ac8b455c4b6068c37d1e5ebbc5aaa42f (patch)
treee8b17ce2206acbe7c7ff49fdce530d929538a37b /openjdkjvmti/transform.h
parentf174b906d316edb10d34ea50933c1a68cee31789 (diff)
Rename a couple of methods related to redefinition for readability
TransformClasses is a method to actually redefine the method and TransformClassesDirect is a method to call ClassFileLoadHooks which is confusing. So rename TransformClassesDirect to CallClassFileLoadHooks and also add some comments Also rename GetRedefinitionError to CanRedefineClass. Test: art/test.py Change-Id: Ie04927f1aae2880d87bcb9bb19b5f3971911fd43
Diffstat (limited to 'openjdkjvmti/transform.h')
-rw-r--r--openjdkjvmti/transform.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/openjdkjvmti/transform.h b/openjdkjvmti/transform.h
index a58b50ea10..3b7f8556c1 100644
--- a/openjdkjvmti/transform.h
+++ b/openjdkjvmti/transform.h
@@ -51,16 +51,14 @@ class Transformer {
public:
static void Register(EventHandler* eh);
- template<ArtJvmtiEvent kEvent>
- static void TransformSingleClassDirect(
- EventHandler* event_handler,
- art::Thread* self,
- /*in-out*/ArtClassDefinition* def);
+ template <ArtJvmtiEvent kEvent>
+ static void CallClassFileLoadHooksSingleClass(EventHandler* event_handler,
+ art::Thread* self,
+ /*in-out*/ ArtClassDefinition* def);
- template<RedefinitionType kType>
- static void RetransformClassesDirect(
- art::Thread* self,
- /*in-out*/std::vector<ArtClassDefinition>* definitions);
+ template <RedefinitionType kType>
+ static void CallClassFileLoadHooks(art::Thread* self,
+ /*in-out*/ std::vector<ArtClassDefinition>* definitions);
static jvmtiError RetransformClasses(jvmtiEnv* env,
jint class_count,