aboutsummaryrefslogtreecommitdiffstats
path: root/prog/alloc_test.go
Commit message (Collapse)AuthorAgeFilesLines
* all: remove loop variables scopingTaras Madan2025-02-171-1/+0
|
* tools/syz-linter: check t.Logf/Errorf/Fatalf messagesDmitry Vyukov2024-04-171-1/+1
| | | | | Fix checking of Logf, it has string in 0-th arg. Add checking of t.Errorf/Fatalf.
* pkg/testutil: add RandSource helperDmitry Vyukov2022-11-231-1/+3
| | | | | The code to send rand source is dublicated in several packages. Move it to testutil package.
* prog/alloc: align address allocation for aligned[addr]Albert van der Linde2020-07-141-18/+41
| | | | | | | | | Calls to alloc didn't respect the alignment attribute. Now Type.Alignment() is used to ensure each type is correctly aligned. Existing descriptions with [align[X]] don't have an issue as they align to small blocks and default align is to 64 bytes. This commits adds support for [align[X]] for an X larger than 64.
* .gometalinter.json: enable gofmtDmitry Vyukov2018-07-311-2/+2
| | | | | | | The part that we want from gofmt is simplify (-s). Fix all code that needs fixing. Update #538
* prog: rework address allocationDmitry Vyukov2018-02-191-0/+72
1. mmap all memory always, without explicit mmap calls in the program. This makes lots of things much easier and removes lots of code. Makes mmap not a special syscall and allows to fuzz without mmap enabled. 2. Change address assignment algorithm. Current algorithm allocates unmapped addresses too frequently and allows collisions between arguments of a single syscall. The new algorithm analyzes actual allocations in the program and places new arguments at unused locations.