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

Allocation limit #135

Open
stepancheg opened this issue Dec 5, 2021 · 2 comments
Open

Allocation limit #135

stepancheg opened this issue Dec 5, 2021 · 2 comments

Comments

@stepancheg
Copy link
Contributor

Add an ability to limit the Bump size: if the number of allocated bytes exceeds the configured number, allocation should fail.

AFAIU, it is possible to make this feature with virtually no runtime overhead if the limit is checked only in alloc_layout_slow.

@fitzgen
Copy link
Owner

fitzgen commented Dec 6, 2021

I would be open to reviewing and merging a PR that implements this functionality.

We should also have quickchecks that set random allocation limits, allocate from the bump and assert that the allocation limits are respected.

@Eliasin
Copy link
Contributor

Eliasin commented Jun 2, 2022

Hello! I tried my hand at implementing this feature, tell me what you think

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

No branches or pull requests

3 participants