Skip to content

Commit 02dd3ca

Browse files
authored
Update nottinygc (#240)
1 parent 5ee9f72 commit 02dd3ca

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require (
88
github.com/stretchr/testify v1.8.0
99
github.com/tetratelabs/proxy-wasm-go-sdk v0.22.0
1010
github.com/tidwall/gjson v1.17.0
11-
github.com/wasilibs/nottinygc v0.6.0
11+
github.com/wasilibs/nottinygc v0.7.0
1212
)
1313

1414
require (

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ github.com/wasilibs/go-libinjection v0.4.0 h1:dr1Y/kM/gmoA7eSfdf+CvCcmzwsz2jVYjN
4242
github.com/wasilibs/go-libinjection v0.4.0/go.mod h1:zD7fNXKSaTKoSTmrfuP9Gc16alNEgwkZaHIeDDk3WWM=
4343
github.com/wasilibs/go-re2 v1.4.0 h1:Jp6BM8G/zajgY1BCQUm3i7oGMdR1gA5EBv87wGd2ysc=
4444
github.com/wasilibs/go-re2 v1.4.0/go.mod h1:hLzlKjEgON+17hWjikLx8hJBkikyjQH/lsqCy9t6tIY=
45-
github.com/wasilibs/nottinygc v0.6.0 h1:RGfTXftUqTWXKGguB4DIxJX9xrxfHT0HYkWdgACwTWU=
46-
github.com/wasilibs/nottinygc v0.6.0/go.mod h1:oDcIotskuYNMpqMF23l7Z8uzD4TC0WXHK8jetlB3HIo=
45+
github.com/wasilibs/nottinygc v0.7.0 h1:x8PiLXMHiSx8v4MgyL8T4LEp0FqrPtqZDsveI9xiY3M=
46+
github.com/wasilibs/nottinygc v0.7.0/go.mod h1:oDcIotskuYNMpqMF23l7Z8uzD4TC0WXHK8jetlB3HIo=
4747
golang.org/x/mod v0.8.0 h1:LUYupSeNrTNCGzR/hVBk2NHZO4hXcVaW1k4Qx7rjPx8=
4848
golang.org/x/net v0.15.0 h1:ugBLEUaxABaB5AJqW9enI0ACdci2RUd4eP51NTBvuJ8=
4949
golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk=

init_tinygo.go

-5
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ import (
1717
// names and signatures of wasi-libc, used by TinyGo, not WASI ABI. Review these exports when either
1818
// the minimum supported version of Envoy changes or the maximum version of TinyGo.
1919

20-
//export sched_yield
21-
func sched_yield() int32 {
22-
return 0
23-
}
24-
2520
// fdopendir is re-exported to avoid TinyGo 0.28's import of wasi_snapshot_preview1.fd_readdir.
2621
//
2722
//export fdopendir

magefiles/magefile.go

+1
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ func Build() error {
189189

190190
buildTags := []string{
191191
"custommalloc", // https://github.com/wasilibs/nottinygc#usage
192+
"nottinygc_envoy", // https://github.com/wasilibs/nottinygc#using-with-envoy
192193
"no_fs_access", // https://github.com/corazawaf/coraza#build-tags
193194
"memoize_builders", // https://github.com/corazawaf/coraza#build-tags
194195
}

0 commit comments

Comments
 (0)