Skip to content

Commit f368282

Browse files
authored
Update 0034-vm-syscalls-2.md
added known issues notification for exec syscall
1 parent 4b502ff commit f368282

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

rfcs/0034-vm-syscalls-2/0034-vm-syscalls-2.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ uint64_t ckb_current_cycles()
5353
### Exec
5454
[exec]: #exec
5555

56+
> **⚠️ Know Issues**
57+
>
58+
> *Exec is deprecated and not recommended to use in the VM 1.*
59+
>
60+
> *Under VM 1, the exec syscall can cause unexpected behavior theoretically. However, this issue does not exist in VM 2.*
61+
62+
5663
Exec runs an executable file from specified cell data in the context of an already existing machine, replacing the previous executable. The used cycles does not change, but the code, registers and memory of the vm are replaced by those of the new program. It's cycles consumption consists of two parts:
5764

5865
- Fixed 500 cycles

0 commit comments

Comments
 (0)