Commit Graph

1271 Commits

Author SHA1 Message Date
Crypt Keeper
326c267726 Exposes Module.IsClosed to prevent calling functions when closed (#1573)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
Co-authored-by: Takeshi Yoneda <takeshi@tetrate.io>
2023-07-10 15:32:51 +08:00
Crypt Keeper
15fa5c4de5 Changes build to test go 1.21rc2 (#1571)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
2023-07-10 13:39:37 +08:00
Anuraag Agrawal
86cf46d021 Fix drift in comment in mmap_other (#1572) 2023-07-10 13:22:59 +08:00
Crypt Keeper
6efcf25505 Exposes sys.Stat_t as a portable alternative to syscall.Stat_t (#1567)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
2023-07-10 11:46:20 +08:00
Edoardo Vacchi
d3f09bdcff wasi: nonblocking pipes on Windows (#1570)
Signed-off-by: Edoardo Vacchi <evacchi@users.noreply.github.com>
2023-07-10 06:50:26 +08:00
Crypt Keeper
0d0db0e12f Adds more links to rationale about start functions (#1569)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
2023-07-07 16:27:39 +08:00
Crypt Keeper
2b35d93612 explicitly documents ModuleConfig defaults to _start (#1568)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
2023-07-07 14:17:55 +08:00
Crypt Keeper
276257102f gojs: removes user/group behavior (#1566)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
2023-07-07 10:27:41 +08:00
Crypt Keeper
6a9088b46b Centralizes docs on Ino, specifically zero (#1560)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
2023-07-07 08:33:50 +08:00
Crypt Keeper
0ec3c852d6 fs: pares down to functions used in wasip1 and wasip2 (#1563)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
2023-07-07 07:58:36 +08:00
Edoardo Vacchi
affca16f15 fs: empty guest path should bind to / (#1565)
Signed-off-by: Edoardo Vacchi <evacchi@users.noreply.github.com>
2023-07-07 07:10:01 +08:00
Crypt Keeper
2c21f3aa8f wasi: adds Go readdir integration tests for GOOS=wasip1 and TinyGo (#1562)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
2023-07-06 16:19:24 +08:00
Crypt Keeper
d7193952e1 Allows wrapped filesystems to return dirent.ino except in windows (#1558)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
2023-07-05 17:41:35 +08:00
Crypt Keeper
7498ad335f gojs: drops HTTP support to be compatible with Go 1.21 (#1557)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
2023-07-05 16:56:18 +08:00
Crypt Keeper
c2ee2242f6 fd_readdir: reverts to special cased dirent cache (#1549)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
2023-07-05 08:17:07 +08:00
Crypt Keeper
c93bbf29fb wasi: fixes fd_readdir bench (#1554)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
2023-07-04 11:47:44 +08:00
Crypt Keeper
511b032fa6 readdir: defer re-opening when Seek(0,SeekStart) on a directory (#1551)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
2023-07-02 12:59:44 +08:00
Crypt Keeper
820685c4b2 Simplifies filesystem implementations (#1548)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
2023-07-01 06:53:09 +08:00
Crypt Keeper
935acf58e6 Fixes where gotip GOOS=wasip1 tests are never rebuilt (#1547)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
2023-06-30 09:02:36 +08:00
Crypt Keeper
221ed0373a fs: stops pre-fetching the inode of dot-dot ("..") (#1544)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
2023-06-29 15:00:09 +02:00
Edoardo Vacchi
9762d5b28d wasi: remove gotip binary (#1543)
Signed-off-by: Edoardo Vacchi <evacchi@users.noreply.github.com>
2023-06-29 10:34:51 +02:00
Edoardo Vacchi
39f2ff23a6 wasi: improve stdin support for nonblocking, fix stdout (#1542)
Signed-off-by: Edoardo Vacchi <evacchi@users.noreply.github.com>
2023-06-29 07:51:23 +08:00
guangwu
df428249a3 chore: pkg imported more than once (#1541)
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
2023-06-29 07:49:43 +08:00
Crypt Keeper
615732f1e6 Fixes drift in RATIONALE about readdir and dot entries (#1539)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
2023-06-28 14:15:27 +08:00
Crypt Keeper
53ce5eea83 Allows wasip1 guests to use arbitrarily nested pre-opens (#1536)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
2023-06-27 10:02:57 +08:00
inkeliz
451a1b63a0 engine: mitigates memory leak (#1535)
Signed-off-by: inkeliz <inkeliz@inkeliz.com>
2023-06-26 12:41:51 +08:00
Takeshi Yoneda
102308d9d1 fuzz: pass rss_limit_mb flag to avoid OOM (#1530)
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
2023-06-20 08:40:54 +10:00
Nuno Cruces
c8ee0baaf8 compiler: test traps report correct line numbers (#1528)
Signed-off-by: Nuno Cruces <ncruces@users.noreply.github.com>
2023-06-20 08:04:02 +10:00
Nuno Cruces
c43a169a25 compiler(amd64): avoid emitting useless trap code (#1527)
Signed-off-by: Nuno Cruces <ncruces@users.noreply.github.com>
2023-06-19 19:53:13 +10:00
Edoardo Vacchi
ea63499005 compiler(arm64): avoid conditional jumps to the trap handler (#1524)
Signed-off-by: Edoardo Vacchi <evacchi@users.noreply.github.com>
2023-06-19 19:18:18 +10:00
Edoardo Vacchi
b01ba67fdc wasi: add nonblock_test.go from gotip, fix nonblock read on Unix-like (#1517)
Some checks failed
Release CLI / Pre-release build (push) Has been cancelled
Release CLI / Pre-release test (macos-12) (push) Has been cancelled
Release CLI / Pre-release test (ubuntu-22.04) (push) Has been cancelled
Release CLI / Pre-release test (windows-2022) (push) Has been cancelled
Release CLI / Release (push) Has been cancelled
Signed-off-by: Edoardo Vacchi <evacchi@users.noreply.github.com>
v1.2.1
2023-06-15 07:08:44 +08:00
Edoardo Vacchi
f385873239 compiler(arm64): generate trap exit code once (#1516)
Signed-off-by: Edoardo Vacchi <evacchi@users.noreply.github.com>
2023-06-15 08:35:51 +10:00
Nuno Cruces
26eae5756c compiler(amd64): generate exit code once (#1515)
Signed-off-by: Nuno Cruces <ncruces@users.noreply.github.com>
2023-06-14 16:19:13 +10:00
Nuno Cruces
e3755ce4af compiler(amd64): avoid unnecessary jump in signed remainder (#1514)
Signed-off-by: Nuno Cruces <ncruces@users.noreply.github.com>
2023-06-13 10:01:34 +10:00
Crypt Keeper
f3778cae08 wasi: fix nonblocking sockets on *NIX (gotip net/http) (#1503)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
Co-authored-by: Edoardo Vacchi <evacchi@users.noreply.github.com>
2023-06-13 06:51:32 +10:00
Nuno Cruces
b4d97e5e69 compiler(amd64): emit smaller instructions (#1513)
Signed-off-by: Nuno Cruces <ncruces@users.noreply.github.com>
2023-06-13 06:50:56 +10:00
Crypt Keeper
1e0f88bc14 deps: upgrades to TinyGo v0.28.1 (#1512)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
2023-06-12 14:21:00 +10:00
Achille
904e9a9972 site: add wasi-go to the list of community projects (#1511)
Signed-off-by: Achille Roussel <achille.roussel@gmail.com>
2023-06-10 11:05:17 +08:00
Achille
7d60e1a739 site: add wzprof to the list of community projects (#1510)
Signed-off-by: Achille Roussel <achille.roussel@gmail.com>
2023-06-10 09:02:48 +08:00
Edoardo Vacchi
390437e1fe Revert "wip"
This reverts commit 1588723735.
2023-06-09 15:23:25 +02:00
Edoardo Vacchi
1588723735 wip
Signed-off-by: Edoardo Vacchi <evacchi@users.noreply.github.com>
2023-06-09 15:21:32 +02:00
Nuno Cruces
8c7f97d39d compiler(amd64): eliminate a bounds check in memory copy (#1509)
Signed-off-by: Nuno Cruces <ncruces@users.noreply.github.com>
2023-06-09 10:58:53 +10:00
Nuno Cruces
83ac0f6b87 compiler(amd64): generate trap exit code once (#1508)
Signed-off-by: Nuno Cruces <ncruces@users.noreply.github.com>
2023-06-09 10:54:25 +10:00
Takeshi Yoneda
1e075f0d84 vs: fixes wasmedge version (#1507)
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
2023-06-07 10:47:19 +10:00
Nuno Cruces
8d8e452dc0 compiler(amd64): generate trap exit code once (#1505)
Signed-off-by: Nuno Cruces <ncruces@users.noreply.github.com>
2023-06-06 09:41:27 +10:00
Edoardo Vacchi
1d22d264d0 wasi: try to make Test_Nonblock less flaky (#1506)
Signed-off-by: Edoardo Vacchi <evacchi@users.noreply.github.com>
2023-06-06 08:04:39 +10:00
Anuraag Agrawal
62f8109101 compiler: fix compileMemoryAccessOffsetSetup comment (#1504)
Signed-off-by: Anuraag Agrawal <anuraaga@gmail.com>
2023-06-05 16:16:23 +10:00
Edoardo Vacchi
f2d8461a62 wasi: non-blocking i/o on files on *nix (#1502)
Signed-off-by: Edoardo Vacchi <evacchi@users.noreply.github.com>
2023-06-03 07:33:19 +08:00
Edoardo Vacchi
97d0d70b73 wasi: add support for sockets (#1493)
Some checks failed
Release CLI / Pre-release build (push) Has been cancelled
Release CLI / Pre-release test (macos-12) (push) Has been cancelled
Release CLI / Pre-release test (ubuntu-22.04) (push) Has been cancelled
Release CLI / Pre-release test (windows-2022) (push) Has been cancelled
Release CLI / Release (push) Has been cancelled
Signed-off-by: Edoardo Vacchi <evacchi@users.noreply.github.com>
Signed-off-by: Adrian Cole <adrian@tetrate.io>
Co-authored-by: Crypt Keeper <64215+codefromthecrypt@users.noreply.github.com>
Co-authored-by: Achille <achille.roussel@gmail.com>
Co-authored-by: Adrian Cole <adrian@tetrate.io>
v1.2.0
2023-06-02 20:45:42 +08:00
Crypt Keeper
e31856d360 updates external tool versions (#1498)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
2023-06-02 15:53:29 +08:00