RFR: 8340141: C1: rework ciMethod::equals following 8338471
Dean Long
dlong at openjdk.org
Tue Oct 8 19:21:58 UTC 2024
On Tue, 1 Oct 2024 21:23:28 GMT, Vladimir Ivanov <vlivanov at openjdk.org> wrote:
> > JVMTI can add and delete methods
>
> Can you elaborate on that point, please? JVMTI spec states that redefinition/retransformation "must not add, remove or rename fields or methods" [1] [2].
>
> [1] https://docs.oracle.com/en/java/javase/23/docs/specs/jvmti.html#RedefineClasses [2] https://docs.oracle.com/en/java/javase/23/docs/specs/jvmti.html#RetransformClasses
It's because of the AllowRedefinitionToAddDeleteMethods flag:
https://github.com/openjdk/jdk/blob/7312eea382eed048b6abdb6409c006fc8e8f45b4/src/hotspot/share/prims/jvmtiRedefineClasses.cpp#L928
-------------
PR Comment: https://git.openjdk.org/jdk/pull/21148#issuecomment-2400635053
More information about the hotspot-compiler-dev
mailing list