const runtime.hchanSize
6 uses
runtime (current package)
chan.go#L28: hchanSize = unsafe.Sizeof(hchan{}) + uintptr(-int(unsafe.Sizeof(hchan{}))&(maxAlign-1))
chan.go#L78: if hchanSize%maxAlign != 0 || elem.align > maxAlign {
chan.go#L83: if overflow || mem > maxAlloc-hchanSize || size < 0 {
chan.go#L95: c = (*hchan)(mallocgc(hchanSize, nil, true))
chan.go#L101: c = (*hchan)(mallocgc(hchanSize+mem, nil, true))
chan.go#L102: c.buf = add(unsafe.Pointer(c), hchanSize)
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |