From e97d677b4eaa6db4d70ae1d855d2cc5a4b0fdeff Mon Sep 17 00:00:00 2001 From: Dmitriy Vyukov Date: Mon, 22 Jul 2013 23:02:27 +0400 Subject: runtime: introduce notetsleepg function notetsleepg is the same as notetsleep, but is called on user g. It includes entersyscall/exitsyscall and will help to avoid split stack functions in syscall status. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/11681043 --- src/pkg/runtime/sigqueue.goc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/pkg/runtime/sigqueue.goc') diff --git a/src/pkg/runtime/sigqueue.goc b/src/pkg/runtime/sigqueue.goc index 9bfab3bfae..e430e2103d 100644 --- a/src/pkg/runtime/sigqueue.goc +++ b/src/pkg/runtime/sigqueue.goc @@ -106,9 +106,7 @@ func signal_recv() (m uint32) { new = HASWAITER; if(runtime·cas(&sig.state, old, new)) { if (new == HASWAITER) { - runtime·entersyscallblock(); - runtime·notesleep(&sig); - runtime·exitsyscall(); + runtime·notetsleepg(&sig, -1); runtime·noteclear(&sig); } break; -- cgit v1.3