Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/jlgen.jl
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ if VERSION >= v"1.11.0-DEV.1552"
@inline function methodinstance(@nospecialize(ft::Type), @nospecialize(tt::Type),
world::Integer=tls_world_age())
sig = signature_type_by_tt(ft, tt)
@assert Base.isdispatchtuple(sig) # JuliaLang/julia#52233
Copy link
Contributor

@vtjnash vtjnash Oct 18, 2024

Choose a reason for hiding this comment

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

The underlying function this ccalls may assert or segfault without this. There is probably a significant argument to be made that you should be using the public function which(sig) here, which doesn't have that footgun, but it currently doesn't know that it could optimize the isdispatchtuple case by calling jl_method_lookup_by_tt.


mi = ccall(:jl_method_lookup_by_tt, Any,
(Any, Csize_t, Any),
Expand Down
Loading