Follow feeds: blogs, news, RSS and more. An effortless way to read and digest content of your choice.
Get Feederjalan.space
Get the latest updates from 忘归 directly as they happen.
Follow now 17 followers
Last updated almost 4 years ago
almost 4 years ago
今天在看切片内存分配的源码,makeslice 函数在内存分配前先使用 MaxUintptr 函数来判断内存分配是否越界:func makeslice(et *_type, len, cap int) unsafe.Pointer {mem, overflow...