[jdk17] RFR: 8269697: JNI_GetPrimitiveArrayCritical() should not accept object array [v2]

Zhengyu Gu zgu at openjdk.java.net
Thu Jul 1 00:34:26 UTC 2021


> GetPrimitiveArrayCritical() is supposed to only be used with primitive array types, but nothing prevents current implementation from accepting object arrays (please see attached test case in bug).
> 
> My purposed fix is not very friendly, it crashes JVM if a none primitive array is passed in, but I am sure what to expect in this scenario.
> 
> Specification people, please comment. Thanks!

Zhengyu Gu has updated the pull request incrementally with one additional commit since the last revision:

  Kim's comment

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

Changes:
  - all: https://git.openjdk.java.net/jdk17/pull/185/files
  - new: https://git.openjdk.java.net/jdk17/pull/185/files/0b9f944e..a117ace2

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk17&pr=185&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk17&pr=185&range=00-01

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk17/pull/185.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk17 pull/185/head:pull/185

PR: https://git.openjdk.java.net/jdk17/pull/185


More information about the hotspot-dev mailing list