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

JuliaLang / julia / 435
78%

Build:
DEFAULT BRANCH: master
Ran 01 Sep 2026 09:58PM UTC
Jobs 3
Files 356
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

01 Sep 2026 06:42AM UTC coverage: 78.335%. First build
435

push

buildkite

web-flow
Don't re-infer compiled CodeInstance from external images (#61479)

998cb27 introduced a regression that, when invoking a CodeInstance
from an external image, would result in the generation of a tojlinvoke
trampoline for every invoke but the first (in the order `compile!`
infers them).

```julia
module P2

function what(x)
    try
        show(x)
    catch e
        rethrow()
    end
end

what(1) # calls julia_rethrow_88_gfthunk
what(:a) # calls julia_rethrow_88_gfthunk
what('a') # calls jlpkg_rethrow_0

end # module P2
```

After inferring the first use of `rethrow` in this example, `compile!` would
find no source for the CodeInstance and infer it again, with
`source_mode=SOURCE_MODE_GET_SOURCE`.  It then inserts the resulting new
CodeInstance into the `code_cache`.  Before 998cb27, this went into the
InternalCodeCache, which would insert it after any CodeInstances with the
`invoke` field set.  Now, it is inserted into the OverlayCodeCache, which takes
priority over the InternalCodeCache.  For the two remaining specializations of
`what`, this new CodeInstance is used for the invoke.

Since it's a waste to re-infer this CodeInstance when we have
`external_linkage`, it makes more sense to thread this through to `compile!`
and skip any CodeInstances that are from the image.

Thanks to mlechu for helping track down this issue and providing the
MWE.

3 of 4 new or added lines in 1 file covered. (75.0%)

69472 of 88686 relevant lines covered (78.33%)

24240076.0 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
85.9
Compiler/src/typeinfer.jl
Jobs
ID Job ID Ran Files Coverage
435 linux - 435 02 Sep 2026 02:49AM UTC 355
76.9
435 windows - 435 02 Sep 2026 01:10AM UTC 322
76.4
435 macos - 435 01 Sep 2026 09:58PM UTC 356
76.85
Source Files on build 435
  • Tree
  • List 356
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 21a70e45 on github
  • Prev Build on master (#429)
  • Next Build on master (#453)
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