You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We were trying `javaagent` instead of `jvmti` because we ended
2
+
up using the same APIs in JVMTI
3
+
1. getAllStackTraces
4
+
2. getAnnotations
5
+
6
+
However, upon trying to use `javaagent` we realized that we
7
+
were not able to get the `Class<?>` instance in the running JVM.
8
+
Thus, we can neither get its bytecode nor its annotations.
9
+
10
+
Some advantages of using `jvmti` are:
11
+
1. It uses `AsyncGetCallTrace` which is immune to [safepoint bias](https://seethawenner.medium.com/java-safepoint-and-async-profiling-cdce0818cd29) and does
12
+
not stop the JVM for long periods of time.
13
+
2. It gives us the `jclass` instance so we can call `getAnnotations` on it.
0 commit comments