RFR: 8277444: Race condition on Instrumentation.retransformClasses() and class linking [v3]
David Holmes
dholmes at openjdk.org
Wed Aug 27 06:40:47 UTC 2025
On Tue, 26 Aug 2025 20:53:57 GMT, Dean Long <dlong at openjdk.org> wrote:
> If that's what "preparation" means, and Class.forName(name, false, loader) does not link the class, then posting the event here in InstanceKlass::link_class_impl() instead of earlier seems misplaced
@dean-long it seems the JVM TI "prepare" event is somewhat misnamed. It states "At this point, class fields, methods, and implemented interfaces are available, and no code from the class has been executed." but that neither describes preparation, nor the rest of linking. You can only access fields and methods after a class has been initialized! But lets take this elsewhere if needed.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26863#issuecomment-3226945362
More information about the hotspot-dev
mailing list