aboutsummaryrefslogtreecommitdiff
path: root/libgo/runtime/cpuprof.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/runtime/cpuprof.c')
-rw-r--r--libgo/runtime/cpuprof.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libgo/runtime/cpuprof.c b/libgo/runtime/cpuprof.c
index 3ef08ef..5163873 100644
--- a/libgo/runtime/cpuprof.c
+++ b/libgo/runtime/cpuprof.c
@@ -121,7 +121,9 @@ static uintptr eod[3] = {0, 1, 0};
// LostProfileData is a no-op function used in profiles
// to mark the number of profiling stack traces that were
// discarded due to slow data writers.
-static void LostProfileData(void) {
+static void
+LostProfileData(void)
+{
}
extern void runtime_SetCPUProfileRate(intgo)
@@ -365,7 +367,7 @@ getprofile(Profile *p)
return ret;
// Wait for new log.
- runtime_entersyscall();
+ runtime_entersyscallblock();
runtime_notesleep(&p->wait);
runtime_exitsyscall();
runtime_noteclear(&p->wait);