OSDN Git Service

runtime: Multiplex goroutines onto OS threads.
[pf3gnuchains/gcc-fork.git] / libgo / runtime / cpuprof.c
index 18cf595..5e3fc99 100644 (file)
@@ -361,9 +361,9 @@ getprofile(Profile *p)
                return ret;
 
        // Wait for new log.
-       // runtimeĀ·entersyscall();
+       runtime_entersyscall();
        runtime_notesleep(&p->wait);
-       // runtimeĀ·exitsyscall();
+       runtime_exitsyscall();
        runtime_noteclear(&p->wait);
 
        n = p->handoff;