[jdk20] RFR: 8299561: VaList.empty() doesn't return a list associated with the global scope
Maurizio Cimadamore
mcimadamore at openjdk.org
Wed Jan 4 10:57:44 UTC 2023
On Wed, 4 Jan 2023 10:49:09 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
> This patch fixes a long-standing conformance issue: `VaList.empty` is specified to return a `VaList` associated with the global scope, but in some platforms (Aarch64/Linux and x64/Linux) the empty list is associated with an implicit scope instead.
>
> This doesn't make a lot of difference, given that the empty list is always stored in a static final in the underlying implementation - that said, it would be a good thing to rectify this conformance issue.
Note: on Windows/x64 and MacOS/Aarch64 the empty VaList is just a wrapper around MemorySegment.NULL which is already associated with the global scope - so nothing to fix there.
-------------
PR: https://git.openjdk.org/jdk20/pull/82
More information about the core-libs-dev
mailing list