Skip to content

staticdata: restore extext_methods and new_ext_cis to inspector svec#61868

Open
IanButterworth wants to merge 1 commit into
JuliaLang:masterfrom
IanButterworth:ib/pkgcacheinspector_fix
Open

staticdata: restore extext_methods and new_ext_cis to inspector svec#61868
IanButterworth wants to merge 1 commit into
JuliaLang:masterfrom
IanButterworth:ib/pkgcacheinspector_fix

Conversation

@IanButterworth
Copy link
Copy Markdown
Member

Found working on timholy/PkgCacheInspector.jl#37

Claude:


jl_restore_package_image_from_stream (with completeinfo=true) loads extext_methods (the worklist-owned TypeMapEntry extensions of external functions) and new_ext_cis (new external CodeInstance specializations), GC-roots them, and feeds them to internal callers, but the final 5-element svec returned at the end of the function discards both arrays. External inspectors (e.g.
PkgCacheInspector.jl) therefore have no way to enumerate either: the internal_methods array exposed in the svec is populated only as a side-effect of the fixup walk and on every package image examined contained zero TypeMapEntry objects.

Return both arrays alongside internal_methods in a 7-element svec so the information is once again accessible.

`jl_restore_package_image_from_stream` (with `completeinfo=true`) loads
`extext_methods` (the worklist-owned `TypeMapEntry` extensions of
external functions) and `new_ext_cis` (new external `CodeInstance`
specializations), GC-roots them, and feeds them to internal callers,
but the final 5-element svec returned at the end of the function
discards both arrays. External inspectors (e.g.
PkgCacheInspector.jl) therefore have no way to enumerate either: the
`internal_methods` array exposed in the svec is populated only as a
side-effect of the fixup walk and on every package image examined
contained zero `TypeMapEntry` objects.

Return both arrays alongside `internal_methods` in a 7-element svec so
the information is once again accessible.

Co-authored-by: GitHub Copilot (Claude Opus 4.7) <noreply@github.com>

Written with the assistance of generative AI (GitHub Copilot, Claude Opus 4.7).
@IanButterworth IanButterworth added the backport 1.13 Change should be backported to release-1.13 label May 21, 2026
@KristofferC KristofferC mentioned this pull request May 25, 2026
50 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 1.13 Change should be backported to release-1.13

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant