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

Tobias Hartmann thartmann at openjdk.org
Fri Nov 24 10:05:40 UTC 2023


On Tue, 21 Nov 2023 19:00:12 GMT, Frederic Parain <fparain at openjdk.org> wrote:

>> Adding internal null-restricted storage API points
>
> Frederic Parain has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Field inheritance check should be limited to instance fields

I found another issue. Below test passes with default arguments but fails with `-XX:InlineFieldMaxFlatSize=0 `:

``` 
Exception in thread "main" java.lang.RuntimeException: Failed
	at Test.main(Test.java:26)



    public static void main(String[] args) {
        EmptyContainer empty = new EmptyContainer();
        EmptyContainer[] array = (EmptyContainer[])VM.newNullRestrictedArray(EmptyContainer.class, 1);
        array[0] = new EmptyContainer();
        if (empty != array[0]) {
            throw new RuntimeException("Failed");
        }
    }

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

PR Comment: https://git.openjdk.org/valhalla/pull/947#issuecomment-1825426459



More information about the valhalla-dev mailing list