diff --git a/src/runtime/export_test.go b/src/runtime/export_test.go index 817622abd08..2f8df78e132 100644 --- a/src/runtime/export_test.go +++ b/src/runtime/export_test.go @@ -83,10 +83,10 @@ func GCMask(x interface{}) (ret []byte) { } func RunSchedLocalQueueTest() { - systemstack(testSchedLocalQueue) + testSchedLocalQueue() } func RunSchedLocalQueueStealTest() { - systemstack(testSchedLocalQueueSteal) + testSchedLocalQueueSteal() } var StringHash = stringHash diff --git a/src/runtime/proc1.go b/src/runtime/proc1.go index 01c46a85ec8..2fe15519525 100644 --- a/src/runtime/proc1.go +++ b/src/runtime/proc1.go @@ -3539,13 +3539,9 @@ func testSchedLocalQueue() { } } -var pSink *p - func testSchedLocalQueueSteal() { p1 := new(p) p2 := new(p) - pSink = p1 // Force to heap, too large to allocate on system stack ("G0 stack") - pSink = p2 // Force to heap, too large to allocate on system stack ("G0 stack") gs := make([]g, len(p1.runq)) for i := 0; i < len(p1.runq); i++ { for j := 0; j < i; j++ {