julia
6d9cc97d - ccall: record the library object and `cglobal` caches of foreign symbols

Commit
23 days ago
ccall: record the library object and `cglobal` caches of foreign symbols Keep the library of a `ccall` / `cglobal` that is a constant other than a name (`String` / `Symbol`) in the foreign symbol it resolves to, and record the `cglobal` address caches keyed by foreign symbol, like the stubs of `ccall`. Linking then sees one record of every foreign symbol and its library. The cache map also replaces the per-library maps that `runtime_sym_gv` kept to share a cache between uses of the same static name and library; a symbol looked up at run time still gets a cache of its own. Assisted-by: Claude Code (Claude Opus 5.5)
Author
Committer
Parents
Loading