Skip to content

Conversation

timdev-ger
Copy link

Explanation of the improvements:

Redundant Retransformation Check:
Before retransformation, the method alreadyInstrumented(clazz) checks if the class has already been instrumented by the agent to avoid redundant retransformation.

Marking Classes as Instrumented:
After retransformation, the method markAsInstrumented(clazz) adds a system property to track which classes have already been instrumented. This ensures that the same class isn't re-instrumented multiple times.

Transform.java:
Ensure that the operand stack and local variables are properly handled when frames are manipulated. Here's an improvement to this part of the code, where we make sure that the correct frame type and operand stack size are calculated:

Ensure that the operand stack and local variables are properly handled when frames are manipulated. Here's an improvement to this part of the code, where we make sure that the correct frame type and operand stack size are calculated
Redundant Retransformation Check:
Before retransformation, the method alreadyInstrumented(clazz) checks if the class has already been instrumented by the agent to avoid redundant retransformation.

Marking Classes as Instrumented:
After retransformation, the method markAsInstrumented(clazz) adds a system property to track which classes have already been instrumented. This ensures that the same class isn't re-instrumented multiple times.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant