mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
mark types as saveable
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -23,6 +23,8 @@ import "sync/atomic"
|
||||
// int64.
|
||||
//
|
||||
// See aligned_unsafe.go in this directory for justification.
|
||||
//
|
||||
// +stateify savable
|
||||
type AlignedAtomicInt64 struct {
|
||||
value int64
|
||||
}
|
||||
@@ -47,6 +49,8 @@ func (aa *AlignedAtomicInt64) Add(v int64) int64 {
|
||||
// uint64.
|
||||
//
|
||||
// See aligned_unsafe.go in this directory for justification.
|
||||
//
|
||||
// +stateify savable
|
||||
type AlignedAtomicUint64 struct {
|
||||
value uint64
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user