Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
0a86b4da
Commit
0a86b4da
authored
Jul 16, 2013
by
Dmitriy Vyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtime: minor test cleanup
R=golang-dev, khr, rsc CC=golang-dev
https://golang.org/cl/11280043
parent
3d236aed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
src/pkg/runtime/proc_test.go
src/pkg/runtime/proc_test.go
+2
-5
No files found.
src/pkg/runtime/proc_test.go
View file @
0a86b4da
...
...
@@ -227,7 +227,7 @@ func TestPreemptSplitBig(t *testing.T) {
stop
:=
make
(
chan
int
)
go
big
(
stop
)
for
i
:=
0
;
i
<
3
;
i
++
{
time
.
Sleep
(
1
*
time
.
Microsecond
)
// let big start running
time
.
Sleep
(
1
0
*
time
.
Microsecond
)
// let big start running
runtime
.
GC
()
}
close
(
stop
)
...
...
@@ -237,7 +237,7 @@ func big(stop chan int) int {
n
:=
0
for
{
// delay so that gc is sure to have asked for a preemption
for
i
:=
int64
(
0
)
;
i
<
1e9
;
i
++
{
for
i
:=
0
;
i
<
1e9
;
i
++
{
n
++
}
...
...
@@ -286,9 +286,6 @@ func nonleaf(stop chan int) bool {
}
}
func
poll
()
{
}
func
TestSchedLocalQueue
(
t
*
testing
.
T
)
{
runtime
.
TestSchedLocalQueue1
()
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment