]> Cypherpunks repositories - gostls13.git/commit
runtime: change p.runq from []*g to []guintptr
authorAustin Clements <austin@google.com>
Mon, 2 Nov 2015 21:59:39 +0000 (16:59 -0500)
committerAustin Clements <austin@google.com>
Tue, 3 Nov 2015 15:53:18 +0000 (15:53 +0000)
commit0ca4488cc1b91caef2667b6b58ff1562d44a2c74
treea0a85fab5e58825146d3467531cb36181042516b
parent48155f5440ab4ffb2e3c31646cecb504af735ff5
runtime: change p.runq from []*g to []guintptr

This eliminates many write barriers in the scheduler code that are
unnecessary and will interfere with upcoming changes where the garbage
collector will have to invoke run queue functions in contexts that
must not have write barriers.

Change-Id: I702d0ac99cfd00ffff406e7362917db6a43e7e55
Reviewed-on: https://go-review.googlesource.com/16556
Reviewed-by: Russ Cox <rsc@golang.org>
Run-TryBot: Austin Clements <austin@google.com>
src/runtime/proc.go
src/runtime/runtime2.go