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

Work around Windows arm64 crash #191

Merged
merged 2 commits into from Jul 22, 2019
Merged

Work around Windows arm64 crash #191

merged 2 commits into from Jul 22, 2019

Conversation

@jdm
Copy link
Member

jdm commented Jul 22, 2019

Running Servo's UWP app on an arm64 device, I encountered crashes creating global options where the app segfaulted when creating RealmOptions values. The crashes disappear when we allocate them on the heap instead of returning them by value.


This change is Reviewable

@asajeffrey
Copy link
Member

asajeffrey commented Jul 22, 2019

@bors-servo
Copy link
Contributor

bors-servo commented Jul 22, 2019

📌 Commit 6663e98 has been approved by asajeffrey

@bors-servo
Copy link
Contributor

bors-servo commented Jul 22, 2019

Testing commit 6663e98 with merge 6dff104...

bors-servo added a commit that referenced this pull request Jul 22, 2019
Work around Windows arm64 crash

Running Servo's UWP app on an arm64 device, I encountered crashes creating global options where the app segfaulted when creating RealmOptions values. The crashes disappear when we allocate them on the heap instead of returning them by value.

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

bors-servo commented Jul 22, 2019

💔 Test failed - checks-travis

@bors-servo
Copy link
Contributor

bors-servo commented Jul 22, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: asajeffrey
Pushing 6dff104 to master...

@bors-servo bors-servo merged commit 6663e98 into master Jul 22, 2019
5 checks passed
5 checks passed
Travis CI - Branch Build Passed
Details
Travis CI - Pull Request Build Passed
Details
continuous-integration/appveyor/branch AppVeyor build succeeded
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
homu Test successful
Details
bors-servo added a commit to servo/rust-mozjs that referenced this pull request Jul 23, 2019
Work around Windows arm64 crashes

This creates a nicer API around the RealmOptions changes from servo/mozjs#191. This also works around crashes encountered when passing jsid values by value.

<!-- 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/467)
<!-- Reviewable:end -->
bors-servo added a commit to servo/rust-mozjs that referenced this pull request Jul 23, 2019
Work around Windows arm64 crashes

This creates a nicer API around the RealmOptions changes from servo/mozjs#191. This also works around crashes encountered when passing jsid values by value.

<!-- 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/467)
<!-- Reviewable:end -->
bors-servo added a commit to servo/rust-mozjs that referenced this pull request Jul 23, 2019
Work around Windows arm64 crashes

This creates a nicer API around the RealmOptions changes from servo/mozjs#191. This also works around crashes encountered when passing jsid values by value.

<!-- 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/467)
<!-- 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.