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

vere: refactors event log metadata reading to avoid the loom #547

Merged
merged 2 commits into from
Nov 8, 2023

Conversation

joemfb
Copy link
Member

@joemfb joemfb commented Nov 7, 2023

This PR resolves a bug that I introduced in #531. I added stronger validation during event log initialization by checking for the presence of metadata, but that was allocating on the loom (in the case of 32-bit or greater ships and/or lives). There are various chicken-and-egg problems with initializing old event logs for replay, so it seems best to just remove this whole operation from the loom.

@joemfb joemfb requested a review from pkova November 7, 2023 16:13
@joemfb joemfb marked this pull request as ready for review November 7, 2023 16:13
@joemfb joemfb requested a review from a team as a code owner November 7, 2023 16:13
matthew-levan
matthew-levan previously approved these changes Nov 7, 2023
Copy link
Contributor

@matthew-levan matthew-levan left a comment

Choose a reason for hiding this comment

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

Tested with a fake ~dostec-risfen (0xffff.ffff); this fixes the bug discussed earlier this morning. I booted it, rolled it, then restarted it successfully. Only question: How come we don't have to check if fak_o is non-zero on line 761?

@joemfb
Copy link
Member Author

joemfb commented Nov 7, 2023

@matthew-levan if the length is non-zero, the fake-bit should always be 1. but it's probably better to read that out explicitly regardless. thanks

@joemfb joemfb merged commit 78ea546 into develop Nov 8, 2023
5 checks passed
@joemfb joemfb deleted the jb/disk-safe-meta branch November 8, 2023 00:03
pkova added a commit that referenced this pull request Nov 8, 2023
#547 was not quite enough to get `~binnec-dozzod-marzod` back online.
This one is. Thanks to @mopfel-winrux for the solution.
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