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
Some really interesting answers from the jdk9 mailing list:
Self-attach is not allowed anymore
To circumvent it, you can for instance look at what Byte Buddy does, or simply depend on byte-buddy-agent to get an instance of Instrumentation by doing inst = ByteBuddyAgent.install();
For the code, see https://github.com/raphw/byte-buddy/tree/master/byte-buddy-agent
Add -Djdk.attach.allowAttachSelf=true
Another way is to use ProcessBuilder to create another process and have the new process attach. This follows all of the current rules. Several projects are using this approach.
After playing a bit with Java 9, here is what I've found:
UnsafeSizeOf
is usedObjectGraphWalker
Also, Java 9 is using less memory (good!) so we need to adapt our tests accordingly.
The text was updated successfully, but these errors were encountered: