[chore]: Bump modernc.org/sqlite from 1.28.0 to 1.29.2 (#2718)

This commit is contained in:
dependabot[bot] 2024-03-04 09:42:11 +00:00 committed by GitHub
commit adb4cdcf6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
356 changed files with 2619858 additions and 1869411 deletions

16
vendor/modernc.org/libc/mem.go generated vendored
View file

@ -21,6 +21,9 @@ var (
// void *malloc(size_t size);
func Xmalloc(t *TLS, n types.Size_t) uintptr {
if __ccgo_strace {
trc("t=%v n=%v, (%v:)", t, n, origin(2))
}
if n == 0 {
return 0
}
@ -40,6 +43,9 @@ func Xmalloc(t *TLS, n types.Size_t) uintptr {
// void *calloc(size_t nmemb, size_t size);
func Xcalloc(t *TLS, n, size types.Size_t) uintptr {
if __ccgo_strace {
trc("t=%v size=%v, (%v:)", t, size, origin(2))
}
rq := int(n * size)
if rq == 0 {
return 0
@ -60,6 +66,9 @@ func Xcalloc(t *TLS, n, size types.Size_t) uintptr {
// void *realloc(void *ptr, size_t size);
func Xrealloc(t *TLS, ptr uintptr, size types.Size_t) uintptr {
if __ccgo_strace {
trc("t=%v ptr=%v size=%v, (%v:)", t, ptr, size, origin(2))
}
allocMu.Lock()
defer allocMu.Unlock()
@ -75,6 +84,9 @@ func Xrealloc(t *TLS, ptr uintptr, size types.Size_t) uintptr {
// void free(void *ptr);
func Xfree(t *TLS, p uintptr) {
if __ccgo_strace {
trc("t=%v p=%v, (%v:)", t, p, origin(2))
}
if p == 0 {
return
}
@ -87,6 +99,10 @@ func Xfree(t *TLS, p uintptr) {
}
func Xmalloc_usable_size(tls *TLS, p uintptr) (r types.Size_t) {
if __ccgo_strace {
trc("tls=%v p=%v, (%v:)", tls, p, origin(2))
defer func() { trc("-> %v", r) }()
}
if p == 0 {
return 0
}