Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

bump-allocator: document & poison #7277

Merged
10 commits merged into from
Oct 8, 2020
Merged

bump-allocator: document & poison #7277

10 commits merged into from
Oct 8, 2020

Conversation

pepyakin
Copy link
Contributor

@pepyakin pepyakin commented Oct 7, 2020

In response to https://gitlab.parity.io/parity/vulnerability-response/-/issues/21

Please see each individual commit for details

It's a misnomer since it doesn't actually denote an empty list as it might suggest but rather the end of a list. So I borrowed Nil from Cons/Nil.I could've gone with Null, especially considering that the variant name is already named `Null`, but I preferred `Nil` because the NIL_MARKER is not 0 as `null` may suggest, but rather 0xFFFFFFFF.
Supply a, hopefully, more readable comment as well.
@pepyakin pepyakin added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. labels Oct 7, 2020
@pepyakin pepyakin requested a review from bkchr October 7, 2020 15:57
primitives/allocator/src/freeing_bump.rs Outdated Show resolved Hide resolved
@bkchr
Copy link
Member

bkchr commented Oct 7, 2020

WAIT! Could we get a test? :D

@pepyakin
Copy link
Contributor Author

pepyakin commented Oct 7, 2020

yeah, sure, no rush. I am still doing my mini burnin meanwhile anyway

@bkchr
Copy link
Member

bkchr commented Oct 7, 2020

But you actually did not change anything? Any error would have resulted in aborting the runtime anyway?

@pepyakin
Copy link
Contributor Author

pepyakin commented Oct 7, 2020

God saves man, who save himself

primitives/allocator/src/freeing_bump.rs Outdated Show resolved Hide resolved
@pepyakin
Copy link
Contributor Author

pepyakin commented Oct 8, 2020

I've checked the build locally and it synced just fine, as expected. The test failure seems unrelated, looks like we need to bless the UI tests for the new rustc.

@pepyakin
Copy link
Contributor Author

pepyakin commented Oct 8, 2020

bot merge

@ghost
Copy link

ghost commented Oct 8, 2020

Trying merge.

@ghost ghost merged commit 46e170a into master Oct 8, 2020
@ghost ghost deleted the ser-allocator-tidy branch October 8, 2020 11:40
ordian added a commit that referenced this pull request Oct 9, 2020
…up-updates

* master:
  Async keystore + Authority-Discovery async/await (#7000)
  Fixes logging of target names with dashes (#7281)
  seal: Add automated weights for contract API calls (#7017)
  add ss58 id for nodle (#7279)
  Refactor CurrencyToVote (#6896)
  bump-allocator: document & poison (#7277)
  Reset flaming fir network (#7274)
  reschedule (#6860)
  Drop system cache for trie benchmarks (#7242)
  client: improve log formatting (#7272)
  Rework `InspectState` (#7271)
  SystemOrigin trait (#7226)
  Update ss58 registry for Dock network (#7263)
  .maintain/monitoring: Add alert when continuous task ends (#7250)
  Rename `TRANSACTION_VERSION` to `EXTRINSIC_VERSION` (#7258)
  Split block announce processing into two parts (#6958)
  Fix offchain election to respect the weight (#7215)
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants