snapshot: sagernet/gvisor v0.0.0-20250811.0-sing-box-mod.1
Содержимое пина, зафиксированного в go.mod sing-box-lx, одним коммитом без истории. Полная история SagerNet/gvisor — 1.45 ГБ и клонируется в каждой CI-джобе; наша дельта — одна вставка в одну функцию, история для неё не нужна. Module path github.com/sagernet/gvisor сохранён намеренно: на него опирается replace-директива суперпроекта. Патч поверх — отдельным коммитом, чтобы дельта читалась одним git show и переносилась на новый пин копированием. SPECS/TASKS/048-GVISOR_HANDSHAKE_NIL_CRASH
This commit is contained in:
commit
2c4ae3b0a4
712 changed files with 185689 additions and 0 deletions
93
pkg/atomicbitops/atomicbitops_32bit_state_autogen.go
Normal file
93
pkg/atomicbitops/atomicbitops_32bit_state_autogen.go
Normal file
|
|
@ -0,0 +1,93 @@
|
|||
// automatically generated by stateify.
|
||||
|
||||
//go:build arm || mips || mipsle || 386
|
||||
// +build arm mips mipsle 386
|
||||
|
||||
package atomicbitops
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/sagernet/gvisor/pkg/state"
|
||||
)
|
||||
|
||||
func (i *Int32) StateTypeName() string {
|
||||
return "pkg/atomicbitops.Int32"
|
||||
}
|
||||
|
||||
func (i *Int32) StateFields() []string {
|
||||
return []string{
|
||||
"value",
|
||||
}
|
||||
}
|
||||
|
||||
func (i *Int32) beforeSave() {}
|
||||
|
||||
// +checklocksignore
|
||||
func (i *Int32) StateSave(stateSinkObject state.Sink) {
|
||||
i.beforeSave()
|
||||
stateSinkObject.Save(0, &i.value)
|
||||
}
|
||||
|
||||
func (i *Int32) afterLoad(context.Context) {}
|
||||
|
||||
// +checklocksignore
|
||||
func (i *Int32) StateLoad(ctx context.Context, stateSourceObject state.Source) {
|
||||
stateSourceObject.Load(0, &i.value)
|
||||
}
|
||||
|
||||
func (u *Uint32) StateTypeName() string {
|
||||
return "pkg/atomicbitops.Uint32"
|
||||
}
|
||||
|
||||
func (u *Uint32) StateFields() []string {
|
||||
return []string{
|
||||
"value",
|
||||
}
|
||||
}
|
||||
|
||||
func (u *Uint32) beforeSave() {}
|
||||
|
||||
// +checklocksignore
|
||||
func (u *Uint32) StateSave(stateSinkObject state.Sink) {
|
||||
u.beforeSave()
|
||||
stateSinkObject.Save(0, &u.value)
|
||||
}
|
||||
|
||||
func (u *Uint32) afterLoad(context.Context) {}
|
||||
|
||||
// +checklocksignore
|
||||
func (u *Uint32) StateLoad(ctx context.Context, stateSourceObject state.Source) {
|
||||
stateSourceObject.Load(0, &u.value)
|
||||
}
|
||||
|
||||
func (b *Bool) StateTypeName() string {
|
||||
return "pkg/atomicbitops.Bool"
|
||||
}
|
||||
|
||||
func (b *Bool) StateFields() []string {
|
||||
return []string{
|
||||
"Uint32",
|
||||
}
|
||||
}
|
||||
|
||||
func (b *Bool) beforeSave() {}
|
||||
|
||||
// +checklocksignore
|
||||
func (b *Bool) StateSave(stateSinkObject state.Sink) {
|
||||
b.beforeSave()
|
||||
stateSinkObject.Save(0, &b.Uint32)
|
||||
}
|
||||
|
||||
func (b *Bool) afterLoad(context.Context) {}
|
||||
|
||||
// +checklocksignore
|
||||
func (b *Bool) StateLoad(ctx context.Context, stateSourceObject state.Source) {
|
||||
stateSourceObject.Load(0, &b.Uint32)
|
||||
}
|
||||
|
||||
func init() {
|
||||
state.Register((*Int32)(nil))
|
||||
state.Register((*Uint32)(nil))
|
||||
state.Register((*Bool)(nil))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue