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

deps(script): Update ckb-vm to v0.24.2 #4064

Merged

Conversation

mohanson
Copy link
Contributor

What problem does this PR solve?

Problem Summary:

When calling spawn syscall recursively, the rust stack would be overflowed in 27th depth.

What is changed and how it works?

What's Changed:

We moved instructions_cache from stack to heap. See: nervosnetwork/ckb-vm#357

We add a test case at same time, It will create the largest call depth we can create.

Note that there is a minor version v0.24.1 in the middle, for detailed change logs, see:

https://github.com/nervosnetwork/ckb-vm/releases/tag/v0.24.1
https://github.com/nervosnetwork/ckb-vm/releases/tag/v0.24.2

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code ci-runs-only: [ quick_checks,linters ]

Release note

Note: Add a note under the PR title in the release note.

@mohanson mohanson requested a review from a team as a code owner July 11, 2023 10:02
@mohanson mohanson requested review from doitian and removed request for a team July 11, 2023 10:02
@@ -22,7 +22,7 @@ ckb-traits = { path = "../traits", version = "= 0.112.0-pre" }
byteorder = "1.3.1"
ckb-types = { path = "../util/types", version = "= 0.112.0-pre" }
ckb-hash = { path = "../util/hash", version = "= 0.112.0-pre" }
ckb-vm = { version = "=0.24.0", default-features = false }
ckb-vm = { version = "=0.24.2", default-features = false }
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe that the Cargo.lock file should also be modified.

@zhangsoledad zhangsoledad added this pull request to the merge queue Jul 11, 2023
Merged via the queue into nervosnetwork:develop with commit 3de5a20 Jul 11, 2023
33 checks passed
@mohanson mohanson deleted the spawn_peak_memory_512k_to_32m branch July 11, 2023 14:06
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