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

Use correct memory pages and size #363

Merged
merged 5 commits into from Jul 14, 2023

Conversation

mohanson
Copy link
Collaborator

When setting the memory of vm to other than 4M, memory_size and memory_page should be consistent with the real memory size.

@mohanson mohanson requested a review from xxuejie July 14, 2023 06:24
@XuJiandong
Copy link
Collaborator

It's better adding more failing cases (out of memory) for smaller memory (e.g. 1M, 0.5M).

src/instructions/common.rs Outdated Show resolved Hide resolved
definitions/src/lib.rs Outdated Show resolved Hide resolved
@mohanson mohanson merged commit 8bfcecf into nervosnetwork:develop Jul 14, 2023
11 checks passed
@mohanson mohanson deleted the fix_memory branch July 14, 2023 09:13
mohanson added a commit to libraries/ckb-vm that referenced this pull request Jul 14, 2023
mohanson added a commit to libraries/ckb-vm that referenced this pull request Jul 14, 2023
mohanson added a commit that referenced this pull request Jul 14, 2023
mohanson added a commit that referenced this pull request Jul 14, 2023
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.

None yet

3 participants