0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib/std
Andrew Kelley e2e60f5ff9 std.heap.WasmAllocator: redo
The previous version had a fatal flaw: it did ensureCapacity(1) on the
freelist when allocating, but I neglected to consider that you could
free() twice in a row. Silly!

This strategy allocates an intrusive freelist node with every
allocation, big or small. It also does not have the problems with resize
because in this case we can push the upper areas of freed stuff into the
corresponding freelist.
History 2022-11-29 23:46:02 -07:00
..
atomic tests: Enable PPC64LE as a test target 2022-10-13 12:53:20 -07:00
build std.build: fix typo 2022-11-15 23:23:27 +02:00
c run zig fmt on everything checked by CI 2022-11-18 19:22:42 +00:00
compress all: rename @maximum to @max and @minimum to @min 2022-10-18 14:15:16 +03:00
crypto std.crypto.edwards25519: add a rejectLowOrder() function (#13668) 2022-11-28 00:34:13 +01:00
dwarf wasm: Implement debug info for parameters 2022-05-09 18:51:46 +02:00
event enable event loop for ios, tvos, and watchos 2022-10-13 13:33:45 +02:00
fmt stage2+stage1: remove type parameter from bit builtins 2022-08-22 11:19:20 +03:00
fs std.mem.Allocator: allow shrink to fail 2022-11-29 23:30:38 -07:00
hash std: re-enable auto hash test 2022-10-30 01:09:31 -07:00
heap std.heap.WasmAllocator: redo 2022-11-29 23:46:02 -07:00
http std.http: fix typo 2022-10-06 21:22:20 +03:00
io std.mem.Allocator: allow shrink to fail 2022-11-29 23:30:38 -07:00
json std.json: Fix parsing of large numbers 2022-07-23 13:52:16 +03:00
math stage2: fix crash on comptime lazy @ctz and @clz 2022-11-29 23:30:38 -07:00
mem std.mem.Allocator: allow shrink to fail 2022-11-29 23:30:38 -07:00
meta std.mem.Allocator: allow shrink to fail 2022-11-29 23:30:38 -07:00
net AstGen: fix loop control flow applying to wrong loop 2022-07-13 16:10:41 -07:00
os Merge pull request #13659 from ziglang/arm-win-cpu-features 2022-11-28 21:36:56 +01:00
rand std.rand: make weightedIndex proportions param a const slice 2022-08-30 13:02:17 +03:00
target arm: move cpu model table into system/arm.zig 2022-11-28 17:07:35 +01:00
testing std.mem.Allocator: allow shrink to fail 2022-11-29 23:30:38 -07:00
Thread std.Thread.Futex.PosixImpl.Address.from: fix alignment type 2022-11-28 18:49:33 +02:00
time std.time.epoch: fix issue in documentation 2021-12-16 19:08:58 -08:00
tz Support legacy TZ format, expose header struct to a potential writer 2022-01-01 12:47:08 +00:00
unicode migrate from std.Target.current to @import("builtin").target 2021-10-04 23:48:55 -07:00
valgrind std.valgrind.callgrind: fix string type 2022-08-22 13:55:00 +03:00
x x/os/Reactor: implement remove function (#13330) 2022-11-13 17:43:29 +02:00
zig std.mem.Allocator: allow shrink to fail 2022-11-29 23:30:38 -07:00
array_hash_map.zig std.mem.Allocator: allow shrink to fail 2022-11-29 23:30:38 -07:00
array_list.zig std.mem.Allocator: allow shrink to fail 2022-11-29 23:30:38 -07:00
ascii.zig Fix deprecation docs for isAlpha and isCntrl 2022-10-29 15:22:05 -04:00
atomic.zig all: rename i386 to x86 2022-11-04 00:09:27 +03:30
base64.zig std: Replace use of stage1 function pointers 2022-09-29 21:45:30 +03:00
bit_set.zig fix(text): hyphenate "runtime" adjectives 2022-10-05 21:33:42 +02:00
bounded_array.zig AstGen: detect declarations shadowing locals 2022-08-16 20:35:03 +03:00
buf_map.zig reverse some of the now unneeded changes from squeek 2022-05-11 18:41:23 -06:00
buf_set.zig std.BufSet.clone: fix key ownership 2022-03-01 13:28:47 -05:00
build.zig std.mem.Allocator: allow shrink to fail 2022-11-29 23:30:38 -07:00
builtin.zig Sema: add option to disable formatted panics 2022-11-29 21:44:08 +02:00
c.zig pthread_sigmask 2022-11-13 17:36:56 +02:00
child_process.zig std.mem.Allocator: allow shrink to fail 2022-11-29 23:30:38 -07:00
coff.zig run zig fmt on everything checked by CI 2022-11-18 19:22:42 +00:00
compress.zig stage2: small fixes + adjustments to std tests 2022-06-11 23:49:33 +03:00
comptime_string_map.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
crypto.zig std.crypto.auth: add AEGIS MAC (#13607) 2022-11-22 18:16:04 +01:00
cstr.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
debug.zig std.mem.Allocator: allow shrink to fail 2022-11-29 23:30:38 -07:00
dwarf.zig std.debug: DWARFv5 fixes 2022-08-23 21:11:02 -07:00
dynamic_library.zig math: make cast return optional instead of an error 2022-05-27 16:43:33 -04:00
elf.zig run zig fmt on everything checked by CI 2022-11-18 19:22:42 +00:00
enums.zig fix(text): hyphenate "comptime" adjectives 2022-10-05 21:19:30 +02:00
event.zig std, compiler-rt: remove test names where applicable 2021-09-01 17:54:06 -07:00
fifo.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
fmt.zig Make invalidFmtError public and use in place of compileErrors for bad format strings (#13526) 2022-11-12 21:03:24 +02:00
fs.zig fs: Some NAME_MAX/MAX_NAME_BYTES improvements 2022-10-29 14:30:46 -07:00
hash.zig lint: duplicate import (#10519) 2022-01-07 00:06:06 -05:00
hash_map.zig std: remove deprecated API for the upcoming release 2022-09-16 14:46:53 -04:00
heap.zig std.heap.WasmAllocator: redo 2022-11-29 23:46:02 -07:00
http.zig std: add http definitions for Method and Status (#10661) 2022-05-11 15:43:18 -04:00
io.zig coff: compile and link simple exit program on arm64 2022-11-05 10:15:01 +01:00
json.zig std.mem.Allocator: allow shrink to fail 2022-11-29 23:30:38 -07:00
leb128.zig stage2+stage1: remove type parameter from bit builtins 2022-08-22 11:19:20 +03:00
linked_list.zig chore: Remove unused constants 2022-09-11 23:18:43 -04:00
log.zig std: remove deprecated API for the upcoming release 2022-09-16 14:46:53 -04:00
macho.zig run zig fmt on everything checked by CI 2022-11-18 19:22:42 +00:00
math.zig Implements std.math.sign for float vectors. 2022-11-12 15:41:55 +02:00
mem.zig std.mem.Allocator: allow shrink to fail 2022-11-29 23:30:38 -07:00
meta.zig Merge pull request #13338 from Vexu/stage2-compile-errors 2022-11-04 16:04:31 +02:00
multi_array_list.zig std.mem.Allocator: allow shrink to fail 2022-11-29 23:30:38 -07:00
net.zig std.mem.Allocator: allow shrink to fail 2022-11-29 23:30:38 -07:00
once.zig std.Thread.Mutex: change API to lock() and unlock() 2021-11-09 18:31:03 -07:00
os.zig std.os: Fix std.os.chdir for WASI 2022-11-26 22:06:15 +02:00
packed_int_array.zig stage2+stage1: remove type parameter from bit builtins 2022-08-22 11:19:20 +03:00
pdb.zig std.mem.Allocator: allow shrink to fail 2022-11-29 23:30:38 -07:00
priority_dequeue.zig std: remove deprecated API for the upcoming release 2022-09-16 14:46:53 -04:00
priority_queue.zig std: remove deprecated API for the upcoming release 2022-09-16 14:46:53 -04:00
process.zig process.zig: remove unused function getSelfExeSharedLibPaths 2022-11-16 18:51:11 -05:00
Progress.zig Revert recent std.Progress implementation changes 2022-10-18 18:53:44 -07:00
rand.zig rand: add enumValueWithIndex 2022-11-07 02:46:19 +01:00
segmented_list.zig std.mem.Allocator: allow shrink to fail 2022-11-29 23:30:38 -07:00
SemanticVersion.zig Make invalidFmtError public and use in place of compileErrors for bad format strings (#13526) 2022-11-12 21:03:24 +02:00
simd.zig all: rename @maximum to @max and @minimum to @min 2022-10-18 14:15:16 +03:00
sort.zig std: add sort method to ArrayHashMap and MultiArrayList 2022-03-10 13:13:17 -05:00
start.zig all: rename i386 to x86 2022-11-04 00:09:27 +03:30
start_windows_tls.zig Merge pull request #13101 from alichraghi/o4 2022-11-05 02:34:24 -04:00
std.zig std: add http definitions for Method and Status (#10661) 2022-05-11 15:43:18 -04:00
target.zig spirv: assembler 2022-11-23 19:17:58 +01:00
testing.zig std.os: Fix std.os.chdir for WASI 2022-11-26 22:06:15 +02:00
Thread.zig all: rename i386 to x86 2022-11-04 00:09:27 +03:30
time.zig std.time: add microTimestamp() (#13327) 2022-11-02 23:20:19 +01:00
treap.zig treap: zig fmt 2022-04-15 17:01:01 -05:00
tz.zig std.tz: fix function returning pointer to local variable 2022-06-17 21:04:21 +03:00
unicode.zig std.mem.Allocator: allow shrink to fail 2022-11-29 23:30:38 -07:00
valgrind.zig LLVM: add valgrind integration for x86 and aarch64 2022-11-19 19:32:45 -07:00
wasm.zig Make invalidFmtError public and use in place of compileErrors for bad format strings (#13526) 2022-11-12 21:03:24 +02:00
x.zig stage2: small fixes + adjustments to std tests 2022-06-11 23:49:33 +03:00
zig.zig fmt: canonicalize identifiers 2022-11-18 19:22:42 +00:00