• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

JuliaLang / julia / 1774
93%

Build:
DEFAULT BRANCH: master
Ran 24 Nov 2026 10:52PM UTC
Jobs 3
Files 386
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

24 Nov 2026 09:02PM UTC coverage: 93.051% (+0.4%) from 92.634%
1774

push

buildkite

web-flow
cgmemmgr: CodeModel-aware memory management (#60915)

As described in #60245, we're unable to use the optimized memory manager
on architectures where the default CodeModel is not `Large`.  Since
`mmap()` will generally put new mappings close to each other,
allocations will succeed until the address space becomes fragmented
enough that an RW allocation lands sufficiently far from the
corresponding RX allocation, such that a relocation in the code fails.

This PR implements a new `JLJITLinkMemoryManager`, which is intended to
have lower memory use than `orc::MapperJITLinkMemoryManager` and support
non-large code models, unlike the old Julia CG memory manager.  We
accomplish this by reserving a block in the address space that is
smaller than the maximum distance for relocations on the current
architecture, putting the code and data sections inside this block:

```
    v-- 2^JULIA_CGMEM_BLOCK_SIZE --v

 ---+---------------------+--------+----
    | RX                  | RW     |
 ---+---------------------+--------+----
```

We make allocations inside the RX and RW regions (read-only data goes
into the RX region for compactness) until one or the other is full, then
we unmap unused pages and make a new block elsewhere.  The size of a
block can be set with `JULIA_CGMEM_BLOCK_SIZE`, while the ratio of RX to
RW within the block is fixed, based on empirical measurements.  If an
allocation requires more space than is available in a single block,
contiguous pages are allocated at an arbitrary address for it.

Assisted-by: Claude Code (Fable 5.2)

102479 of 110132 relevant lines covered (93.05%)

447.04 hits per line

Coverage Regressions

Lines Coverage ∆ File
219
90.41
0.14% base/loading.jl
72
92.62
0.13% Compiler/src/tfuncs.jl
67
93.17
-0.0% Compiler/src/abstractinterpretation.jl
55
95.49
0.13% Compiler/src/ssair/inlining.jl
29
93.57
-0.05% base/abstractarray.jl
27
93.86
9.29% base/file.jl
21
88.78
0.6% stdlib/LibGit2/src/LibGit2.jl
18
85.71
0.05% stdlib/LibGit2/src/callbacks.jl
16
88.97
28.82% base/path.jl
15
97.61
0.03% JuliaLowering/src/scope_analysis.jl
12
89.91
0.09% JuliaLowering/src/syntax_macros.jl
11
70.11
44.83% stdlib/InteractiveUtils/src/clipboard.jl
9
83.76
0.04% base/syntax.jl
5
97.26
0.43% stdlib/InteractiveUtils/src/macros.jl
5
96.98
0.06% stdlib/Dates/src/types.jl
5
95.86
1.5% base/views.jl
4
81.88
0.24% base/util.jl
3
86.88
-0.08% Compiler/src/inferenceresult.jl
3
97.87
-0.19% base/summarysize.jl
2
96.68
-0.55% stdlib/InteractiveUtils/src/codeview.jl
2
98.17
0.03% stdlib/LibGit2/src/gitcredential.jl
1
98.59
0.0% base/module.jl
1
98.84
0.01% stdlib/LibGit2/src/index.jl
1
97.22
-0.04% stdlib/LibGit2/src/commit.jl
1
82.17
-0.91% stdlib/InteractiveUtils/src/editless.jl
Jobs
ID Job ID Ran Files Coverage
1774 windows - 1774 24 Nov 2026 11:46PM UTC 385
91.21
1774 linux - 1774 24 Nov 2026 11:19PM UTC 386
92.55
1774 macos - 1774 24 Nov 2026 10:52PM UTC 386
91.94
Source Files on build 1774
  • Tree
  • List 386
  • Changed 104
  • Source Changed 34
  • Coverage Changed 99
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 12860f4e on github
  • Prev Build on master (#1739)
  • Next Build on master (#1796)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc