]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix some out of date comments and typos
authorAustin Clements <austin@google.com>
Mon, 27 Apr 2015 19:42:45 +0000 (15:42 -0400)
committerAustin Clements <austin@google.com>
Mon, 27 Apr 2015 20:08:38 +0000 (20:08 +0000)
Change-Id: I061057414c722c5a0f03c709528afc8554114db6
Reviewed-on: https://go-review.googlesource.com/9367
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/mgcmark.go
src/runtime/proc1.go

index 5483c68c56dbead2fee967de38e36e99d131b9c1..7fc4594eb677cae0791387e175aa5b984d3bb478 100644 (file)
@@ -660,8 +660,7 @@ func shade(b uintptr) {
 }
 
 // obj is the start of an object with mark mbits.
-// If it isn't already marked, mark it and enqueue into workbuf.
-// Return possibly new workbuf to use.
+// If it isn't already marked, mark it and enqueue into gcw.
 // base and off are for debugging only and could be removed.
 //go:nowritebarrier
 func greyobject(obj, base, off uintptr, hbits heapBits, span *mspan, gcw *gcWork) {
index 3751e35bb7f3ba8a741e8c085f4036c6a7688f8f..c5c1173a151d5b3a737d036369257f7514144d95 100644 (file)
@@ -748,7 +748,7 @@ func mstart1() {
 // safe point and execute fn on that P. If the P is not executing code
 // (it is idle or in a syscall), this will call fn(p) directly while
 // preventing the P from exiting its state. This does not ensure that
-// fn will run on every CPU executing Go code, but it act as a global
+// fn will run on every CPU executing Go code, but it acts as a global
 // memory barrier. GC uses this as a "ragged barrier."
 //
 // The caller must hold worldsema.