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

Basic stack pooling allocator #169

Merged
merged 15 commits into from
May 22, 2024
Merged

Basic stack pooling allocator #169

merged 15 commits into from
May 22, 2024

Conversation

dhil
Copy link
Member

@dhil dhil commented May 11, 2024

This patch adds a basic stack pooling allocator for WasmFX stacks. It is gated behind a feature flag wasmfx_pooling_allocator, which is disabled by default. Currently, the pooling allocator works only with the baseline implementation as the optimized implementation segfaults (Frank, I probably need your help to figure out why). By default stacks are safe, meaning they have a page guard attached. The old unsafe stacks are gated behind the feature flag unsafe_wasmfx_stacks.

In addition, this patch also adds missing WasmFX features to wasmtime-c-api and wasmtime-c-api-impl.

Merge after #168.

Resolves #91. Resolves #26.

@dhil dhil requested a review from frank-emrich May 11, 2024 09:02
@dhil dhil mentioned this pull request May 14, 2024
@dhil dhil force-pushed the wasmfx-stack-pooling2 branch 5 times, most recently from 309f45e to cf6f1e9 Compare May 21, 2024 07:51
Copy link

@frank-emrich frank-emrich left a comment

Choose a reason for hiding this comment

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

LGTM with some comments

@dhil dhil merged commit b428c49 into wasmfx:main May 22, 2024
35 checks passed
@dhil dhil deleted the wasmfx-stack-pooling2 branch May 22, 2024 08:58
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.

Pooling allocator for stacks Guard pages for fiber stacks
2 participants