From eded0d28de7f62423e496d89fd2699bb02e2744f Mon Sep 17 00:00:00 2001 From: Kevin Krakauer Date: Mon, 5 Apr 2021 11:54:50 -0700 Subject: mark types as saveable --- pkg/atomicbitops/aligned_32bit_unsafe.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkg/atomicbitops/aligned_32bit_unsafe.go') diff --git a/pkg/atomicbitops/aligned_32bit_unsafe.go b/pkg/atomicbitops/aligned_32bit_unsafe.go index 200fc0092..3ebbee7b1 100644 --- a/pkg/atomicbitops/aligned_32bit_unsafe.go +++ b/pkg/atomicbitops/aligned_32bit_unsafe.go @@ -30,6 +30,8 @@ import ( // for 64-bit alignment of 64-bit words accessed atomically. The first word in // a variable or in an allocated struct, array, or slice can be relied upon to // be 64-bit aligned." +// +// +stateify savable type AlignedAtomicInt64 struct { value [15]byte } @@ -65,6 +67,8 @@ func (aa *AlignedAtomicInt64) Add(v int64) int64 { // for 64-bit alignment of 64-bit words accessed atomically. The first word in // a variable or in an allocated struct, array, or slice can be relied upon to // be 64-bit aligned." +// +// +stateify savable type AlignedAtomicUint64 struct { value [15]byte } -- cgit v1.2.3