aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/sizeof_test.go2
-rw-r--r--src/runtime/testdata/testprog/lockosthread.go6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/runtime/sizeof_test.go b/src/runtime/sizeof_test.go
index d6156902c1..736e848f8c 100644
--- a/src/runtime/sizeof_test.go
+++ b/src/runtime/sizeof_test.go
@@ -21,7 +21,7 @@ func TestSizeof(t *testing.T) {
_32bit uintptr // size on 32bit platforms
_64bit uintptr // size on 64bit platforms
}{
- {runtime.G{}, 216, 376}, // g, but exported for testing
+ {runtime.G{}, 216, 376}, // g, but exported for testing
{runtime.Sudog{}, 56, 88}, // sudog, but exported for testing
}
diff --git a/src/runtime/testdata/testprog/lockosthread.go b/src/runtime/testdata/testprog/lockosthread.go
index 098cc4dd72..e9d7fdbc44 100644
--- a/src/runtime/testdata/testprog/lockosthread.go
+++ b/src/runtime/testdata/testprog/lockosthread.go
@@ -220,7 +220,7 @@ func LockOSThreadTemplateThreadRace() {
}()
// Try to synchronize both LockOSThreads.
- start := time.Now().Add(10*time.Millisecond)
+ start := time.Now().Add(10 * time.Millisecond)
var wg sync.WaitGroup
wg.Add(2)
@@ -232,10 +232,10 @@ func LockOSThreadTemplateThreadRace() {
// Add work to the local runq to trigger early startm
// in handoffp.
- go func(){}()
+ go func() {}()
runtime.LockOSThread()
- runtime.Gosched() // add a preemption point.
+ runtime.Gosched() // add a preemption point.
wg.Done()
}()
}