Skip to content
Branch: master
Commits on Aug 5, 2019
  1. all: fix reflect.Value.Interface races (#913)

    dsnet committed Aug 5, 2019
    The reflect.Value.Interface method shallow copies the underlying value,
    which may copy mutexes and atomically-accessed fields.
    Some usages of the Interface method is only to check if the interface value
    implements an interface. In which case the shallow copy was unnecessary.
    Change those usages to use the reflect.Value.Implements method instead.
    Fixes #838
You can’t perform that action at this time.