Skip to content

Conversation

@spredolac
Copy link

Motivation
code readability, modularity and better encapsulation

Changes

  • hpa_central is moved out of hpa.c file
  • several utility functions are moved out of hpa.c which will allow their reuse when batch purging is needed. They are also made not dependent on hpa_shard, but only on hpa_hooks as that is all they need

Testing
No logic change, tests are modified to reflect new code.

@meta-cla meta-cla bot added the cla signed label Nov 18, 2025
@spredolac spredolac added cleanup PRs cleaning/refactoring the codebase and removed cla signed labels Nov 18, 2025
@meta-cla meta-cla bot added the cla signed label Nov 19, 2025
Copy link

@guangli-dai guangli-dai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With new c files added, they need to be added into the corresponding MSVC doc like this.

}
TEST_END

TEST_BEGIN(test_more_pages_than_batch_page_size) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe change the name here as well? While the test moves away from a file where madvise was specified, this filename doesn't have such implications so the test name should be more explicit? What about test_purge_more_than_one_batch_pages?

…h, move shard independent actions to hpa_utils
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
</Project>
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was automatically added by emacs as it was unclosed tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla signed cleanup PRs cleaning/refactoring the codebase

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants