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/time.goc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/pkg/runtime/time.goc') 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); } } -- cgit v1.3-5-g9baa