Skip to content

Register the LBT on-load callback as a Libdl.LazyLibraryCallback - #1751

Open
topolarity wants to merge 1 commit into
masterfrom
ct/lazylibrary-callback
Open

topolarity wants to merge 1 commit into
masterfrom
ct/lazylibrary-callback

Conversation

@topolarity

@topolarity topolarity commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

For compatibility with JuliaLang/julia#63709.

No behavior change for existing versions of Julia - this is just a hint to help --trim out with these callbacks.

Assisted-by: Claude Code (Opus 5.5)

@topolarity
topolarity force-pushed the ct/lazylibrary-callback branch from 4d70033 to e7d9187 Compare October 9, 2026 20:04
Julia's `LazyLibrary` replaces the internal `_on_load_c_callback` C
function pointer with `Libdl.LazyLibraryCallback`, an abstract type whose
`(::T)()` methods `--trim` compiles unconditionally. Register OpenBLAS's
libblastrampoline on-load callback as one, so that it remains callable in
trimmed executables while keeping ordinary Julia world-age semantics.
Older Julia versions keep the plain function.

Assisted-by: Claude Code (Opus 5.5)
@topolarity
topolarity force-pushed the ct/lazylibrary-callback branch from e7d9187 to 6a826ff Compare October 9, 2026 20:06
@codecov

codecov Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.12%. Comparing base (802d661) to head (6a826ff).
⚠️ Report is 33 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1751      +/-   ##
==========================================
+ Coverage   97.03%   97.12%   +0.09%     
==========================================
  Files          35       35              
  Lines       17056    17285     +229     
==========================================
+ Hits        16550    16788     +238     
+ Misses        506      497       -9     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant