-
Notifications
You must be signed in to change notification settings - Fork 304
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
HPCC-32912 Ensure the row manager peak pages is updated correctly #19251
Conversation
Signed-off-by: Gavin Halliday <[email protected]>
Jira Issue: https://hpccsystems.atlassian.net//browse/HPCC-32912 Jirabot Action Result: |
Jira Issue: https://hpccsystems.atlassian.net//browse/HPCC-32912 Jirabot Action Result: |
continue; | ||
} | ||
else | ||
{ | ||
//Unlimited pages => just increment the total | ||
totalHeapPages.fetch_add(numRequested, std::memory_order_relaxed); | ||
newHeapPages = totalHeapPages.fetch_add(numRequested, std::memory_order_relaxed) + numRequested; |
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 is a fetch_add(), should we be adding numRequested twice ?
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.
ok, no, its correct as is. fetch_add() returns value before increment
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 this looks correct
Jirabot Action Result: |
Type of change:
Checklist:
Smoketest:
Testing: