diff options
| author | Keith Randall <khr@golang.org> | 2014-09-06 10:07:23 -0700 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2014-09-06 10:07:23 -0700 |
| commit | dbed4e9b4f60b25dd472da0dd46b398114acf2fe (patch) | |
| tree | c741949eb2110b3370ad59c7ef9d1a02d8ad4b37 /src/pkg/runtime/export_test.go | |
| parent | 0e19a3d6d073e70e8849011d673c68da8b5049b2 (diff) | |
| download | go-dbed4e9b4f60b25dd472da0dd46b398114acf2fe.tar.xz | |
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
Diffstat (limited to 'src/pkg/runtime/export_test.go')
| -rw-r--r-- | src/pkg/runtime/export_test.go | 11 |
1 files changed, 7 insertions, 4 deletions
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 |
