]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: remove reference to openbsd kern.rthreads sysctl
authorJoel Sing <jsing@google.com>
Thu, 12 Mar 2015 14:52:12 +0000 (01:52 +1100)
committerJoel Sing <jsing@google.com>
Fri, 13 Mar 2015 02:51:33 +0000 (02:51 +0000)
The kern.rthreads sysctl has not existed for a long time - there is no way to
disable rthreads and __tfork no longer returns ENOTSUP.

Change-Id: Ia50ff01ac86ea83358e72b8f45f7818aaec1e4b1
Reviewed-on: https://go-review.googlesource.com/7490
Reviewed-by: Minux Ma <minux@golang.org>
src/runtime/os1_openbsd.go

index 04779ea870fbb99f4f990ff39aa95546f417ced5..92a19fe31b4550fb0a1d57bbc54c929b1d04129d 100644 (file)
@@ -117,9 +117,6 @@ func newosproc(mp *m, stk unsafe.Pointer) {
 
        if ret < 0 {
                print("runtime: failed to create new OS thread (have ", mcount()-1, " already; errno=", -ret, ")\n")
-               if ret == -_ENOTSUP {
-                       print("runtime: is kern.rthreads disabled?\n")
-               }
                throw("runtime.newosproc")
        }
 }