]> Cypherpunks repositories - gostls13.git/commit
runtime: make (*mheap).sysAlloc more general
authorMichael Anthony Knyszek <mknyszek@google.com>
Tue, 20 Sep 2022 18:33:03 +0000 (18:33 +0000)
committerMichael Knyszek <mknyszek@google.com>
Wed, 12 Oct 2022 20:23:24 +0000 (20:23 +0000)
commit4c383951b9601b488486add020ad5b7f10fb3d39
tree71e91c6457849aa6c6e4b2b6d6cf665590ed86e5
parent987f94fa038d4a66fa174ddc4267d8718a029581
runtime: make (*mheap).sysAlloc more general

This change makes (*mheap).sysAlloc take an explicit list of hints and a
boolean as to whether or not any newly-created heapArenas should be
registered in the full arena list.

This is a refactoring in preparation for arenas.

For #51317.

Change-Id: I0584a033fce3fcb60c5d0bc033d5fb8bd23b2378
Reviewed-on: https://go-review.googlesource.com/c/go/+/432078
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
src/runtime/malloc.go
src/runtime/mheap.go