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

fix(xsnap): use newer xsnap-pub, with requirement for __has_builtin #7830

Merged
merged 1 commit into from
May 24, 2023

Conversation

warner
Copy link
Member

@warner warner commented May 24, 2023

This switches to a version of xsnap-pub that adds a compile-time assertion of the availability of __has_builtin(). This function was added to gcc-10, and was missing in gcc-9. XS can produce different heap snapshots depending upon whether this function is available or not (breaking consensus, which includes the heap snapshot hashes). By mandating its presence, we ensure that all instances will behave the same way, maintaining consensus.

closes #7829

@warner warner added the xsnap the XS execution tool label May 24, 2023
@warner warner self-assigned this May 24, 2023
@warner
Copy link
Member Author

warner commented May 24, 2023

uses the xsnap change from agoric-labs/xsnap-pub#40

@warner warner requested a review from michaelfig May 24, 2023 01:04
@warner warner force-pushed the 7829-require-has-builtin branch from f3219f4 to 678624f Compare May 24, 2023 02:03
@warner
Copy link
Member Author

warner commented May 24, 2023

oops, forgot to build and include the build.env changes, I don't think review has started yet so I force-pushed the squashed fixup

@warner warner requested a review from arirubinstein May 24, 2023 02:12
Copy link
Contributor

@ivanlei ivanlei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

This switches to a version of `xsnap-pub` that adds a compile-time
assertion of the availability of `__has_builtin()`. This function was
added to gcc-10, and was missing in gcc-9. XS can produce different
heap snapshots depending upon whether this function is available or
not (breaking consensus, which includes the heap snapshot hashes). By
mandating its presence, we ensure that all instances will behave the
same way, maintaining consensus.

closes #7829
@warner warner force-pushed the 7829-require-has-builtin branch from 678624f to 1a10242 Compare May 24, 2023 02:56
@warner warner merged commit 99de101 into release-mainnet1B May 24, 2023
@warner warner deleted the 7829-require-has-builtin branch May 24, 2023 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
xsnap the XS execution tool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants