Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1442)

Unified Diff: src/pkg/runtime/mprof.goc

Issue 84100043: code review 84100043: runtime: fix off-by-one in first frame in runtime.Stack
Patch Set: diff -r 4ca10cc10176 https://code.google.com/p/go/ Created 9 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/pkg/runtime/stack_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | src/pkg/runtime/stack_test.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b