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

feat: WIP restage of memory allocation features #287

Merged
merged 15 commits into from
Dec 16, 2021
Merged

Conversation

bushidocodes
Copy link
Contributor

@bushidocodes bushidocodes commented Dec 5, 2021

This PR contains a number of refactors:

  • Eliminate the "Sandbox Request" and instead modify all global scheduler logic to allocate a "Sandbox" directly.
  • Begin to decompose parts of a "Sandbox" into objects with OOP-style alloc, init, free methods and associated logic
  • Cleanup the HTTP Request and Response Logic to use discrete buffers that do not make assumptions about layout.

Copy link
Collaborator

@gparmer gparmer left a comment

Choose a reason for hiding this comment

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

Don't see any blockers here. Great job. Just some comments throughout.

runtime/compiletime/memory_instructions.c Outdated Show resolved Hide resolved
runtime/compiletime/memory_instructions.c Show resolved Hide resolved
runtime/include/current_sandbox_send_response.h Outdated Show resolved Hide resolved
runtime/include/sandbox_state_history.h Show resolved Hide resolved
runtime/include/wasm_memory.h Show resolved Hide resolved
runtime/include/wasm_stack.h Show resolved Hide resolved
runtime/include/wasm_table.h Show resolved Hide resolved
runtime/src/libc/syscall.c Outdated Show resolved Hide resolved
runtime/src/sandbox.c Outdated Show resolved Hide resolved
runtime/src/sandbox.c Outdated Show resolved Hide resolved
@bushidocodes bushidocodes marked this pull request as ready for review December 16, 2021 02:09
@bushidocodes bushidocodes merged commit af016f2 into master Dec 16, 2021
@bushidocodes bushidocodes deleted the spec-alignment-2 branch December 16, 2021 02:09
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.

2 participants