Skip to content

views: fix finalization for subview#401

Open
IvanGrigorik wants to merge 2 commits intomainfrom
grigorik/subview-fix
Open

views: fix finalization for subview#401
IvanGrigorik wants to merge 2 commits intomainfrom
grigorik/subview-fix

Conversation

@IvanGrigorik
Copy link
Copy Markdown
Collaborator

#321 added view registry and weakrefs to catch finalize-related issues (finalize after program termination), but there was no added same view registry entry for subviews.

The ExaMiniMD benchmark also requires this fix, since it uses subviews. We also need it in general for view correctness,

Comment on lines +635 to +636
except (ImportError, AttributeError):
pass
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Just a question, why would get ImportError or AttributeError 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.

2 participants