diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-11-21 19:43:52 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-11-21 19:43:52 +0000 |
commit | b3f49ebd74ff30ad50b495ddd563ee5aa9cd2bca (patch) | |
tree | ad383037abfddbfeb8a11229eb1637909b25002e /pkg/flipcall/flipcall_unsafe.go | |
parent | 158f38053d931caf57b90bb0b496cf7d2ec4d42b (diff) | |
parent | c0f89eba6ebdec08460bd796fc62d6aef674d141 (diff) |
Merge release-20191114.0-18-gc0f89eb (automated)
Diffstat (limited to 'pkg/flipcall/flipcall_unsafe.go')
-rwxr-xr-x | pkg/flipcall/flipcall_unsafe.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pkg/flipcall/flipcall_unsafe.go b/pkg/flipcall/flipcall_unsafe.go index a37952637..27b8939fc 100755 --- a/pkg/flipcall/flipcall_unsafe.go +++ b/pkg/flipcall/flipcall_unsafe.go @@ -18,7 +18,7 @@ import ( "reflect" "unsafe" - "gvisor.dev/gvisor/third_party/gvsync" + "gvisor.dev/gvisor/pkg/syncutil" ) // Packets consist of a 16-byte header followed by an arbitrarily-sized @@ -75,13 +75,13 @@ func (ep *Endpoint) Data() []byte { var ioSync int64 func raceBecomeActive() { - if gvsync.RaceEnabled { - gvsync.RaceAcquire((unsafe.Pointer)(&ioSync)) + if syncutil.RaceEnabled { + syncutil.RaceAcquire((unsafe.Pointer)(&ioSync)) } } func raceBecomeInactive() { - if gvsync.RaceEnabled { - gvsync.RaceReleaseMerge((unsafe.Pointer)(&ioSync)) + if syncutil.RaceEnabled { + syncutil.RaceReleaseMerge((unsafe.Pointer)(&ioSync)) } } |