Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

memory overflow #4221

Open
Taoja opened this issue Apr 8, 2024 · 3 comments
Open

memory overflow #4221

Taoja opened this issue Apr 8, 2024 · 3 comments
Labels
wasm WebAssembly

Comments

@Taoja
Copy link

Taoja commented Apr 8, 2024

tinygo version 0.30.0
go version 1.21.6

I tried using wasm to intercept the request and response then encrypt and decrypt them。

for the same source code, HeapInuse always increases when compiled using tinygo, but does not when compiled using go.

the first picture is tinygo test, it show HeapInuse increase to 29046KB after i do request 90 times.
tinygo

the second picture is go test, it show HeapInuse just used 4016KB after i do request 90 times.
go

@Taoja Taoja changed the title How can I locate the memory overflow problem in wasm and fix it ? memory overflow Apr 9, 2024
@orsinium
Copy link

Which GC do you use? Try specifying -gc=conservative

@orsinium orsinium added the wasm WebAssembly label Apr 11, 2024
@Taoja
Copy link
Author

Taoja commented Apr 12, 2024

Which GC do you use? Try specifying -gc=conservative

i tryed all the gc options. -gc=conservative is same like default

@Taoja
Copy link
Author

Taoja commented Apr 12, 2024

i tryed tinygo0.25.0 just now, the memory overflow higher then 0.30.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wasm WebAssembly
Projects
None yet
Development

No branches or pull requests

2 participants