-
Notifications
You must be signed in to change notification settings - Fork 17
hpa_central refactor - extract hpa_central and some utilities from hpa #57
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
base: dev
Are you sure you want to change the base?
Conversation
0140f31 to
11aeec5
Compare
guangli-dai
left a comment
There was a problem hiding this 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) { |
There was a problem hiding this comment.
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
e7895e9 to
86611df
Compare
| <ImportGroup Label="ExtensionTargets"> | ||
| </ImportGroup> | ||
| </Project> | ||
| </Project> |
There was a problem hiding this comment.
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.
86611df to
d422a54
Compare
| <ClCompile Include="..\..\..\..\src\hpa.c"> | ||
| <Filter>Source Files</Filter> | ||
| </ClCompile> | ||
| <ClCompile Include="..\..\..\..\src\hpa_central.c"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we also need to addhpa_utils.c in? Besides, I notice thread_event_registry.c is also missing from the filters files, can you help add it in as well?
Motivation
code readability, modularity and better encapsulation
Changes
hpa_centralis moved out ofhpa.cfilehpa.cwhich 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 needTesting
No logic change, tests are modified to reflect new code.