From aa14a2c1be7f705927e9558f0e46ceca159e23e6 Mon Sep 17 00:00:00 2001 From: Zhaozhong Ni Date: Tue, 19 Jun 2018 16:07:08 -0700 Subject: sentry: futex S/R optimization. No need to save thousands of zerovalue buckets. PiperOrigin-RevId: 201258598 Change-Id: I5d3ea7b6a5345117ab4f610332d5288ca550be33 --- pkg/sentry/kernel/futex/futex.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/sentry/kernel/futex/futex.go') 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. -- cgit v1.2.3