Skip to content

[native]Advance velox and update memory part#21559

Merged
tanjialiang merged 1 commit intoprestodb:masterfrom
xiaoxmeng:new1
Dec 19, 2023
Merged

[native]Advance velox and update memory part#21559
tanjialiang merged 1 commit intoprestodb:masterfrom
xiaoxmeng:new1

Conversation

@xiaoxmeng
Copy link
Contributor

@xiaoxmeng xiaoxmeng commented Dec 16, 2023

Update the memory management code based on velox side change.
To ensure not breaking Meta internal build, we temporarily switch to
use deprecated APIs instead of calling MemoryManager::getInstance()
which currently has two versions

@xiaoxmeng xiaoxmeng marked this pull request as ready for review December 16, 2023 19:37
@xiaoxmeng xiaoxmeng requested a review from a team as a code owner December 16, 2023 19:37
@xiaoxmeng xiaoxmeng force-pushed the new1 branch 7 times, most recently from ca69b2a to ab409aa Compare December 17, 2023 05:07
@xiaoxmeng xiaoxmeng force-pushed the new1 branch 2 times, most recently from c975f29 to 0c73ba7 Compare December 18, 2023 23:57
Copy link
Contributor

@tanjialiang tanjialiang left a comment

Choose a reason for hiding this comment

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

Thanks for the fix

Copy link
Collaborator

@majetideepak majetideepak left a comment

Choose a reason for hiding this comment

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

@xiaoxmeng can you please add a description of the changes to the commit?
It is not clear to me what deprecatedAddDefaultLeafMemoryPool does.
Thank you!

@xiaoxmeng
Copy link
Contributor Author

xiaoxmeng commented Dec 19, 2023

@xiaoxmeng can you please add a description of the changes to the commit? It is not clear to me what deprecatedAddDefaultLeafMemoryPool does. Thank you!

@majetideepak Updated. It is to be compatible with Meta internal code once the deprecated getInstance() is removed and
we can cleanup this part. Thanks!

Copy link
Collaborator

@majetideepak majetideepak left a comment

Choose a reason for hiding this comment

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

@xiaoxmeng Thanks! Please update the git commit description as well next time.
It's fine this time since this is a temporary change.

Update the memory management code based on velox side change.
To ensure not breaking Meta internal build, we temporarily switch to
use deprecated APIs instead of calling MemoryManager::getInstance()
which currently has two versions
@tanjialiang tanjialiang merged commit b2127c4 into prestodb:master Dec 19, 2023
@xiaoxmeng xiaoxmeng deleted the new1 branch December 20, 2023 17:54
@wanglinsong wanglinsong mentioned this pull request Feb 12, 2024
64 tasks
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.

4 participants