Skip to content

Conversation

@greywolve
Copy link
Contributor

No description provided.

@greywolve greywolve force-pushed the feat/grow-heap-host-call branch from 9378126 to 72e1374 Compare January 22, 2026 08:05
@greywolve greywolve force-pushed the feat/grow-heap-host-call branch from 72e1374 to d045f9a Compare January 22, 2026 08:10
// case 2: (▸, ϱ - g, max(a + c, φ₇), W) otherwise if φ₇ ≤ b ∧ ϱ ≥ g
if targetPage <= b && gas >= g {
if targetPage > currentPage {
mem.AllocatePages(currentPage, pagesToAllocate)
Copy link
Member

Choose a reason for hiding this comment

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

I might be wrong, but I think we might not need to use this method, at least from the formula it looks like we are just growing the heap up to φ7 but without rounding it up to page size

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But allocate pages only operates on pages, it doesn't do any address -> page conversions, so there's no rounding up?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But it might make sense to simplify it as growHeapTo(absolutePage)

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.

3 participants