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

Failure when reapplying a probe for JDK 15 #431

Closed
jbachorik opened this issue Nov 29, 2020 · 0 comments
Closed

Failure when reapplying a probe for JDK 15 #431

jbachorik opened this issue Nov 29, 2020 · 0 comments
Assignees
Milestone

Comments

@jbachorik
Copy link
Collaborator

When BTrace is using invoke dynamic (indy) (instead of generating private static handler method which is frowned upon in JDK 14 and forbidden in JDK 15) the cushion methods (empty-bodied handler methods corresponding to removed probes) do not play nice with the Indy and cause the following error:

java.lang.UnsupportedOperationException: class redefinition failed: attempted to add a method
        at java.instrument/sun.instrument.InstrumentationImpl.retransformClasses0(Native Method)
        at java.instrument/sun.instrument.InstrumentationImpl.retransformClasses(InstrumentationImpl.java:167)
        at org.openjdk.btrace.agent.Client.retransformLoaded(Client.java:500)
        at org.openjdk.btrace.agent.Main$5.run(Main.java:878)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
        at java.base/java.lang.Thread.run(Thread.java:832)
@jbachorik jbachorik added this to the 2.1.0 milestone Nov 29, 2020
@jbachorik jbachorik self-assigned this Nov 29, 2020
@jbachorik jbachorik mentioned this issue Nov 29, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant