"H.J. Lu" writes:
> On Sat, Sep 29, 2018 at 9:01 PM Ian Lance Taylor wrote:
>>
>> "H.J. Lu" writes:
>>
>> > On x86-64, sys.GoarchAmd64 == 1 for -mx32. But -mx32 has 32-bit
>> > pointer, not 64-bit. There is
>> >
>> > // _64bit = 1 on 64-bit systems, 0 on 32-bit systems
>> > _64bit = 1 << (^ui
On Sat, Sep 29, 2018 at 9:01 PM Ian Lance Taylor wrote:
>
> "H.J. Lu" writes:
>
> > On x86-64, sys.GoarchAmd64 == 1 for -mx32. But -mx32 has 32-bit
> > pointer, not 64-bit. There is
> >
> > // _64bit = 1 on 64-bit systems, 0 on 32-bit systems
> > _64bit = 1 << (^uintptr(0) >> 63) / 2
> >
> > We
"H.J. Lu" writes:
> On x86-64, sys.GoarchAmd64 == 1 for -mx32. But -mx32 has 32-bit
> pointer, not 64-bit. There is
>
> // _64bit = 1 on 64-bit systems, 0 on 32-bit systems
> _64bit = 1 << (^uintptr(0) >> 63) / 2
>
> We should check both _64bit and sys.GoarchAmd64.
Thanks, but I think the corr
On x86-64, sys.GoarchAmd64 == 1 for -mx32. But -mx32 has 32-bit
pointer, not 64-bit. There is
// _64bit = 1 on 64-bit systems, 0 on 32-bit systems
_64bit = 1 << (^uintptr(0) >> 63) / 2
We should check both _64bit and sys.GoarchAmd64.
PR go/87470
* go/runtime/malloc.go (arenaBas