diff options
| author | David Symonds <dsymonds@golang.org> | 2012-02-17 08:49:41 +1100 |
|---|---|---|
| committer | David Symonds <dsymonds@golang.org> | 2012-02-17 08:49:41 +1100 |
| commit | 4b171e5040935f65c011ea58dde6fb49fcd9e6b3 (patch) | |
| tree | 5539102cfeb5995dc8050130063bafa89ce85380 /src/pkg/runtime/proc.c | |
| parent | 7fc47928fc807a0c79c5649d7ee9e10d55f3c360 (diff) | |
| download | go-4b171e5040935f65c011ea58dde6fb49fcd9e6b3.tar.xz | |
runtime: rename Cgocalls and Goroutines to NumCgoCall and NumGoroutine, respectively.
Update some other docs too.
Update #2955.
R=rsc
CC=golang-dev
https://golang.org/cl/5676060
Diffstat (limited to 'src/pkg/runtime/proc.c')
| -rw-r--r-- | src/pkg/runtime/proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/runtime/proc.c b/src/pkg/runtime/proc.c index 3dbf77a105..d9047c92c1 100644 --- a/src/pkg/runtime/proc.c +++ b/src/pkg/runtime/proc.c @@ -342,7 +342,7 @@ mcommoninit(M *m) // Add to runtime·allm so garbage collector doesn't free m // when it is just in a register or thread-local storage. m->alllink = runtime·allm; - // runtime·Cgocalls() iterates over allm w/o schedlock, + // runtime·NumCgoCall() iterates over allm w/o schedlock, // so we need to publish it safely. runtime·atomicstorep(&runtime·allm, m); } @@ -1652,7 +1652,7 @@ runtime·mid(uint32 ret) } void -runtime·Goroutines(int32 ret) +runtime·NumGoroutine(int32 ret) { ret = runtime·sched.gcount; FLUSH(&ret); |
