Skip to content

[WASM] Keep a PyObjectWeakRef to the PyObjectRef being moved to a closure #551

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

Merged
merged 4 commits into from
Mar 9, 2019

Conversation

coolreader18
Copy link
Member

@coolreader18 coolreader18 commented Feb 26, 2019

The mechanism could also be generalized to other Rc-held types that we need to keep for the lifetime of the VM, as I left open in the code.

@codecov-io
Copy link

codecov-io commented Feb 26, 2019

Codecov Report

Merging #551 into master will increase coverage by 0.07%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #551      +/-   ##
==========================================
+ Coverage   41.15%   41.23%   +0.07%     
==========================================
  Files          74       75       +1     
  Lines       16921    17105     +184     
  Branches     4471     4538      +67     
==========================================
+ Hits         6964     7053      +89     
- Misses       7929     8014      +85     
- Partials     2028     2038      +10
Impacted Files Coverage Δ
wasm/lib/src/vm_class.rs 0% <0%> (ø) ⬆️
wasm/lib/src/convert.rs 0% <0%> (ø) ⬆️
parser/src/ast.rs 22.7% <0%> (-8.37%) ⬇️
vm/src/stdlib/ast.rs 17.69% <0%> (-5.67%) ⬇️
vm/src/stdlib/string.rs 21.56% <0%> (-1.48%) ⬇️
vm/src/bytecode.rs 46.63% <0%> (-0.88%) ⬇️
vm/src/compile.rs 45.86% <0%> (-0.32%) ⬇️
vm/src/obj/objellipsis.rs 66.66% <0%> (ø)
parser/src/lexer.rs 56.99% <0%> (+1.26%) ⬆️
vm/src/pyobject.rs 60.42% <0%> (+1.26%) ⬆️
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a264017...6361380. Read the comment docs.

@coolreader18
Copy link
Member Author

@windelbouwman could you review this?

@cthulahoops cthulahoops merged commit 3730ca2 into RustPython:master Mar 9, 2019
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.

3 participants