This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Free disputed cores before processing bitfields#4008
Merged
6 commits merged intomasterfrom Oct 4, 2021
Merged
Conversation
ordian
approved these changes
Oct 4, 2021
| }; | ||
|
|
||
| if !freed_disputed.is_empty() { | ||
| freed_disputed.sort_unstable_by_key(|pair| pair.0); // sort by core index |
There was a problem hiding this comment.
if the assumption of core uniqueness can be invalidated in the future (with "hyperthreads"?), I'd suggest using stable sort. Otherwise including the reasoning as a comment why using unstable is fine.
Contributor
Author
There was a problem hiding this comment.
It's used elsewhere and aligns with the implementers' guide. If we introduce hypertreads / fractional execution we will definitely need to revisit almost everything in the runtime in-depth.
Contributor
Author
|
bot merge |
|
Waiting for commit status. |
ordian
added a commit
that referenced
this pull request
Oct 5, 2021
* master: (138 commits) Allow an Offset to Lease Periods (#3980) Bump quote from 1.0.9 to 1.0.10 (#4013) Companion for #9834 (Transaction Priority) (#3901) chore: update `builder` image (#3884) Free disputed cores before processing bitfields (#4008) Make candidate validation timeouts configurable (#4001) Add extrinsic ordering filtering (#3631) chore: ci list files that spellcheck finds (#3992) Use background tasks properly in candidate-validation (#4002) Fix unoccupied bitfields (#4004) Bump syn from 1.0.77 to 1.0.78 (#4006) Bump jsonrpsee-ws-client from 0.3.0 to 0.3.1 (#3931) fix clock drift for assignments issued before the block (#3851) Remove unoccupied bit check (#3999) bump substrate (#4000) change genesis authority set for wococo-local, revert rococo-local (#3998) ignore irrelevant approvals in logs (#3859) avoid expect, on free availability core (#3994) preserve finalized block in active leaves (#3997) some tweaks to rococo-local (#3996) ...
This pull request was closed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
free_coresfromScheduler::schedulefree_coreswith the dispute-freed cores before processing bitfields