[lworld] RFR: 8320437: [lworld] Adding internal null-restricted storage API points

Mandy Chung mchung at openjdk.org
Mon Nov 20 18:10:17 UTC 2023


On Tue, 7 Nov 2023 14:48:04 GMT, Frederic Parain <fparain at openjdk.org> wrote:

> Adding internal null-restricted storage API points

src/java.base/share/classes/jdk/internal/vm/VMSupport.java line 594:

> 592:      *         {@link jdk.internal.vm.annotation.ImplicitlyConstructible}
> 593:      */
> 594:     public static native Object[] newNullRestrictedArray(Class<?> componentType,

I think this API should be moved to some other runtime class.    VMSupport is the support class used by JVM CI, JVM TI, and attach mechanism.

What about `jdk.internal.value.ValueClassSupport` or `jdk.internal.misc.VM` for now?   We can find a better home later.

src/java.base/share/native/libjava/VMSupport.c line 44:

> 42:     return JVM_GetTemporaryDirectory(env);
> 43: }
> 44: 

Nit: should have no change in this file.

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

PR Review Comment: https://git.openjdk.org/valhalla/pull/947#discussion_r1385746690
PR Review Comment: https://git.openjdk.org/valhalla/pull/947#discussion_r1397797222



More information about the valhalla-dev mailing list