RFR: 8284877: Check type compatibility before looking up method from receiver's vtable [v2]
David Holmes
dholmes at openjdk.org
Mon Jul 3 02:15:01 UTC 2023
On Mon, 3 Jul 2023 01:59:33 GMT, Yi Yang <yyang at openjdk.org> wrote:
> I mean, users constructs object by JNI and crash when interpreting odpsFileStatus.getPath().toString(), odpsFileStatus.getPath().toString() is not a JNI call.
Sorry I don't understand what you are referring to. Java code is checked by bytecode verification. If you are using Unsafe then it is up to you to use it correctly just like JNI.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/8241#issuecomment-1617117955
More information about the hotspot-runtime-dev
mailing list