]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: add a use of runtime.KeepAlive's argument
authorKeith Randall <khr@golang.org>
Fri, 11 Aug 2017 16:48:46 +0000 (09:48 -0700)
committerKeith Randall <khr@golang.org>
Mon, 14 Aug 2017 20:11:21 +0000 (20:11 +0000)
commit2c990f4596b8211ec24b095d80e66ec82a5a5021
tree22372766cf1910ce050886152abd7cba68a36a82
parent1f631a2f9a20d8dc57fb877fb95f807c895d1c40
runtime: add a use of runtime.KeepAlive's argument

This makes sure that its argument is marked live on entry.
We need its arg to be live so defers of KeepAlive get
scanned correctly by the GC.

Fixes #21402

Change-Id: I906813e433d0e9726ca46483723303338da5b4d7
Reviewed-on: https://go-review.googlesource.com/55150
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/mfinal.go
src/runtime/mfinal_test.go