在 2025-6-25 16:08, Martin Storsjö 写道:
Both for UCRT and for msvcrt.dll, we end up calling the CRT DLL provided functions directly, so these issues are outside of our own emulation wrappers.Just waive the test for these configurations. Signed-off-by: Martin Storsjö <mar...@martin.st> --- mingw-w64-crt/testcases/t_aligned_alloc.c | 30 ++++++++++++++++++----- 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/mingw-w64-crt/testcases/t_aligned_alloc.c b/mingw-w64-crt/testcases/t_aligned_alloc.c index 1e4cbdea2..d80a3d318 100644 --- a/mingw-w64-crt/testcases/t_aligned_alloc.c +++ b/mingw-w64-crt/testcases/t_aligned_alloc.c @@ -25,6 +25,18 @@ } \ } while (0)+#ifndef BROKEN_REALLOC_SHRINK+#if defined(__aarch64__) +/* On aarch64, both UCRT and msvcrt.dll, a _aligned_realloc that attempts to
^ here should be a 'with'. ^ this reads like 'an'. Other than that, the 1st and 3rd patches look good to me.
+ * shrink the allocation, ends up not shrinking it in practice, leading to + * failures in some of these tests. Ignore those test failures. This is + * observed on both Windows 10 rev 19041 and Windows 11 rev 22000 and 22631. */ +#define BROKEN_REALLOC_SHRINK 1 +#else +#define BROKEN_REALLOC_SHRINK 0 +#endif +#endif +
-- Best regards, LIU Hao
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public