Skip to content

Fix bug in reserve() and shrink_to_fit(). - #26

Closed
ghost wants to merge 1 commit into
masterfrom
unknown repository
Closed

ghost wants to merge 1 commit into
masterfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Mar 25, 2013

Copy link
Copy Markdown

impl_.e_ += newB - impl_.b_;
fails when the difference between newB and impl_.b_ isn't a multiple
of sizeof(T).

Concrete example: With
sizeof(T) = 32, alignof(T) = 8, newB = 40, impl_.b_ = 0, impl_.e_ = 0
the old code would set impl_.e_ to 32 and impl_.b_ to 40.

impl_.e_ += newB - impl_.b_;
fails when the difference between newB and impl_.b_ isn't a multiple
of sizeof(T).

Concrete example: With
sizeof(T) = 32, alignof(T) = 8, newB = 40, impl_.b_ = 0, impl_.e_ = 0
the old code would set impl_.e_ to 32 and impl_.b_ to 40.
@jdelong

jdelong commented Apr 13, 2013

Copy link
Copy Markdown
Contributor

Thanks!

I merged this upstream.

@jdelong jdelong closed this Apr 13, 2013
@tian-yuan tian-yuan mentioned this pull request Jul 23, 2016
@tdauth tdauth mentioned this pull request Mar 3, 2017
facebook-github-bot pushed a commit that referenced this pull request Oct 17, 2018
fbshipit-source-id: 0ac5905901904ad0853d5df2a29578d13d056e7a
sandraiser pushed a commit to sandraiser/folly that referenced this pull request Mar 4, 2019
fbshipit-source-id: 0ac5905901904ad0853d5df2a29578d13d056e7a
facebook-github-bot pushed a commit that referenced this pull request Jul 16, 2020
Summary:
This diff adds a minimal workflow for running integrations tests for Mononoke. Currently only one test is run and it fails.

This also splits the regular Mononoke CI into separate files for Linux and Mac to match the current style in Eden repo.
There are the "scopeguard::defer" fixes here that somehow escaped the CI tests.
Some tweaks have been made to "integration_runner_real.py" to make it runnable outside FB context.
Lastly the change from using "[[ -v ... ]" to "[[ -n "${...:-}" ]]; in "library.sh" was made because the former is not supported by the default Bash version preinstalled on modern MacOS.

Pull Request resolved: meta/sapling#26

Reviewed By: krallin

Differential Revision: D22541344

Pulled By: lukaspiatkowski

fbshipit-source-id: 5023d147823166a8754be852c29b1e7b0e6d9f5f
dotconnor pushed a commit to 5448C8/folly that referenced this pull request Mar 19, 2021
Summary:
This diff adds a minimal workflow for running integrations tests for Mononoke. Currently only one test is run and it fails.

This also splits the regular Mononoke CI into separate files for Linux and Mac to match the current style in Eden repo.
There are the "scopeguard::defer" fixes here that somehow escaped the CI tests.
Some tweaks have been made to "integration_runner_real.py" to make it runnable outside FB context.
Lastly the change from using "[[ -v ... ]" to "[[ -n "${...:-}" ]]; in "library.sh" was made because the former is not supported by the default Bash version preinstalled on modern MacOS.

Pull Request resolved: meta/sapling#26

Reviewed By: krallin

Differential Revision: D22541344

Pulled By: lukaspiatkowski

fbshipit-source-id: 5023d147823166a8754be852c29b1e7b0e6d9f5f
facebook-github-bot pushed a commit that referenced this pull request Feb 9, 2022
Summary:
Pull Request resolved: facebookexperimental/rust-shed#26

Pull Request resolved: meta/sapling#104

No need for the checked in generated code anymore

Successful external CI Linux run on Git Hub PR: https://github.com/facebookexperimental/eden/runs/5130405984?check_suite_focus=true

Mac PR run fails with a SSL cert issue, will look separately

Reviewed By: chadaustin, mitrandir77

Differential Revision: D33840545

fbshipit-source-id: eafc2a0e2191d438fd828adeebc2e318d319025f
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.

1 participant