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

Allow interior mutability of Heap objects. #328

Merged
merged 1 commit into from Jan 27, 2017
Merged

Conversation

@asajeffrey
Copy link
Member

asajeffrey commented Jan 27, 2017

Over in servo/servo#15120, there's an implementation of WindowProxy to Window bindings, which updates the WindowProxy when navigation happens. This requires mutating the reflector, which is a lot easier if Heap implements interior mutability. Heap already has an UnsafeCell internally, so the only change is that Heap::set takes a &self rather than a &mut self.


This change is Reviewable

@asajeffrey
Copy link
Member Author

asajeffrey commented Jan 27, 2017

r? @jdm

@asajeffrey asajeffrey mentioned this pull request Jan 27, 2017
4 of 4 tasks complete
@jdm
Copy link
Member

jdm commented Jan 27, 2017

@bors-servo
Copy link
Contributor

bors-servo commented Jan 27, 2017

📌 Commit 00956df has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented Jan 27, 2017

Testing commit 00956df with merge eec73ea...

bors-servo added a commit that referenced this pull request Jan 27, 2017
Allow interior mutability of Heap objects.

Over in servo/servo#15120, there's an implementation of `WindowProxy` to `Window` bindings, which updates the `WindowProxy` when navigation happens. This requires mutating the reflector, which is a lot easier if `Heap` implements interior mutability. `Heap` already has an `UnsafeCell` internally, so the only change is that `Heap::set` takes a `&self` rather than a `&mut self`.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-mozjs/328)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Jan 27, 2017

☀️ Test successful - status-appveyor, status-travis

@bors-servo bors-servo merged commit 00956df into servo:master Jan 27, 2017
2 checks passed
2 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
homu Test successful
Details
@asajeffrey asajeffrey mentioned this pull request Jan 27, 2017
bors-servo added a commit that referenced this pull request Jan 27, 2017
Bump version.

Version bump for #328. r? @jdm

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-mozjs/329)
<!-- Reviewable:end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.