]> Cypherpunks repositories - gostls13.git/commit
runtime: ignore arguments in cgocallback_gofunc frame
authorRuss Cox <rsc@golang.org>
Wed, 29 Jul 2015 20:16:13 +0000 (16:16 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 29 Jul 2015 22:30:46 +0000 (22:30 +0000)
commitfde392623a18ecedd7434db1cf40e82bdd482df9
treed5bf608934c54f714d70d070f9b4fb890306c44f
parentf6dfe1679867e9d2ac1ca4975a15e320113e9ae5
runtime: ignore arguments in cgocallback_gofunc frame

Otherwise the GC may see uninitialized memory there,
which might be old pointers that are retained, or it might
trigger the invalid pointer check.

Fixes #11907.

Change-Id: I67e306384a68468eef45da1a8eb5c9df216a77c0
Reviewed-on: https://go-review.googlesource.com/12852
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/crash_cgo_test.go
src/runtime/stubs.go