aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/time.goc
diff options
context:
space:
mode:
authorDmitriy Vyukov <dvyukov@google.com>2013-07-22 23:02:27 +0400
committerDmitriy Vyukov <dvyukov@google.com>2013-07-22 23:02:27 +0400
commite97d677b4eaa6db4d70ae1d855d2cc5a4b0fdeff (patch)
tree5574b0886619a085bd84ff0fa70b08abd51fc6f6 /src/pkg/runtime/time.goc
parent9fe4a9ecdd674efafc173f3c7e99f7b34a6c544a (diff)
downloadgo-e97d677b4eaa6db4d70ae1d855d2cc5a4b0fdeff.tar.xz
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
Diffstat (limited to 'src/pkg/runtime/time.goc')
-rw-r--r--src/pkg/runtime/time.goc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pkg/runtime/time.goc b/src/pkg/runtime/time.goc
index be0c1f83d4..4f20300ff1 100644
--- a/src/pkg/runtime/time.goc
+++ b/src/pkg/runtime/time.goc
@@ -214,9 +214,7 @@ timerproc(void)
timers.sleeping = true;
runtime·noteclear(&timers.waitnote);
runtime·unlock(&timers);
- runtime·entersyscallblock();
- runtime·notetsleep(&timers.waitnote, delta);
- runtime·exitsyscall();
+ runtime·notetsleepg(&timers.waitnote, delta);
}
}