Skip to content

Convert all &mut VirtualMachine to &VirtualMachine #714

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 22, 2019

Conversation

coolreader18
Copy link
Member

@coolreader18 coolreader18 commented Mar 22, 2019

Resolves #713.

I did some fiddling in WASM cause I realized we didn't need whatever the heck I had done with AccessibleVMPtr, but otherwise it's just a regex &mut VirtualMachine -> &VirtualMachine.

@coolreader18
Copy link
Member Author

coolreader18 commented Mar 22, 2019

What I changed with WASM also stops it from completely invalidating a VM when code panics from inside a VM method, because it's no longer borrowing an entire RefCell that doesn't get dropped due to WASM's lack of panic=unwind.

@coolreader18 coolreader18 merged commit a9e2cc9 into master Mar 22, 2019
@coolreader18 coolreader18 deleted the coolreader18/immutable-vm-ref branch March 22, 2019 12:36
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