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

Minor: Document memory management design on MemoryPool #8966

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Jan 23, 2024

Which issue does this PR close?

Related to #587

Rationale for this change

@SteveLauC asked about this on #587 (comment)
and I realized the rationale and high level design of the memory management system wasn't documented anywhere

What changes are included in this PR?

Add doc comments to MemoryPool to add more background and rationale

Are these changes tested?

Covered by existing doc comments

Are there any user-facing changes?

Better docs

@alamb alamb added the documentation Improvements or additions to documentation label Jan 23, 2024
@github-actions github-actions bot removed the documentation Improvements or additions to documentation label Jan 23, 2024
/// [`MemoryPool`] before allocating more. The request is typically managed via
/// a [`MemoryReservation`].
///
/// If the allocation is successful, the operator should proceed and allocate
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@alamb alamb merged commit 7a0af5b into apache:main Jan 25, 2024
22 checks passed
@alamb
Copy link
Contributor Author

alamb commented Jan 25, 2024

Thanks again @tustvold and @comphead

@alamb alamb deleted the alamb/memory_allocation_docs branch January 25, 2024 12:22
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