Files
tinygo/testdata
Jake Bailey 02021b5853 runtime: preserve malloc allocations until free
C malloc storage has explicit lifetime: it must remain allocated until
free even when no GC-visible pointer references it. Treating it as an
ordinary NoPtrs allocation breaks bare-metal C object graphs, while
conservatively scanning arbitrary C bytes creates false Go roots.

Add allocManual/freeManual so collectors can represent pointer-free,
explicitly managed storage. Block GC keeps these objects permanently
marked and releases their blocks on free; Boehm uses atomic uncollectable
allocations; leaking and custom collectors provide equivalent behavior.
Wasm keeps its allocation map only for validation and sizes, and WASIp2
realloc now copies min(oldSize, newSize).

Bump the Boehm library cache version because enabling atomic
uncollectable allocations changes its compiled flags and exported API.

Also handle zero-size and overflowing allocations, serialize allocation
registries, reject Go finalizers on manual storage, and add CGo regressions
for C pointer graphs, hidden until-free allocations, repeated free/reuse,
and allocation edge cases.
2026-09-10 08:49:07 +02:00
..
2026-05-25 16:58:01 +02:00
2026-08-29 08:41:43 +02:00
2026-08-29 08:41:43 +02:00
2019-09-20 10:35:49 +02:00
2019-09-20 10:35:49 +02:00
2026-04-09 16:19:33 +01:00
2021-04-09 18:33:48 +02:00
2026-09-10 08:49:07 +02:00
2024-05-13 16:49:18 +02:00
2021-04-09 18:33:48 +02:00
2026-09-10 08:49:07 +02:00
2024-12-01 11:12:00 +01:00
2024-10-23 12:25:27 +01:00
2024-10-23 12:25:27 +01:00
2020-10-23 21:37:35 +02:00
2020-10-23 21:37:35 +02:00
2019-10-13 23:07:47 +02:00
2019-10-13 23:07:47 +02:00
2024-10-19 16:00:45 +01:00
2024-10-19 16:00:45 +01:00
2020-05-12 01:17:27 +02:00