mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-17 03:03:01 -06:00
update go-sqlite3 => v0.20.0 (#3483)
This commit is contained in:
parent
d8a83860bc
commit
51cb6cae16
41 changed files with 841 additions and 263 deletions
9
vendor/github.com/ncruces/go-sqlite3/internal/util/mmap.go
generated
vendored
9
vendor/github.com/ncruces/go-sqlite3/internal/util/mmap.go
generated
vendored
|
|
@ -1,4 +1,4 @@
|
|||
//go:build unix && (amd64 || arm64 || riscv64 || ppc64le) && !(sqlite3_noshm || sqlite3_nosys)
|
||||
//go:build unix && (386 || arm || amd64 || arm64 || riscv64 || ppc64le) && !(sqlite3_noshm || sqlite3_nosys)
|
||||
|
||||
package util
|
||||
|
||||
|
|
@ -7,17 +7,10 @@ import (
|
|||
"os"
|
||||
"unsafe"
|
||||
|
||||
"github.com/ncruces/go-sqlite3/internal/alloc"
|
||||
"github.com/tetratelabs/wazero/api"
|
||||
"github.com/tetratelabs/wazero/experimental"
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
func withAllocator(ctx context.Context) context.Context {
|
||||
return experimental.WithMemoryAllocator(ctx,
|
||||
experimental.MemoryAllocatorFunc(alloc.Virtual))
|
||||
}
|
||||
|
||||
type mmapState struct {
|
||||
regions []*MappedRegion
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue