summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/kernel/futex
diff options
context:
space:
mode:
authorZhaozhong Ni <nzz@google.com>2018-06-19 16:07:08 -0700
committerShentubot <shentubot@google.com>2018-06-19 16:08:00 -0700
commitaa14a2c1be7f705927e9558f0e46ceca159e23e6 (patch)
tree6a377b28084e26b204464864e89ac59df61167b9 /pkg/sentry/kernel/futex
parenta6dbef045ff684e92f472280eb6f7f688b9bc87a (diff)
sentry: futex S/R optimization.
No need to save thousands of zerovalue buckets. PiperOrigin-RevId: 201258598 Change-Id: I5d3ea7b6a5345117ab4f610332d5288ca550be33
Diffstat (limited to 'pkg/sentry/kernel/futex')
-rw-r--r--pkg/sentry/kernel/futex/futex.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/kernel/futex/futex.go b/pkg/sentry/kernel/futex/futex.go
index b3ba57a2c..15e3e5e2c 100644
--- a/pkg/sentry/kernel/futex/futex.go
+++ b/pkg/sentry/kernel/futex/futex.go
@@ -197,7 +197,7 @@ func bucketIndexForAddr(addr uintptr) uintptr {
// Manager holds futex state for a single virtual address space.
type Manager struct {
- buckets [bucketCount]bucket
+ buckets [bucketCount]bucket `state:"zerovalue"`
}
// NewManager returns an initialized futex manager.