]> Cypherpunks repositories - gostls13.git/commit
runtime: clarify that itab.hash of dynamic entries is unused
authorDmitry Vyukov <dvyukov@google.com>
Tue, 22 Oct 2019 12:20:51 +0000 (14:20 +0200)
committerDmitry Vyukov <dvyukov@google.com>
Wed, 6 Nov 2019 09:08:53 +0000 (09:08 +0000)
commit61089984a89743af1d8bad569dcffe62f00a6970
tree45c28d6ba3101fa0197336aaecd99392997b6fc5
parentf71bd516b7003abed2c86b64ade6c0026075b6e8
runtime: clarify that itab.hash of dynamic entries is unused

The hash is used in type switches. However, compiler statically generates itab's
for all interface/type pairs used in switches (which are added to itabTable
in itabsinit). The dynamically-generated itab's never participate in type switches,
and thus the hash is irrelevant.

Change-Id: I4f6e37be31b8f5605cca7a1806cb04708e948cea
Reviewed-on: https://go-review.googlesource.com/c/go/+/202448
Run-TryBot: Dmitry Vyukov <dvyukov@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/runtime/iface.go