Get<Primitive>ArrayElements and zero-sized arrays

Thomas Stüfe thomas.stuefe at gmail.com
Wed Aug 18 04:29:10 UTC 2021


Hi,

in jni.cpp, in DEFINE_GETSCALARARRAYELEMENTS, we return a non-NULL write
protected special marker address in case the array was zero sized.

Is there a particular reason to still allow read access from that address?
The change history does not tell since the code seems to be older than the
mercurial history.

Thanks, Thomas


More information about the hotspot-runtime-dev mailing list