]> Cypherpunks repositories - gostls13.git/commit
runtime: add "max waste" column to size class table comment
authorAustin Clements <austin@google.com>
Mon, 17 Jul 2017 20:30:21 +0000 (16:30 -0400)
committerAustin Clements <austin@google.com>
Thu, 10 Aug 2017 21:45:01 +0000 (21:45 +0000)
commita6ae01a64a6a5ef17a4825cd486aa31f62481100
treee819a9b8d5cdd00add942174c1a9ccfcac380aba
parent1ee55c3ab6e4dff810a03bc1d788dd6106cdf691
runtime: add "max waste" column to size class table comment

This computes the maximum possible waste in a size class due to both
internal and external fragmentation as a percent of the span size.
This parallels the reasoning about overhead in the comment at the top
of mksizeclasses.go and confirms that comment's assertion that (except
for the few smallest size classes), none of the size classes have
worst-case internal and external fragmentation simultaneously.

Change-Id: Idb66fe6c241d56f33d391831d4cd5a626955562b
Reviewed-on: https://go-review.googlesource.com/49370
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/runtime/mksizeclasses.go
src/runtime/sizeclasses.go