diff options
Diffstat (limited to 'libgo/runtime/cpuprof.c')
-rw-r--r-- | libgo/runtime/cpuprof.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/libgo/runtime/cpuprof.c b/libgo/runtime/cpuprof.c index bec15ae8ce6..5e3fc99d914 100644 --- a/libgo/runtime/cpuprof.c +++ b/libgo/runtime/cpuprof.c @@ -115,12 +115,6 @@ static void add(Profile*, uintptr*, int32); static bool evict(Profile*, Entry*); static bool flushlog(Profile*); -void -runtime_cpuprofinit(void) -{ - runtime_initlock(&lk); -} - // 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. @@ -367,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; |