Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
a1820f4
Add test from original bug report
cmichi Jun 13, 2019
adaa8dc
No longer cleanup module instance
cmichi Jun 19, 2019
ccba1ef
Replace runtime cache with synchronous clone
cmichi Jun 24, 2019
e3dba7f
Fix test
cmichi Jun 25, 2019
0feabfc
Preserve initial runtime memory and restore it on fetch
cmichi Jun 25, 2019
f69f0ef
Remove leftover comment
cmichi Jun 26, 2019
65f4616
Fix style
cmichi Jun 28, 2019
a9a9014
Improve variable naming
cmichi Jun 28, 2019
1abeb70
Replace get_into() with get()
cmichi Jun 28, 2019
91a8f82
Handle missing memory export better
cmichi Jun 28, 2019
1b76de2
Return earlier when creating runtime first time
cmichi Jun 28, 2019
1a34c15
Improve comments
cmichi Jun 28, 2019
8d926b1
fmt
pepyakin Jun 28, 2019
2802866
Fix #2967.
pepyakin Jun 28, 2019
6f16b45
Eradicate `code` from `Error::InvalidCode`
pepyakin Jun 28, 2019
457d6c6
tidy
pepyakin Jun 28, 2019
35b2deb
A state snapshot doc.
pepyakin Jul 1, 2019
60fdbf5
Store multiple runtimes by hash.
pepyakin Jul 1, 2019
6d34c0a
Merge remote-tracking branch 'origin/master' into cmichi-ensure-clean…
pepyakin Jul 1, 2019
cc1917c
Get rid of deref.
pepyakin Jul 1, 2019
537ad5f
Docs
pepyakin Jul 1, 2019
a47adda
Use Self for instantiate_module
pepyakin Jul 2, 2019
e927acb
REVERT ME
pepyakin Jul 2, 2019
f94e07c
Should be ok
pepyakin Jul 2, 2019
20933ee
Commit
pepyakin Jul 2, 2019
1def782
Remove dbg
pepyakin Jul 2, 2019
48cab4c
Use fast-memory's erase
pepyakin Jul 2, 2019
92b6e27
Clean and undo hacks.
pepyakin Jul 3, 2019
64d9dab
Introduce a dedicated error for heap_base
pepyakin Jul 3, 2019
a7ee559
Ban the start function.
pepyakin Jul 3, 2019
565be74
Clean, docs and refactor
pepyakin Jul 3, 2019
caf5a00
Merge master into ser-reuse-wasm
pepyakin Jul 4, 2019
ca1796b
Add rustflags.
pepyakin Jul 4, 2019
9a07c17
Update Cargo.lock
pepyakin Jul 4, 2019
ee06caf
Apply Basti's suggestions
pepyakin Jul 4, 2019
1ffa62e
Rename allocates_huge_stack_array
pepyakin Jul 4, 2019
4becdd8
Merge remote-tracking branch 'origin/master' into ser-reuse-wasm
pepyakin Jul 4, 2019
3d02c90
Extend TestClientBuilder with set_heap_pages
pepyakin Jul 4, 2019
49d2117
Update the test.
pepyakin Jul 4, 2019
b79b6c5
Update core/executor/src/wasm_executor.rs
pepyakin Jul 5, 2019
5b91eaf
Update core/executor/src/wasm_runtimes_cache.rs
pepyakin Jul 5, 2019
7c06950
Update core/executor/src/error.rs
pepyakin Jul 5, 2019
6077aba
Update core/executor/src/error.rs
pepyakin Jul 5, 2019
4ce3684
Fix tests.
pepyakin Jul 5, 2019
42c5950
Update cargo-lock
pepyakin Jul 8, 2019
4355dfc
Merge remote-tracking branch 'origin/master' into ser-reuse-wasm
pepyakin Jul 8, 2019
d053556
Use wasmi master
pepyakin Jul 8, 2019
a98352f
Use master wasmi
pepyakin Jul 9, 2019
bd92e71
Move tests.
pepyakin Jul 9, 2019
c7fcc4d
Use wasmi crates.io
pepyakin Jul 9, 2019
455a3a0
Merge master into ser-reuse-wasm
pepyakin Jul 9, 2019
b67e52e
Update Cargo.lock
pepyakin Jul 9, 2019
569a78b
Fix build.rs
pepyakin Jul 9, 2019
8519501
Bump runtime version
pepyakin Jul 9, 2019
751ef3e
Revert initial_heap_pages renaming
pepyakin Jul 9, 2019
c3cc2cb
Bump wasmi up to 0.5.0
pepyakin Jul 10, 2019
8b243ad
Merge 'origin/master' into ser-reuse-wasm
pepyakin Jul 10, 2019
2da6066
Bump runtime version
pepyakin Jul 10, 2019
66c7427
Merge branch 'master' into ser-reuse-wasm
pepyakin Jul 11, 2019
5845385
Merge remote-tracking branch 'origin/master' into ser-reuse-wasm
pepyakin Jul 12, 2019
1162e4e
Don't restore an instance every now and then
pepyakin Jul 12, 2019
fac2162
Merge branch 'master' into ser-reuse-wasm
Demi-Marie Jul 13, 2019
6d2d17b
Update core/executor/src/wasm_runtimes_cache.rs
pepyakin Jul 13, 2019
e5ca259
Propagate error in CacheError
pepyakin Jul 24, 2019
15dc874
Clarify the get_heap_base call in instantiation
pepyakin Jul 24, 2019
27a4602
Supply --export=__heap_base
pepyakin Jul 24, 2019
fbbc10f
Bump version.
pepyakin Jul 24, 2019
cda8690
Use combinators for segments.
pepyakin Jul 24, 2019
f04de66
Merge branch 'master' into ser-reuse-wasm
pepyakin Jul 24, 2019
8f1d73a
Fix build.rs
pepyakin Jul 24, 2019
4bb7bcf
Fix build.rs for runtime-test
pepyakin Jul 25, 2019
78046ec
Merge 'origin/master' into ser-reuse-wasm
pepyakin Jul 25, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix test
  • Loading branch information
cmichi committed Jun 26, 2019
commit e3dba7fe480c07a2605eb847d2db2f3cf2499c22
5 changes: 4 additions & 1 deletion core/sr-api-macros/tests/runtime_calls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ fn returns_mutable_static() {
let ret = runtime_api.returns_mutable_static(&block_id).unwrap();
assert_eq!(ret, 33);

// We expect that every invocation will need to return the initial
// value plus one. If the value increases more than that then it is
// a sign that the wasm runtime preserves the memory content.
let ret = runtime_api.returns_mutable_static(&block_id).unwrap();
assert_eq!(ret, 34);
assert_eq!(ret, 33);
}