RFR: 8200559: Java agents doing instrumentation need a means to define auxiliary classes [v2]

Rafael Winterhalter winterhalter at openjdk.org
Mon Jan 29 14:29:57 UTC 2024


On Fri, 16 Apr 2021 20:30:15 GMT, Rafael Winterhalter <winterhalter at openjdk.org> wrote:

>> To allow agents the definition of auxiliary classes, an API is needed to allow this. Currently, this is often achieved by using `sun.misc.Unsafe` or `jdk.internal.misc.Unsafe` ever since the `defineClass` method was removed from `sun.misc.Unsafe`.
>
> Rafael Winterhalter has refreshed the contents of this pull request, and previous commits have been removed. Incremental views are not available. The pull request now contains one commit:
> 
>   8200559: Java agents doing instrumentation need a means to define auxiliary classes

There's plenty of them in Byte Buddy and I have seen a bunch in other agents.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/3546#issuecomment-1914804192


More information about the core-libs-dev mailing list