]> Cypherpunks repositories - gostls13.git/commit
runtime: don't run runq tests on the system stack
authorAustin Clements <austin@google.com>
Mon, 11 May 2015 22:53:49 +0000 (18:53 -0400)
committerAustin Clements <austin@google.com>
Tue, 12 May 2015 19:58:08 +0000 (19:58 +0000)
commit350fd548b3313cfe47cf3c02cd01cfccb931211d
treef1507b1bdb6b0588783177379de1b8ba7698a94b
parent5ed4bb6db111d31a2c8625fe122de0ed7f1a9cbd
runtime: don't run runq tests on the system stack

Running these tests on the system stack is problematic because they
allocate Ps, which are large enough to overflow the system stack if
they are stack-allocated. It used to be necessary to run these tests
on the system stack because they were written in C, but since this is
no longer the case, we can fix this problem by simply not running the
tests on the system stack.

This also means we no longer need the hack in one of these tests that
forces the allocated Ps to escape to the heap, so eliminate that as
well.

Change-Id: I9064f5f8fd7f7b446ff39a22a70b172cfcb2dc57
Reviewed-on: https://go-review.googlesource.com/9923
Reviewed-by: Rick Hudson <rlh@golang.org>
Run-TryBot: Austin Clements <austin@google.com>
src/runtime/export_test.go
src/runtime/proc1.go