github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/runtime/mpagealloc_32bit.go (about)

     1  // Copyright 2019 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:build 386 || arm || mips || mipsle || wasm
     6  
     7  // wasm is a treated as a 32-bit architecture for the purposes of the page
     8  // allocator, even though it has 64-bit pointers. This is because any wasm
     9  // pointer always has its top 32 bits as zero, so the effective heap address
    10  // space is only 2^32 bytes in size (see heapAddrBits).
    11  
    12  package runtime