]> Cypherpunks repositories - gostls13.git/commit
runtime: use more natural types in struct workbuf
authorAustin Clements <austin@google.com>
Thu, 19 Feb 2015 02:56:12 +0000 (21:56 -0500)
committerAustin Clements <austin@google.com>
Thu, 19 Feb 2015 17:00:30 +0000 (17:00 +0000)
commitc25c3710986c3c71d09141c458a6f56fea4d88ab
tree206c7a8283c6168ba6e0e245e2bb441659f5fade
parent02dcdba7c8d2c180ce2f4aa9e7bf805967b9d74d
runtime: use more natural types in struct workbuf

Until recently, struct workbuf had only lfnode and uintptr fields
before the obj array to make it convenient to compute the size of the
obj array.  It slowly grew more fields until this became inconvenient
enough that it was restructured to make the size computation easy.
Now the size computation doesn't care what the field types are, so
switch to more natural types.

Change-Id: I966140ba7ebb4aeb41d5c66d9d2a3bdc17dd4bcf
Reviewed-on: https://go-review.googlesource.com/5262
Reviewed-by: Russ Cox <rsc@golang.org>
src/runtime/mgcwork.go