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
This commit is contained in:
Keith Randall 2014-09-06 10:07:23 -07:00
parent 0e19a3d6d0
commit dbed4e9b4f
7 changed files with 49 additions and 44 deletions

View file

@ -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