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

Could I use btrace to track methods in sun.misc.Unsafe? #348

Closed
kuaiwei opened this issue Jul 4, 2018 · 1 comment
Closed

Could I use btrace to track methods in sun.misc.Unsafe? #348

kuaiwei opened this issue Jul 4, 2018 · 1 comment

Comments

@kuaiwei
Copy link

kuaiwei commented Jul 4, 2018

I could use btrace script to trace other java methods. But when I try to trace sun.misc.Unsafe::allocateMemory or sun.misc.Unsafe::freeMemory, I can not get output. Can you tell me if it's a limit of btrace?

@jbachorik
Copy link
Collaborator

Unfortunately, no. Unsafe is a protected class for BTrace - we can't instrument it since we strongly depend on that class. Also, this particular method is 'native' and BTrace does not support native method instrumentation.

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

No branches or pull requests

2 participants