Skip to content

Commit 60c1ee9

Browse files
matloobgopherbot
authored andcommitted
internal/goexperiment: add a sizespecializedmalloc goexperiment setting
Change-Id: I6a6a696497f2a0b0d403bbb11d7502f62edec78b Reviewed-on: https://go-review.googlesource.com/c/go/+/696535 Auto-Submit: Michael Matloob <[email protected]> Reviewed-by: Michael Knyszek <[email protected]> Reviewed-by: Michael Matloob <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent c70713d commit 60c1ee9

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

src/internal/goexperiment/exp_sizespecializedmalloc_off.go

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/internal/goexperiment/exp_sizespecializedmalloc_on.go

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/internal/goexperiment/flags.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,7 @@ type Flags struct {
115115
// RandomizedHeapBase enables heap base address randomization on 64-bit
116116
// platforms.
117117
RandomizedHeapBase64 bool
118+
119+
// SizeSpecializedMalloc enables malloc implementations that are specialized per size class.
120+
SizeSpecializedMalloc bool
118121
}

0 commit comments

Comments
 (0)