Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check that MethodInstance.def is Method #46148

Closed
wants to merge 1 commit into from
Closed

Conversation

timholy
Copy link
Member

@timholy timholy commented Jul 23, 2022

This may fix #45444. The alternative possibility is that #45444 is a GC-related issue, but this change may be worth having anyway.

@vchuravy
Copy link
Member

@nanosoldier runtests(ALL, vs = ":master")

Comment on lines +1303 to +1304
assert(jl_is_method_instance(caller));
if (jl_is_method(caller->def.method) && (module_in_worklist(caller->def.method->module) || method_instance_in_queue(caller))) {
Copy link
Member

Choose a reason for hiding this comment

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

AFIAK, we should never see this happen (since Core.Compiler.store_backedges shouldn't make these edges). Though we could also have jl_method_instance_add_backedge ensure that it does not create them too.

Suggested change
assert(jl_is_method_instance(caller));
if (jl_is_method(caller->def.method) && (module_in_worklist(caller->def.method->module) || method_instance_in_queue(caller))) {
assert(jl_is_method_instance(caller) && jl_is_method(caller->def.method));
if (module_in_worklist(caller->def.method->module) || method_instance_in_queue(caller))) {

@vtjnash vtjnash closed this Jul 25, 2022
@vtjnash vtjnash deleted the teh/maybe_fix_45444 branch July 25, 2022 19:27
@nanosoldier
Copy link
Collaborator

Your package evaluation job has completed - possible new issues were detected. A full report can be found here.

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 in jl_collect_backedges
4 participants