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

Ensure we allocate overaligned types with aligned operator new. #16330

Merged
merged 1 commit into from
Mar 29, 2024

Conversation

copybara-service[bot]
Copy link

Ensure we allocate overaligned types with aligned operator new.

  • The alignment may be incorrect.
  • Using delete[] otherwise mismatches, since it was not allocated with
    overaligned operator new.

Additionally, we add a test to ensure we do not value initialize in this case.

…erator new.

* The alignment may be incorrect.
* Using delete[] otherwise mismatches, since it was not allocated with
  overaligned operator new.

Additionally, we add a test to ensure we do not value initialize in this case.

PiperOrigin-RevId: 620241337
@copybara-service copybara-service bot merged commit 11ef0ff into main Mar 29, 2024
@copybara-service copybara-service bot deleted the test_619590404 branch March 29, 2024 14:43
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