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

Zhengyu Gu zgu at openjdk.java.net
Thu Jul 1 13:20:01 UTC 2021


On Wed, 30 Jun 2021 20:11:17 GMT, Zhengyu Gu <zgu at openjdk.org> wrote:

> 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!

This pull request has been closed without being integrated.

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

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


More information about the hotspot-dev mailing list