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

[7.3.0] Push makeExecutable down into AbstractFileWriteAction subclasses #22845

Merged
merged 1 commit into from
Jun 21, 2024

Conversation

fmeum
Copy link
Collaborator

@fmeum fmeum commented Jun 21, 2024

Getting rid of the single boolean field on AbstractFileWriteAction reduces padding on each subclass instance and in particular frees up a 4-byte field on CppModuleMapAction.

Also use a lambda to define newDeterministicWriter if possible for improved readability.

This prepares for future changes that will add fields to CppModuleMapAction to support path mapping.

Work towards #6526

Closes #22609.

PiperOrigin-RevId: 643340715
Change-Id: Id3af26049098e6dfa731f0e7a1be6709bea0d9f2

Closes #22749
Closes #22750

Getting rid of the single boolean field on `AbstractFileWriteAction` reduces padding on each subclass instance and in particular frees up a 4-byte field on `CppModuleMapAction`.

Also use a lambda to define `newDeterministicWriter` if possible for improved readability.

This prepares for future changes that will add fields to `CppModuleMapAction` to support path mapping.

Work towards bazelbuild#6526

Closes bazelbuild#22609.

PiperOrigin-RevId: 643340715
Change-Id: Id3af26049098e6dfa731f0e7a1be6709bea0d9f2
@fmeum fmeum requested a review from a team as a code owner June 21, 2024 12:24
@github-actions github-actions bot added awaiting-review PR is awaiting review from an assigned reviewer team-Configurability Issues for Configurability team team-Rules-CPP Issues for C++ rules team-Rules-Java Issues for Java rules team-Rules-Python Native rules for Python labels Jun 21, 2024
@meteorcloudy meteorcloudy added this pull request to the merge queue Jun 21, 2024
Merged via the queue into bazelbuild:release-7.3.0 with commit 83974e0 Jun 21, 2024
33 checks passed
@github-actions github-actions bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Jun 21, 2024
@fmeum fmeum deleted the 22749-cherry branch June 21, 2024 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Configurability Issues for Configurability team team-Rules-CPP Issues for C++ rules team-Rules-Java Issues for Java rules team-Rules-Python Native rules for Python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants