From ca9128f18fe75878ba2d5e0df09ae755c085f72a Mon Sep 17 00:00:00 2001 From: Srdjan Petrovic Date: Fri, 17 Apr 2015 17:27:07 -0700 Subject: 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 --- src/runtime/os_linux.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/runtime/os_linux.go') diff --git a/src/runtime/os_linux.go b/src/runtime/os_linux.go index 8e4c05db93..abea5d61aa 100644 --- a/src/runtime/os_linux.go +++ b/src/runtime/os_linux.go @@ -12,9 +12,6 @@ func futex(addr unsafe.Pointer, op int32, val uint32, ts, addr2 unsafe.Pointer, //go:noescape func clone(flags int32, stk, mm, gg, fn unsafe.Pointer) int32 -//go:noescape -func clone0(flags int32, stk, fn, fnarg unsafe.Pointer) int32 - //go:noescape func rt_sigaction(sig uintptr, new, old *sigactiont, size uintptr) int32 -- cgit v1.3-5-g9baa