type _ int
are modified accordingly, including the one in the last section ("Grow stack in less times") of the "Stack and Escape Analysis" chapter.copy(s, s)
is a no-op, but append(s[:0], s...)
is not.-gcflags="-d=ssa/check_bce"
doesn't work for some generic functions.Garbage Collection
chapter is updated much. The update contents are mainly in the last 4 sections (starting the Use new heap memory percentage strategy to control automatic GC frequency
section). Some descriptions in the first section GC pacer
are also modified a bit.Stack and Escape Analysis
chapter, the descriptions about initial stack sizes in the Stacks growth and shrinkage
section are modified.BCE
chapter, a new Example 4
section is added. The example was in the Sometimes, the compiler needs some hints to remove some bound checks
section.Functions
chapter, the Which functions are inline-able?
section states that functions containing select
code blocks may be inlined since Go toolchain 1.19.The Go 101 프로젝트는 Github 에서 호스팅됩니다. 오타, 문법 오류, 부정확한 표현, 설명 결함, 코드 버그, 끊어진 링크와 같은 모든 종류의 실수에 대한 수정 사항을 제출하여 Go 101을 개선을 돕는 것은 언제나 환영합니다.
주기적으로 Go에 대한 깊이 있는 정보를 얻고 싶다면 Go 101의 공식 트위터 계정인 @go100and1을 팔로우하거나 Go 101 슬랙 채널에j가입해주세요.