Skip to content

Support resolving small_typeof tags#97

Merged
topolarity merged 1 commit into
mainfrom
ct/small_typeof
Nov 4, 2025
Merged

Support resolving small_typeof tags#97
topolarity merged 1 commit into
mainfrom
ct/small_typeof

Conversation

@topolarity

Copy link
Copy Markdown
Member

Resolves #96.

This avoids a segmentation fault when exploring these special type tags, which are not valid pointers on their own.

@topolarity topolarity requested a review from gbaraldi November 4, 2025 16:22
@topolarity topolarity changed the title Support resolving small_typeof type tags Support resolving small_typeof tags Nov 4, 2025
@topolarity topolarity force-pushed the ct/small_typeof branch 2 times, most recently from fc177e3 to 5a139ca Compare November 4, 2025 17:56
This avoids a segmentation fault when exploring these special type tags,
which are not valid pointers on their own.
@topolarity topolarity merged commit 0185fc6 into main Nov 4, 2025
5 of 6 checks passed
Comment thread src/classify.jl
function resolve_static_jl_value(val::LLVM.Value)
addr = resolve_static_uint(val)
addr === nothing && return nothing
return Base.unsafe_pointer_to_objref(Ptr{Cvoid}(addr))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally this would return a Some.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point

Currently only used to resolve types, so it should be benign - but you're right that we should fix this

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.

Segmentation fault when exploring Core.svec allocation on Julia 1.12+

2 participants