Everything you care about in one place

Follow feeds: blogs, news, RSS and more. An effortless way to read and digest content of your choice.

Get Feeder

jalan.space

忘归

Get the latest updates from 忘归 directly as they happen.

Follow now 17 followers

Latest posts

Last updated almost 4 years ago

Go 源码阅读:内存分配前的溢出判断

almost 4 years ago

今天在看切片内存分配的源码,makeslice 函数在内存分配前先使用 MaxUintptr 函数来判断内存分配是否越界:func makeslice(et *_type, len, cap int) unsafe.Pointer {mem, overflow...