zig/lib/std
Ryan Liptak c321b2f2a0 checkAllAllocationFailures: add possibility of SwallowedOutOfMemoryError (split from NondeterministicMemoryUsage)
Inducing failure but not getting OutOfMemory back is not as much of a problem as never inducing failure when it was expected to be induced, so treating them differently and allowing them to be handled differently by the caller is useful.

For example, the current implementation of `std.HashMapUnmanaged.getOrPutContextAdapted` always tries to grow and then recovers from OutOfMemory by attempting a lookup of an existing key. If this function is used (i.e. from `std.BufMap.putMove`) with `checkAllAllocationFailures`, then we'd have previously triggered `error.NondeterministicMemoryUsage`, but the real cause is that `OutOfMemory` is being recovered from and so the error is being swallowed. The new error allows us to both understand what's happening easier and to catch it and ignore it if we're okay with the code we're testing handling `error.OutOfMemory` without always bubbling it up.
2022-06-23 17:20:24 -07:00
..
atomic
build Rename std.build.Pkg.path to std.build.Pkg.source (#11557) 2022-05-26 19:32:28 -04:00
c add const to msghdr_const iov and control pointers 2022-06-07 15:23:44 -04:00
compress stage2: make error{} the same size as anyerror 2022-06-11 23:49:33 +03:00
crypto std/crypto: add support for ECDSA signatures (#11855) 2022-06-15 08:55:39 +02:00
dwarf wasm: Implement debug info for parameters 2022-05-09 18:51:46 +02:00
event std: disable tests that crash stage2 2022-06-03 20:21:20 +03:00
fmt add more corner case tests to float_parse (#11727) 2022-05-26 22:05:53 -04:00
fs math: make cast return optional instead of an error 2022-05-27 16:43:33 -04:00
hash
heap std: update tests to stage2 semantics 2022-06-03 20:21:20 +03:00
http std: add http definitions for Method and Status (#10661) 2022-05-11 15:43:18 -04:00
io Sema: add missing set_union_tag 2022-06-12 19:17:41 +03:00
json
math std.math.big.int: update Managed.toString() to use provided allocator (#11839) 2022-06-13 17:19:37 +02:00
mem Allocator: correct PanicFree function name 2022-05-02 15:29:27 -04:00
meta std.meta.TrailerFlags: improve init type 2022-05-04 21:26:48 +02:00
net std: adjust for stage2 semantics 2022-06-07 21:27:07 +03:00
os Sema: add missing set_union_tag 2022-06-12 19:17:41 +03:00
rand Add std.rand.RomuTrio 2022-05-24 22:48:51 -04:00
target
testing Add stack trace capturing to FailingAllocator 2022-06-23 17:01:56 -07:00
Thread math: make cast return optional instead of an error 2022-05-27 16:43:33 -04:00
time
tz
unicode
valgrind
x stage2: small fixes + adjustments to std tests 2022-06-11 23:49:33 +03:00
zig parser: sync comments with formal grammar 2022-06-08 21:53:06 +02:00
array_hash_map.zig Sema: solve a false positive "depends on itself" 2022-05-06 22:40:57 -07:00
array_list.zig
ascii.zig
atomic.zig
base64.zig
bit_set.zig stage2: check that struct is a tuple when value tags differ in eql 2022-06-17 21:04:21 +03:00
bounded_array.zig
buf_map.zig reverse some of the now unneeded changes from squeek 2022-05-11 18:41:23 -06:00
buf_set.zig
build.zig std.build: Expose -z norelro and -z lazy 2022-06-08 15:13:04 +02:00
builtin.zig Sema: improve index out of bounds panic message 2022-05-16 17:42:51 -07:00
c.zig std.c: Move Darwin-unspecific functions from std/c/darwin.zig to std/c.zig 2022-05-07 00:02:15 +09:00
child_process.zig math: make cast return optional instead of an error 2022-05-27 16:43:33 -04:00
coff.zig std.coff: parse out codebase and entrypoint from optionalheader 2022-04-28 18:31:20 +03:00
compress.zig stage2: small fixes + adjustments to std tests 2022-06-11 23:49:33 +03:00
comptime_string_map.zig
crypto.zig std/crypto: add support for ECDSA signatures (#11855) 2022-06-15 08:55:39 +02:00
cstr.zig
debug.zig add std.debug.Trace.format 2022-06-12 00:57:59 -07:00
dwarf.zig math: make cast return optional instead of an error 2022-05-27 16:43:33 -04:00
dynamic_library.zig math: make cast return optional instead of an error 2022-05-27 16:43:33 -04:00
elf.zig target: Rename sparcv9 -> sparc64 2022-05-13 16:43:59 -04:00
enums.zig
event.zig
fifo.zig
fmt.zig std: disable failing tests, add zig2 build test-std to CI 2022-06-12 10:43:28 +03:00
fs.zig std.fs: fix incorrect passing of pointer to temporary 2022-06-06 13:11:50 -07:00
hash.zig
hash_map.zig
heap.zig std: update tests to stage2 semantics 2022-06-03 20:21:20 +03:00
http.zig std: add http definitions for Method and Status (#10661) 2022-05-11 15:43:18 -04:00
io.zig
json.zig Sema: add missing set_union_tag 2022-06-12 19:17:41 +03:00
leb128.zig
linked_list.zig
log.zig
macho.zig
math.zig math: make cast return optional instead of an error 2022-05-27 16:43:33 -04:00
mem.zig Merge pull request #11837 from Vexu/stage2 2022-06-12 17:45:57 -04:00
meta.zig std: update tests to stage2 semantics 2022-06-03 20:21:20 +03:00
multi_array_list.zig std.MultiArrayList: add functions addOne, pop, and popOrNull (#11553) 2022-04-29 22:51:53 -04:00
net.zig std: adjust for stage2 semantics 2022-06-07 21:27:07 +03:00
once.zig
os.zig std.os.execvpe: fix buffer overflow 2022-06-21 11:21:45 +02:00
packed_int_array.zig
pdb.zig std.pdb: fix incorrect use of packed struct 2022-05-02 22:06:02 -07:00
priority_dequeue.zig
priority_queue.zig std: disable failing tests, add zig2 build test-std to CI 2022-06-12 10:43:28 +03:00
process.zig document that on Windows, all key arguments in EnvMap must be valid utf8 2022-05-11 18:41:23 -06:00
Progress.zig std.Progress.log: adjust API 2022-05-26 21:58:19 -07:00
rand.zig Add std.rand.RomuTrio 2022-05-24 22:48:51 -04:00
segmented_list.zig std: disable tests that crash stage2 2022-06-03 20:21:20 +03:00
SemanticVersion.zig
simd.zig std: adjust for stage2 semantics 2022-06-07 21:27:07 +03:00
sort.zig
start.zig target: Rename sparcv9 -> sparc64 2022-05-13 16:43:59 -04:00
start_windows_tls.zig
std.zig std: add http definitions for Method and Status (#10661) 2022-05-11 15:43:18 -04:00
target.zig Bump support macOS versions; clean up allocs in llvm.targetTriple 2022-05-22 22:31:41 +02:00
testing.zig checkAllAllocationFailures: add possibility of SwallowedOutOfMemoryError (split from NondeterministicMemoryUsage) 2022-06-23 17:20:24 -07:00
Thread.zig math: make cast return optional instead of an error 2022-05-27 16:43:33 -04:00
time.zig math: make cast return optional instead of an error 2022-05-27 16:43:33 -04:00
treap.zig
tz.zig std.tz: fix function returning pointer to local variable 2022-06-17 21:04:21 +03:00
unicode.zig Sema: handle tuple and anon_struct in resolveTypeFully 2022-06-11 11:02:56 +03:00
valgrind.zig
wasm.zig
x.zig stage2: small fixes + adjustments to std tests 2022-06-11 23:49:33 +03:00
zig.zig