gvisor/third_party/gvsync
Andrei Vagin 03ae91c662 gvisor: lockless read access for task credentials
Credentials are immutable and even before these changes we could read them
without locks, but we needed to take a task lock to get a credential object
from a task object.

It is possible to avoid this lock, if we will guarantee that a credential
object will not be changed after setting it on a task.

PiperOrigin-RevId: 254989492
2019-06-25 09:52:49 -07:00
..
atomicptrtest Update canonical repository. 2019-06-13 16:50:15 -07:00
seqatomictest Update canonical repository. 2019-06-13 16:50:15 -07:00
BUILD Update canonical repository. 2019-06-13 16:50:15 -07:00
LICENSE Move package sync to third_party 2019-01-31 17:49:14 -08:00
README.md Move package sync to third_party 2019-01-31 17:49:14 -08:00
atomicptr_unsafe.go gvisor: lockless read access for task credentials 2019-06-25 09:52:49 -07:00
downgradable_rwmutex_1_12_unsafe.go Add build guard to files using go:linkname 2019-05-30 12:09:39 -07:00
downgradable_rwmutex_1_13_unsafe.go Add build guard to files using go:linkname 2019-05-30 12:09:39 -07:00
downgradable_rwmutex_test.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
downgradable_rwmutex_unsafe.go Add build guard to files using go:linkname 2019-05-30 12:09:39 -07:00
gvsync.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
memmove_unsafe.go Add build guard to files using go:linkname 2019-05-30 12:09:39 -07:00
norace_unsafe.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
race_unsafe.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
seqatomic_unsafe.go Update canonical repository. 2019-06-13 16:50:15 -07:00
seqcount.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
seqcount_test.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00

README.md

This package provides additional synchronization primitives not provided by the Go stdlib 'sync' package. It is partially derived from the upstream 'sync' package.