Index: src/pkg/runtime/mprof.goc |
=================================================================== |
--- a/src/pkg/runtime/mprof.goc |
+++ b/src/pkg/runtime/mprof.goc |
@@ -371,7 +371,7 @@ |
uintptr pc, sp; |
sp = runtime·getcallersp(&b); |
- pc = (uintptr)runtime·getcallerpc(&b); |
+ pc = (uintptr)runtime·getcallerpc(&b)-1; |
if(all) { |
runtime·semacquire(&runtime·worldsema, false); |