Skip to content

Conversation

@zhztheplayer
Copy link
Member

@github-actions
Copy link

Thanks for opening a pull request!

Could you open an issue for this pull request on JIRA?
https://issues.apache.org/jira/browse/ARROW

Then could you also rename pull request title in the following format?

ARROW-${JIRA_ID}: [${COMPONENT}] ${SUMMARY}

See also:

@zhztheplayer
Copy link
Member Author

This patch is also supposed to be a dependency of #7030 (ARROW-7808).

@zhztheplayer zhztheplayer changed the title [ARROW-9475] Clean up usages of BaseAllocator, use BufferAllocator in… ARROW-9475: [Java] Clean up usages of BaseAllocator, use BufferAllocator in… Jul 15, 2020
@github-actions
Copy link

Copy link
Contributor

@rymurr rymurr left a comment

Choose a reason for hiding this comment

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

Looks good to me, one comment about the allocate/release additions. Otherwise its great to further limit BaseAllocators visibility

* @param size to increase
* @return Whether the allocation fit within limits.
*/
boolean forceAllocate(long size);
Copy link
Contributor

Choose a reason for hiding this comment

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

I didn't see where this or releaseBytes are used in code. What is the purpose of releaseBytes and of makign forceAllocate public

Copy link
Member Author

@zhztheplayer zhztheplayer Jul 18, 2020

Choose a reason for hiding this comment

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

Hi @rymurr,

E.g. Please see the changes such as

https://github.com/apache/arrow/pull/7768/files#diff-68d17bac8aafb7004e2fb310f131df5fR159-R163

The uses of BufferAllocator requires for having the relevant methods extracted up to interface.

Copy link
Contributor

Choose a reason for hiding this comment

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

👍 sorry, missed that

@zhztheplayer
Copy link
Member Author

@jacques-n Could you please talk a look? Thanks.

For ARROW-7808, having this one solved we could be able to leave customized AllocationManager implementation out of the package org.apache.arrow.memory.

@emkornfield
Copy link
Contributor

+1

kszucs pushed a commit that referenced this pull request Oct 19, 2020
…tor in…

…stead

Issue link: https://issues.apache.org/jira/browse/ARROW-9475.

Closes #7768 from zhztheplayer/ARROW-9475

Authored-by: Hongze Zhang <[email protected]>
Signed-off-by: Micah Kornfield <[email protected]>
pribor pushed a commit to GlobalWebIndex/arrow that referenced this pull request Oct 24, 2025
…tor in…

…stead

Issue link: https://issues.apache.org/jira/browse/ARROW-9475.

Closes apache#7768 from zhztheplayer/ARROW-9475

Authored-by: Hongze Zhang <[email protected]>
Signed-off-by: Micah Kornfield <[email protected]>
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.

3 participants