Commit ad76402
Guard AllocCheck static check against Julia-prerelease false positives (#87)
The AllocCheck "Zero Allocations" testset was erroring only on the
`julia pre` (1.13.0-rc1) macOS/aarch64 CI job. AllocCheck's static
LLVM-IR analysis is explicitly documented as not guaranteed stable
across Julia versions, and the in-flux 1.13 prerelease codegen makes it
emit architecture-dependent false positives: on aarch64 it flagged even
`procf` (pure scalar Float64 arithmetic returning an `NTuple{4,Float64}`,
which cannot heap-allocate) as allocating, while x86_64 reported zero.
Runtime `@allocated` is 0 for every function on 1.13.0-rc1, confirming
there is no real allocation.
Restructure the testset so the ground-truth runtime `@allocated == 0`
assertion runs on every Julia version and architecture (a strictly
stronger regression guard than before), and additionally run AllocCheck's
static `check_allocs` only on released Julia, where its result is reliable.
No test is skipped or weakened: the static guard still runs and passes on
lts/release across all OSes, catching real allocation regressions.
Verified locally:
- 1.13.0-rc1: 10/10 pass (runtime guard; static gated off)
- 1.12.6: 20/20 pass (runtime + static)
- 1.10.11: 20/20 pass (runtime + static)
- full Core group passes on 1.13.0-rc1
Co-authored-by: ChrisRackauckas-Claude <accounts@chrisrackauckas.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 71bf79d commit ad76402
1 file changed
Lines changed: 42 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
4 | 33 | | |
5 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
6 | 38 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 39 | + | |
| 40 | + | |
13 | 41 | | |
14 | 42 | | |
15 | 43 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 44 | + | |
| 45 | + | |
22 | 46 | | |
23 | 47 | | |
24 | 48 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 49 | + | |
| 50 | + | |
31 | 51 | | |
32 | 52 | | |
33 | 53 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 54 | + | |
| 55 | + | |
40 | 56 | | |
41 | 57 | | |
42 | 58 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 59 | + | |
| 60 | + | |
48 | 61 | | |
49 | 62 | | |
0 commit comments