]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libgo/go/runtime/os_js.go
libgo: update to Go1.14beta1
[thirdparty/gcc.git] / libgo / go / runtime / os_js.go
index ad6db18b74793287023a9ddfd692253f236f60c2..ff0ee3aa6be8dfd4ae3adfbb82c9eaeaa4f18031 100644 (file)
@@ -12,7 +12,7 @@ import (
 
 func exit(code int32)
 
-func write(fd uintptr, p unsafe.Pointer, n int32) int32 {
+func write1(fd uintptr, p unsafe.Pointer, n int32) int32 {
        if fd > 2 {
                throw("runtime.write to fd > 2 is unsupported")
        }
@@ -131,7 +131,6 @@ func os_sigpipe() {
 func cputicks() int64 {
        // Currently cputicks() is used in blocking profiler and to seed runtime·fastrand().
        // runtime·nanotime() is a poor approximation of CPU ticks that is enough for the profiler.
-       // TODO: need more entropy to better seed fastrand.
        return nanotime()
 }
 
@@ -143,3 +142,9 @@ func syscall_now() (sec int64, nsec int32) {
 
 // gsignalStack is unused on js.
 type gsignalStack struct{}
+
+const preemptMSupported = false
+
+func preemptM(mp *m) {
+       // No threads, so nothing to do.
+}