RFR: 8277444: Race condition on Instrumentation.retransformClasses() and class linking [v2]
David Holmes
dholmes at openjdk.org
Tue Aug 26 04:53:39 UTC 2025
On Mon, 25 Aug 2025 21:11:34 GMT, Dean Long <dlong at openjdk.org> wrote:
> > @dean-long `retransformClasses` is specified to to be able to throw `LinkageErrors`.
>
> I see that in java.lang.instrument, but the JVMTI spec says "In response to this call, no events other than the ClassFileLoadHook event will be sent." Normally during linking we send the ClassPrepare event.
To have a Class object it must have already undergone the "preparation" part of linking (it is done at the end of loading when we create the class mirror).
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26863#issuecomment-3222609397
More information about the hotspot-dev
mailing list