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

Cherry-pick volatile branch to release 1.0 of main branch #348

Merged
merged 7 commits into from
Oct 14, 2022

Conversation

JiayuZzz
Copy link
Collaborator

What is changed and how it works?

Cherry-pick volatile branch to release 1.0 of main branch

Check List

Tests

  • Unit test

iyupeng and others added 5 commits October 12, 2022 09:55
Signed-off-by: Yu, Peng <peng.yu@intel.com>
Signed-off-by: Jiayu Wu <jiayu.wu@intel.com>
Signed-off-by: Jiayu Wu <jiayu.wu@intel.com>
Signed-off-by: Jiayu Wu <jiayu.wu@intel.com>
@@ -192,8 +180,7 @@ class Allocator {
uint64_t max_offset_;

bool thread_local_counter_enabled_{};
uint32_t num_thread_local_counters{0};
std::int64_t* thread_allocated_sizes_{nullptr};
std::vector<int64_t> thread_allocated_sizes_{};
Copy link
Contributor

Choose a reason for hiding this comment

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

std::vector is supposed to have potential bottleneck here. This was discussed before : #329 (review)

Copy link
Collaborator Author

@JiayuZzz JiayuZzz Oct 13, 2022

Choose a reason for hiding this comment

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

I don't think std::int64* would resolve this problem, we need to align it to cache line

Copy link
Contributor

Choose a reason for hiding this comment

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

OK. I misunderstood this problem.

Copy link
Contributor

Choose a reason for hiding this comment

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

Will you do the alignment in this pull request?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes

Signed-off-by: Jiayu Wu <jiayu.wu@intel.com>
Signed-off-by: Jiayu Wu <jiayu.wu@intel.com>
@JiayuZzz JiayuZzz merged commit 7edde0f into pmem:volatile Oct 14, 2022
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.

None yet

2 participants