]> Cypherpunks repositories - gostls13.git/commit
runtime: merge clone0 and clone
authorSrdjan Petrovic <spetrovic@google.com>
Sat, 18 Apr 2015 00:27:07 +0000 (17:27 -0700)
committerDavid Crawshaw <crawshaw@golang.org>
Wed, 22 Apr 2015 16:28:57 +0000 (16:28 +0000)
commitca9128f18fe75878ba2d5e0df09ae755c085f72a
tree14dc3f65d05c3425c251282b91b1fe1be2079895
parent3f91a017f8f67cb9a744cf5d0a8b5db34a95808d
runtime: merge clone0 and clone

We initially added clone0 to handle the case when G or M don't exist, but
it turns out that we could have just modified clone.  (It also helps that
the function we're invoking in clone0 no longer needs arguments.)

As a side-effect, newosproc0 is now supported on all linux archs.

Change-Id: Ie603af75d8f164310fc16446052d83743961f3ca
Reviewed-on: https://go-review.googlesource.com/9164
Reviewed-by: David Crawshaw <crawshaw@golang.org>
13 files changed:
src/runtime/export_linux_test.go [new file with mode: 0644]
src/runtime/export_test.go
src/runtime/norace_linux_test.go [new file with mode: 0644]
src/runtime/os1_linux.go
src/runtime/os_linux.go
src/runtime/rt0_linux_386.s
src/runtime/rt0_linux_amd64.s
src/runtime/rt0_linux_arm.s
src/runtime/sys_linux_386.s
src/runtime/sys_linux_amd64.s
src/runtime/sys_linux_arm.s
src/runtime/sys_linux_arm64.s
src/runtime/sys_linux_ppc64x.s