Skip to content

simple and blunt fix for BiVariableMap memory leak#9331

Draft
matthias-fratz-bsz wants to merge 1 commit intojruby:masterfrom
matthias-fratz-bsz:bivariablemap-simple-memory-leak-fix
Draft

simple and blunt fix for BiVariableMap memory leak#9331
matthias-fratz-bsz wants to merge 1 commit intojruby:masterfrom
matthias-fratz-bsz:bivariablemap-simple-memory-leak-fix

Conversation

@matthias-fratz-bsz
Copy link
Copy Markdown
Contributor

This introduces an attribute SHARING_INSTANCE_VARIABLES to control whether instance variables are accessible via the embedding interface. It is disabled by default and has a clear warning that enabling it will lead to a memory leak unless cleaned up manually.

This is incomplete; I haven't adjusted the testcase yet. The testcase would now need to test the different behaviors with SHARING_INSTANCE_VARIABLES enabled and disabled, respectively. However, I think the code already shows the "simple and blunt" way of fixing the #8527 memory leak.

This introduces an attribute SHARING_INSTANCE_VARIABLES to control whether
instance variables are accessible via the embedding interface. It is
disabled by default and has a clear warning that enabling it will lead to
a memory leak unless cleaned up manually.
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.

1 participant