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

feat(runtime-core) Replace the field-offset crate by a custom offset_of! macro #955

Merged
merged 2 commits into from
Nov 13, 2019

Conversation

Hywan
Copy link
Contributor

@Hywan Hywan commented Nov 12, 2019

The field-offset crate is unmaintained. When using its offset_of!
macro on a struct with a field of type std::ptr::NonNull, in release
mode, it generates a sigill.

This patch removes the field-offset crate, and implements a custom
offset_of! macro.

See #925 last commits to see an illustration of this bug.

…et_of!` macro.

The `field-offset` crate is unmaintained. When using its `offset_of!`
macro on a struct with a field of type `std::ptr::NonNull`, in release
mode, it generates a sigill.

This patch removes the `field-offset` crate, and implements a custom
`offset_of!` macro.
@Hywan Hywan added bug Something isn't working 📦 lib-deprecated About the deprecated crates 🧪 tests I love tests labels Nov 12, 2019
@Hywan Hywan requested a review from bjfish as a code owner November 12, 2019 14:20
@Hywan
Copy link
Contributor Author

Hywan commented Nov 13, 2019

bors r+

1 similar comment
@Hywan
Copy link
Contributor Author

Hywan commented Nov 13, 2019

bors r+

bors bot added a commit that referenced this pull request Nov 13, 2019
955: feat(runtime-core) Replace the `field-offset` crate by a custom `offset_of!` macro r=Hywan a=Hywan

The `field-offset` crate is unmaintained. When using its `offset_of!`
macro on a struct with a field of type `std::ptr::NonNull`, in release
mode, it generates a sigill.

This patch removes the `field-offset` crate, and implements a custom
`offset_of!` macro.

See #925 last commits to see an illustration of this bug.

Co-authored-by: Ivan Enderlin <[email protected]>
@bors
Copy link
Contributor

bors bot commented Nov 13, 2019

Build succeeded

  • wasmerio.wasmer

@bors bors bot merged commit 8f20a28 into wasmerio:master Nov 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 📦 lib-deprecated About the deprecated crates 🧪 tests I love tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants