From dbed4e9b4f60b25dd472da0dd46b398114acf2fe Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Sat, 6 Sep 2014 10:07:23 -0700 Subject: runtime: get rid of other Go->C calls in test exports. testSchedLocal* tests need to malloc now because their stack frames are too big to fit on the G0 stack. LGTM=iant R=golang-codereviews, iant, khr CC=golang-codereviews https://golang.org/cl/133660043 --- src/pkg/runtime/export_test.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/pkg/runtime/export_test.go') diff --git a/src/pkg/runtime/export_test.go b/src/pkg/runtime/export_test.go index 3df02626af..07ef26f25a 100644 --- a/src/pkg/runtime/export_test.go +++ b/src/pkg/runtime/export_test.go @@ -18,7 +18,7 @@ var Fcmp64 = fcmp64 var Fintto64 = fintto64 var F64toint = f64toint -func lockedOSThread() bool +// in asm_*.s func stackguard() (sp, limit uintptr) var Entersyscall = entersyscall @@ -127,9 +127,12 @@ func GCMask(x interface{}) (ret []byte) { func testSchedLocalQueue() func testSchedLocalQueueSteal() - -var TestSchedLocalQueue1 = testSchedLocalQueue -var TestSchedLocalQueueSteal1 = testSchedLocalQueueSteal +func RunSchedLocalQueueTest() { + onM(testSchedLocalQueue) +} +func RunSchedLocalQueueStealTest() { + onM(testSchedLocalQueueSteal) +} var HaveGoodHash = haveGoodHash var StringHash = stringHash -- cgit v1.3-5-g9baa