aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/runtime/os_js.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/runtime/os_js.go')
-rw-r--r--libgo/go/runtime/os_js.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/libgo/go/runtime/os_js.go b/libgo/go/runtime/os_js.go
index 94983b3..24261e8 100644
--- a/libgo/go/runtime/os_js.go
+++ b/libgo/go/runtime/os_js.go
@@ -72,7 +72,7 @@ func clearSignalHandlers() {
}
//go:nosplit
-func sigblock() {
+func sigblock(exiting bool) {
}
// Called to initialize a new m (including the bootstrap m).
@@ -84,6 +84,11 @@ func minit() {
func unminit() {
}
+// Called from exitm, but not from drop, to undo the effect of thread-owned
+// resources in minit, semacreate, or elsewhere. Do not take locks after calling this.
+func mdestroy(mp *m) {
+}
+
func osinit() {
ncpu = 1
getg().m.procid = 2