Guillaume Lessard
590bef642b
Merge pull request #88788 from glessard/wasi-expectCrash-skip
...
[StdlibUnittest] Skip crash testing based on test runner feature rather than platform
2026-05-08 09:18:11 -07:00
Guillaume Lessard
cb85c226c0
[StdlibUnittest] rename .requireCapability to .require
2026-05-07 15:30:25 -07:00
Guillaume Lessard
a2c9886d62
[test] replace wasi-based skips with feature-based requirements
2026-05-07 13:20:40 -07:00
Guillaume Lessard
86c01256e2
[test] add an availability guard
...
- and fix discrepancies with internal branch
2026-05-04 12:24:33 -07:00
Guillaume Lessard
1bda8e21e3
[gardening] more line-length pruning
2026-05-01 14:12:00 -07:00
Guillaume Lessard
b33db0b3a5
[test] replace fatalError with expectUnreachable
...
When testing, the unexpected should not be fatal.
2026-05-01 14:10:26 -07:00
Guillaume Lessard
8716b95f89
[test] skip tests rather than use conditional compilation
2026-05-01 14:10:16 -07:00
Guillaume Lessard
191408e05a
[test] temporary allocation tests with -strict-memory-safety
2026-05-01 14:07:58 -07:00
Max Desiatov
dcd67ec3ee
Add OutputRawSpan overload of withTemporaryAllocation
2026-05-01 00:14:51 +01:00
Max Desiatov
b347630fb7
withTemporaryAllocation: fix use of defer, add tests
2026-04-30 21:10:53 +01:00
Doug Gregor
3782db5ce1
Small fixes for typed throws in withUnsafeTemporaryAllocation
2025-08-26 17:09:07 -07:00
Doug Gregor
e96e1746bb
Adopt typed throws in withUnsafeTemporaryAllocation
...
The interior wrapping in Result<T, U> is a little unfortunate, but is
currently necessary because we end up with extra stack allocations
along the error-handling path in a do..catch that aren't there when
using untyped throws. We can simplify the implementation if we can
eliminate the extraneous stack allocation.
Fixes rdar://134973620.
2025-08-26 13:06:48 -07:00
Max Desiatov
ed7043cc0a
test/stdlib/TemporaryAllocation.swift: disable crashing tests on WASI
2023-07-22 14:42:48 +01:00
Erik Eckstein
b2512ab5cb
stdlib: add an underscored _withUnprotectedUnsafeTemporaryAllocation
...
This function is similar to `withUnsafeTemporaryAllocation`, except that it doesn't trigger stack protection for the stack allocated memory.
2023-02-15 08:20:48 +01:00
Jonathan Grynspan
f1bf7badba
[SE-0322] Temporary uninitialized buffers
...
Adds two new IRGen-level builtins (one for allocating, the other for deallocating), a stdlib shim function for enhanced stack-promotion heuristics, and the proposed public stdlib functions.
2021-10-25 11:20:10 -04:00