summaryrefslogtreecommitdiff
path: root/vendor/github.com/hamba/avro/v2/config_x64.go
blob: cecafd6e58bfd5f2fb7d8d621aeae43416830814 (plain)
1
2
3
4
5
6
7
//go:build !386 && !arm

package avro

// Max allocation size for an array due to the limit in number of bits in a heap address:
// https://github.com/golang/go/blob/7f76c00fc5678fa782708ba8fece63750cb89d03/src/runtime/malloc.go#L183
const maxAllocSize = int(1 << 48)