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

Store heap interval as field in AllocationsContext in order to skip useless panics #3932

Open
grishasobol opened this issue Apr 30, 2024 · 0 comments · May be fixed by #4473
Open

Store heap interval as field in AllocationsContext in order to skip useless panics #3932

grishasobol opened this issue Apr 30, 2024 · 0 comments · May be fixed by #4473
Assignees
Labels
C2-refactoring Refactoring proposal

Comments

@grishasobol
Copy link
Member

File Location(s)

core/src/memory.rs

Proposal

/// Pages allocations context for the running program.
#[derive(Debug)]
pub struct AllocationsContext {
    /// Pages which has been in storage before execution
    init_allocations: IntervalsTree<WasmPage>,
    allocations: IntervalsTree<WasmPage>,
    heap: Option<Interval<WasmPage>>, // static_pages..max_pages, None if heap is empty
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C2-refactoring Refactoring proposal
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants