Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch 1 #67

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Patch 1 #67

wants to merge 2 commits into from

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