RFR: 8330606: Redefinition doesn't but should verify the new klass [v3]

Coleen Phillimore coleenp at openjdk.org
Thu Nov 21 12:05:16 UTC 2024


On Thu, 21 Nov 2024 05:12:20 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> The JVMTI code for redefinition returns JVMTI_ERROR_FAILS_VERIFICATION and not the pending exception to the caller.  The agent eventually in java.instrument/share/native/libinstrument/JavaExceptions.c will recreate the VerifyError based on the JVMTI error code.
>
> Wow that is pretty developer unfriendly. Hopefully exception logging will still show what the error is in detail.

Yes, logging does show the detailed verify error. The test has -Xlog:exceptions also that shows where it came from.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/22116#discussion_r1851930130


More information about the hotspot-runtime-dev mailing list