]> Cypherpunks repositories - gostls13.git/commit
runtime: refactor proc.c
authorDmitriy Vyukov <dvyukov@google.com>
Tue, 3 Jul 2012 08:54:13 +0000 (12:54 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Tue, 3 Jul 2012 08:54:13 +0000 (12:54 +0400)
commita0c688331f095126d8a079c249903e4a6728581f
treeae39a44f94a2fa2982eeade950bf69232c9c2b7b
parent8b7d39e7b633a2257f38ee77f7b558dbacf92f65
runtime: refactor proc.c
1. Rename 'g' and 'm' local vars to 'gp' and 'mp' (convention already used in some functions)
'g' and 'm' are global vars that mean current goroutine and current machine,
when they are shadowed by local vars, it's confusing, no ability to debug log both, etc.
2. White-space shuffling.
No semantic changes.
In preparation to bigger changes.

R=golang-dev, dave
CC=golang-dev
https://golang.org/cl/6355061
src/pkg/runtime/proc.c