I tried that and received a SIGBUS
CGO_ENABLED=0 GOARCH=amd64 gotip run -race ./example/main.go
signal: bus error
On Wednesday, November 30, 2022 at 1:24:08 PM UTC-5 cuong.m...@gmail.com
wrote:
> See my suggestion here:
> https://github.com/ebitengine/purego/issues/71#issuecomment-1332545306
See my suggestion here:
https://github.com/ebitengine/purego/issues/71#issuecomment-1332545306
For //go:norace and ABI wrapper functions, there's no instrument emitted.
Your problem is that the compiler know there's a native ABI0 implementation
for x_cgo_init, so calling it from assembly is f