Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compiler/natives/src/sync: update for Go 1.13 internal API changes
runtime_SemacquireMutex and runtime_Semrelease had a new parameter added in Go 1.13. Modify the signature of our override to match. The parameter is not used, since it's for tracing, which is not something GopherJS supports at this time. Add victim and victimSize struct fields, also new in Go 1.13, to our Pool struct override. Fixes: $ gopherjs build sync /goroot/src/sync/waitgroup.go:93:36: too many arguments /goroot/src/sync/rwmutex.go:133:44: too many arguments /goroot/src/sync/rwmutex.go:103:49: too many arguments /goroot/src/sync/rwmutex.go:85:44: too many arguments /goroot/src/sync/rwmutex.go:50:49: too many arguments /goroot/src/sync/pool.go:242:5: p.victim undefined (type *Pool has no field or method victim) /goroot/src/sync/pool.go:243:5: p.victimSize undefined (type *Pool has no field or method victimSize) /goroot/src/sync/pool.go:248:5: p.victim undefined (type *Pool has no field or method victim) /goroot/src/sync/pool.go:249:5: p.victimSize undefined (type *Pool has no field or method victimSize) /goroot/src/sync/pool.go:168:31: p.victimSize undefined (type *Pool has no field or method victimSize) /goroot/src/sync/pool.go:168:31: too many errors
- Loading branch information