Commit Graph

8 Commits

Author SHA1 Message Date
Takeshi Yoneda
c397a402ad mmap: eliminates dead flag (#2219)
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
2024-05-28 09:44:12 +09:00
Nuno Cruces
59faf80fcc threads: remove dead code (#2176)
Signed-off-by: Nuno Cruces <ncruces@users.noreply.github.com>
2024-04-06 10:27:34 +09:00
Gram
04309ab93a internal: skip platform-specific code when building with TinyGo (#2162)
Signed-off-by: gram <git@orsinium.dev>
2024-03-26 12:28:43 +01:00
Anuraag Agrawal
66de2f2788 threads: use mmap to allocate shared memory (#1923) 2024-01-17 00:39:50 -08:00
Takeshi Yoneda
d9e5d6b0d3 Avoids unnecessary allocations during mmap executables (#1366)
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
2023-04-17 14:03:35 +09:00
Takeshi Yoneda
60312083d5 Fixes builds on compiler-unsupported platoforms (#853)
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
2022-11-16 09:54:51 -08:00
Crypt Keeper
891761ac1e Adds support for FreeBSD (#671)
FreeBSD was disabled due to lack of testing. This works around the
compilation problems. Note: We can't currently test arm64 automatically!

Notes:

* GitHub Actions doesn’t support FreeBSD, and may never.
* We could use Travis to run FreeBSD, but it would split our CI config.
* Using Vagrant directly is easier to debug than vmactions/freebsd-vm.
* GitHub Actions only supports virtualization on MacOS.
* GitHub Actions removed vagrant from the image starting with macos-11.
* Since VirtualBox doesn't work on arm64, freebsd/arm64 is untestabl

Signed-off-by: Adrian Cole <adrian@tetrate.io>
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
Co-authored-by: Takeshi Yoneda <takeshi@tetrate.io>
2022-07-01 18:59:19 +08:00
Crypt Keeper
50d504cfdd Narrows compiler support to operating systems currently known to work (#612)
This narrows to what the `internal/platform` package supports, which is
currently bound by Go SDK source that include `Mprotect` or windows.

Ex. `zsyscall_linux_amd64.go` includes `Mprotect`, but
`zsyscall_freebsd_amd64.go` does not.

This should prevent errors like below, by allowing `wazero.NewRuntime()`
to properly fallback to the interpreter.

```
.../mmap.go:74:16: undefined: syscall.Mprotect
```

A later change will implement FreeBSD. This is just here to ensure users
don't crash on unexpected OS.

See #607

Signed-off-by: Adrian Cole <adrian@tetrate.io>
2022-06-01 13:49:55 +08:00