diff options
Diffstat (limited to 'libgo/runtime/cpuprof.c')
-rw-r--r-- | libgo/runtime/cpuprof.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libgo/runtime/cpuprof.c b/libgo/runtime/cpuprof.c index 07567cc..3797e1c 100644 --- a/libgo/runtime/cpuprof.c +++ b/libgo/runtime/cpuprof.c @@ -114,6 +114,12 @@ 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. |