diff options
| author | Dmitriy Vyukov <dvyukov@google.com> | 2013-07-22 23:02:27 +0400 |
|---|---|---|
| committer | Dmitriy Vyukov <dvyukov@google.com> | 2013-07-22 23:02:27 +0400 |
| commit | e97d677b4eaa6db4d70ae1d855d2cc5a4b0fdeff (patch) | |
| tree | 5574b0886619a085bd84ff0fa70b08abd51fc6f6 /src/pkg/runtime/time.goc | |
| parent | 9fe4a9ecdd674efafc173f3c7e99f7b34a6c544a (diff) | |
| download | go-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.goc | 4 |
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); } } |
