diff options
| author | Ian Lance Taylor <iant@golang.org> | 2023-04-14 14:36:12 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-04-18 20:22:50 +0000 |
| commit | d959dd97b12f4067c8511fb11493e3bf47eb9737 (patch) | |
| tree | 519aee3698fa3e8a47ab7f3ef76bce6d51bcad30 /src/runtime/malloc.go | |
| parent | fd786a550a0ca004725cba2f49fd8ee86ef22b10 (diff) | |
| download | go-d959dd97b12f4067c8511fb11493e3bf47eb9737.tar.xz | |
runtime: change lfstack support to taggedPointer
This is a refactoring with no change in behavior, in preparation
for future netpoll work.
For #59545
Change-Id: I493c5fd0f49f31b75787f7b5b89c544bed73f64f
Reviewed-on: https://go-review.googlesource.com/c/go/+/484836
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Orlando Labao <orlando.labao43@gmail.com>
Diffstat (limited to 'src/runtime/malloc.go')
| -rw-r--r-- | src/runtime/malloc.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/runtime/malloc.go b/src/runtime/malloc.go index bababe042e..de83722fff 100644 --- a/src/runtime/malloc.go +++ b/src/runtime/malloc.go @@ -405,6 +405,10 @@ func mallocinit() { throw("bad pagesPerReclaimerChunk") } + if minTagBits > taggedPointerBits { + throw("taggedPointerbits too small") + } + // Initialize the heap. mheap_.init() mcache0 = allocmcache() |
