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

Issue 12250043: code review 12250043: runtime: use gcpc/gcsp during traceback of goroutines i... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 7 months ago by dvyukov
Modified:
11 years, 1 month ago
Reviewers:
rsc
CC:
golang-dev, rsc
Visibility:
Public.

Description

runtime: use gcpc/gcsp during traceback of goroutines in syscalls gcpc/gcsp are used by GC in similar situation. gcpc/gcsp are also more stable than gp->sched, because gp->sched is mutated by entersyscall/exitsyscall in morestack and mcall. So it has higher chances of being inconsistent. Also, rename gcpc/gcsp to syscallpc/syscallsp.

Patch Set 1 #

Patch Set 2 : diff -r b5442e956dd0 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 3 : diff -r b5442e956dd0 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 4 : diff -r 6423f26d0193 https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 6423f26d0193 https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r 6423f26d0193 https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r 6423f26d0193 https://go.googlecode.com/hg/ #

Patch Set 8 : diff -r 6423f26d0193 https://go.googlecode.com/hg/ #

Patch Set 9 : diff -r 6423f26d0193 https://go.googlecode.com/hg/ #

Patch Set 10 : diff -r 01d672e76b57 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -33 lines) Patch
M src/pkg/runtime/mgc0.c View 1 2 3 1 chunk +5 lines, -5 lines 0 comments Download
M src/pkg/runtime/proc.c View 1 2 3 4 5 6 7 5 chunks +19 lines, -20 lines 0 comments Download
M src/pkg/runtime/runtime.h View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M src/pkg/runtime/traceback_arm.c View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/runtime/traceback_x86.c View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 5
dvyukov
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
11 years, 7 months ago (2013-08-01 12:21:03 UTC) #1
rsc
Please rename them to syscallpc and syscallsp.
11 years, 7 months ago (2013-08-02 16:46:04 UTC) #2
dvyukov
On 2013/08/02 16:46:04, rsc wrote: > Please rename them to syscallpc and syscallsp. Done I've ...
11 years, 7 months ago (2013-08-04 12:46:52 UTC) #3
rsc
LGTM
11 years, 7 months ago (2013-08-05 18:24:52 UTC) #4
dvyukov
11 years, 7 months ago (2013-08-05 18:56:17 UTC) #5
*** Submitted as https://code.google.com/p/go/source/detail?r=e911f94c4902 ***

runtime: use gcpc/gcsp during traceback of goroutines in syscalls
gcpc/gcsp are used by GC in similar situation.
gcpc/gcsp are also more stable than gp->sched,
because gp->sched is mutated by entersyscall/exitsyscall
in morestack and mcall. So it has higher chances of being inconsistent.
Also, rename gcpc/gcsp to syscallpc/syscallsp.

R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/12250043
Sign in to reply to this message.

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