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

Improved shared methods #197

Merged
merged 7 commits into from Feb 28, 2016
Merged

Improved shared methods #197

merged 7 commits into from Feb 28, 2016

Conversation

jbachorik
Copy link
Collaborator

The intent of this patch is to improve shared method handling in BTrace probes.

Currently, the shared methods are limited to allowing only argument types which have been loaded by the bootstrap class loader. This is showing to be very limiting.

At least the shared methods reachable only from @OnMethod or @OnProbe handlers do not need this limitation because any types visible to the probed method will be visible to the handler code as well.

For other handlers this limitation will have to be kept, until a duck-typing equivalent is implemented in BTrace.

As a side effect, the amount of code copied over to the probed method will usually decrease and lighten the pressure on PermGen/Metaspace.


 

@jbachorik jbachorik added this to the 1.3.5 milestone Feb 28, 2016
@jbachorik jbachorik self-assigned this Feb 28, 2016
jbachorik added a commit that referenced this pull request Feb 28, 2016
@jbachorik jbachorik merged commit d6b7749 into master Feb 28, 2016
@jbachorik jbachorik deleted the improved-shared-methods branch February 28, 2016 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant