Source File
checkptr.go
Belonging Package
runtime
package runtime
import
if := * .size; > 1 && checkptrBase() != checkptrBase(add(, -1)) {
throw("checkptr: converted pointer straddles multiple allocations")
}
}
func ( unsafe.Pointer, []unsafe.Pointer) {
if 0 < uintptr() && uintptr() < minLegalPointer {
throw("checkptr: pointer arithmetic computed bad pointer value")
}
:= checkptrBase()
if == 0 {
return
}
for , := range {
if == checkptrBase() {
return
}
}
throw("checkptr: pointer arithmetic result points to invalid allocation")
}
return 1
}
if , , := findObject(uintptr(), 0, 0); != 0 {
return
}
![]() |
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. |