diff options
| author | 2025-04-01 15:24:11 +0000 | |
|---|---|---|
| committer | 2025-04-01 16:24:11 +0100 | |
| commit | fdf23a91de791b813f65c244fd75e3262171f1b0 (patch) | |
| tree | 6ad5045e17f4520386067e4334e749be09ae1510 /vendor/modernc.org/libc/memgrind_musl.go | |
| parent | add a security.md stub, until (if) we determine a fancier security process :w... (diff) | |
| download | gotosocial-fdf23a91de791b813f65c244fd75e3262171f1b0.tar.xz | |
update modernc.org/sqlite to v1.37.0-concurrrency-workaround (#3958)
Diffstat (limited to 'vendor/modernc.org/libc/memgrind_musl.go')
| -rw-r--r-- | vendor/modernc.org/libc/memgrind_musl.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/modernc.org/libc/memgrind_musl.go b/vendor/modernc.org/libc/memgrind_musl.go index 1ee38209d..1dc25ef2f 100644 --- a/vendor/modernc.org/libc/memgrind_musl.go +++ b/vendor/modernc.org/libc/memgrind_musl.go @@ -269,6 +269,17 @@ func UsableSize(p uintptr) Tsize_t { return Tsize_t(memory.UintptrUsableSize(p)) } +type MemAllocatorStat struct { + Allocs int + Bytes int + Mmaps int +} + +// MemStat no-op for this build tag +func MemStat() MemAllocatorStat { + return MemAllocatorStat{} +} + func Xmalloc_usable_size(tls *TLS, p uintptr) (r Tsize_t) { return UsableSize(p) } |
