]> Cypherpunks repositories - gostls13.git/commit
reflect: use correct write barrier operations for method funcs
authorKeith Randall <khr@google.com>
Tue, 25 Sep 2018 21:32:44 +0000 (14:32 -0700)
committerKeith Randall <khr@golang.org>
Wed, 26 Sep 2018 21:12:16 +0000 (21:12 +0000)
commite35a41261b19589f40d32bd66274c23ab4b9b32e
tree76297d5ddd92cb94d4f56fa1a342d4d728f1132b
parentebdc0b8d68e04ad383088c8b3ab963de4a9b5c5d
reflect: use correct write barrier operations for method funcs

Fix the code to use write barriers on heap memory, and no
write barriers on stack memory.

These errors were discoverd as part of fixing #27695. They may
have something to do with that issue, but hard to be sure.
The core cause is different, so this fix is a separate CL.

Update #27695

Change-Id: Ib005f6b3308de340be83c3d07d049d5e316b1e3c
Reviewed-on: https://go-review.googlesource.com/137438
Reviewed-by: Austin Clements <austin@google.com>
src/reflect/type.go
src/reflect/value.go
src/runtime/mbarrier.go