Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion src/compiler/callsite.jl
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ struct MultiCallInfo <: CallInfo
end
get_ci(ci::MultiCallInfo) = error("Can't extract MethodInstance from multiple call informations")
get_rt(ci::MultiCallInfo) = ci.rt
get_effects(mci::MultiCallInfo) = mapreduce(get_effects, CC.merge_effects, mci.callinfos)
get_effects(mci::MultiCallInfo) = mapreduce(get_effects, CC.merge_effects, mci.callinfos; init=EFFECTS_TOTAL)
get_exct(ci::MultiCallInfo) = ci.exct

struct TaskCallInfo <: CallInfo
Expand Down
3 changes: 3 additions & 0 deletions test/test_Cthulhu.jl
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,9 @@ end
@test occursin("< opaque closure call > $s", String(take!(buf)))
end

# an empty MultiCallInfo has no effects to merge; `mapreduce` without `init` threw
@test Cthulhu.get_effects(Cthulhu.MultiCallInfo(Tuple{}, Any, Cthulhu.CallInfo[])) == Cthulhu.CC.EFFECTS_TOTAL

# tasks
ftask() = @sync @async show(io, "Hello")
let callsites = find_callsites_by_ftt(ftask, Tuple{})
Expand Down
Loading