Replies: 4 comments 3 replies
-
Nothing in particular as Byte Buddy cannot work around such ultimate JVM restrictions. For testing, it will not be an issue as Maven/Gradle can add the parameter and there will be a sufficient exception explaining the deed, but other than that this simply disables the JVM infrastructure for it, so there will not be a work around. |
Beta Was this translation helpful? Give feedback.
-
I thought about writing to native memory, but I would not expect this to work for a long time as there is a certain desire at OpenJDK to prohibit this. I will look into it. |
Beta Was this translation helpful? Give feedback.
-
Sorry, I overlooked this thread (otherwise would have maybe added it here), I have posted a how-to for test runs in discussion #1535 |
Beta Was this translation helpful? Give feedback.
-
I played with an approach to override this, but it requires special system privileges, what is even harder to set up, so its not really feasible. |
Beta Was this translation helpful? Give feedback.
-
The OpenJDK team is currently planning to disallow the dynamic loading of Java Agents by default, as shown in JEP 451 and JDK-8306275. This change would require the
-XX:-EnableDynamicAgentLoading
JVM flag to re-enable the attach mechanism.Will byte-buddy circumvent these new restrictions automatically or require the
EnableDynamicAgentLoading
flag to be manually set by end users?Let me know if you need more information about our use-case.
Beta Was this translation helpful? Give feedback.
All reactions