github.com/hamba/avro/v2@v2.22.1-0.20240518180522-aff3955acf7d/config_386.go (about)

     1  package avro
     2  
     3  import "math"
     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#L190
     7  // 32-bit systems accept the full 32bit address space
     8  const maxAllocSize = math.MaxInt