Skip to content

Allow setting the function definition size#184

Merged
jprendes merged 1 commit intohyperlight-dev:mainfrom
jprendes:set-func-def-size
Sep 1, 2025
Merged

Allow setting the function definition size#184
jprendes merged 1 commit intohyperlight-dev:mainfrom
jprendes:set-func-def-size

Conversation

@jprendes
Copy link
Copy Markdown
Contributor

@jprendes jprendes commented Sep 1, 2025

Large WIT_WORLD's can easily exceed the size of the default host function definition buffer size.
This PR adds a method to change the size of that buffer.

@jprendes jprendes added the kind/enhancement New feature or request label Sep 1, 2025
Comment thread src/hyperlight_wasm/src/sandbox/sandbox_builder.rs Outdated
@syntactically
Copy link
Copy Markdown
Member

Can we just get rid of the host function definition region instead?

The only user is module-style hyperlight-wasm as far as I know, and that can be trivially replaced by having hyperlight-wasm itself define a hostcall that returns the correct thing and doesn't require a static buffer size.

@jprendes
Copy link
Copy Markdown
Contributor Author

jprendes commented Sep 1, 2025

I think we can do that for 0.10.0

syntactically

This comment was marked as duplicate.

syntactically
syntactically previously approved these changes Sep 1, 2025
Copy link
Copy Markdown
Member

@syntactically syntactically left a comment

Choose a reason for hiding this comment

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

OK, if this is just so that we can do a release that depends on 0.9.0 and we'll get rid of it soon, then LGTM. I made an issue for getting rid of the region altogether: hyperlight-dev/hyperlight#847.

Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
@jprendes jprendes merged commit 5e5dd7a into hyperlight-dev:main Sep 1, 2025
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants