github.com/hamba/avro/v2@v2.22.1-0.20240518180522-aff3955acf7d/config_x64.go (about) 1 //go:build !386 2 3 package avro 4 5 // Max allocation size for an array due to the limit in number of bits in a heap address: 6 // https://github.com/golang/go/blob/7f76c00fc5678fa782708ba8fece63750cb89d03/src/runtime/malloc.go#L183 7 const maxAllocSize = int(1 << 48)