On Tue, 26 Aug 2025 20:53:57 GMT, Dean Long <dl...@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

Reply via email to