Skip to content

Commit

Permalink
runtime: remove reference to openbsd kern.rthreads sysctl
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Joel Sing committed Mar 13, 2015
1 parent 4feee8c commit f076ad8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/runtime/os1_openbsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}
Expand Down

0 comments on commit f076ad8

Please sign in to comment.