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

Issue 6543049: cmd/dist, pkg/runtime: Plan 9, 64-bit: Get PID from TLS; remove use of `_tos'. (Closed)

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

Description

cmd/dist, pkg/runtime: Plan 9, 64-bit: Get PID from TLS; remove use of `_tos'. Using offsets from Tos is cumbersome and we've had problems in the past. Since it's only being used to grab the PID, we'll just get that from the default TLS instead.

Patch Set 1 #

Patch Set 2 : diff -r 90c9121e26c3 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 90c9121e26c3 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 90c9121e26c3 https://go.googlecode.com/hg/ #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -6 lines) Patch
M src/cmd/dist/buildruntime.c View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M src/pkg/runtime/defs_plan9_amd64.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M src/pkg/runtime/rt0_plan9_amd64.s View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M src/pkg/runtime/sys_plan9_amd64.s View 1 2 3 1 chunk +2 lines, -3 lines 2 comments Download

Messages

Total messages: 8
akumar
Hello rsc@golang.org, rminnich@gmail.com, npe@plan9.bell-labs.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 7 months ago (2012-09-21 13:57:41 UTC) #1
rsc
This only matters for pids above 2147483647, right? Did you actually run into this? I'd ...
11 years, 7 months ago (2012-09-21 14:32:51 UTC) #2
akumar
PTAL. On 2012/09/21 14:32:51, rsc wrote: > This only matters for pids above 2147483647, right? ...
11 years, 7 months ago (2012-09-22 22:04:40 UTC) #3
rminnich
I like this one much better. LGTM. ron
11 years, 7 months ago (2012-09-23 00:03:25 UTC) #4
rsc
http://codereview.appspot.com/6543049/diff/4002/src/pkg/runtime/sys_plan9_amd64.s File src/pkg/runtime/sys_plan9_amd64.s (right): http://codereview.appspot.com/6543049/diff/4002/src/pkg/runtime/sys_plan9_amd64.s#newcode109 src/pkg/runtime/sys_plan9_amd64.s:109: MOVQ procid(AX), AX Does procid need to be defined? ...
11 years, 7 months ago (2012-09-23 00:27:30 UTC) #5
akumar
http://codereview.appspot.com/6543049/diff/4002/src/pkg/runtime/sys_plan9_amd64.s File src/pkg/runtime/sys_plan9_amd64.s (right): http://codereview.appspot.com/6543049/diff/4002/src/pkg/runtime/sys_plan9_amd64.s#newcode109 src/pkg/runtime/sys_plan9_amd64.s:109: MOVQ procid(AX), AX On 2012/09/23 00:27:30, rsc wrote: > ...
11 years, 7 months ago (2012-09-23 00:42:35 UTC) #6
rsc
LGTM
11 years, 6 months ago (2012-09-24 16:24:30 UTC) #7
rsc
11 years, 6 months ago (2012-09-24 16:24:49 UTC) #8
*** Submitted as http://code.google.com/p/go/source/detail?r=dd2b297d258d ***

cmd/dist, pkg/runtime: Plan 9, 64-bit: Get PID from TLS; remove use of `_tos'.

Using offsets from Tos is cumbersome and we've had problems
in the past. Since it's only being used to grab the PID, we'll just
get that from the default TLS instead.

R=rsc, rminnich, npe
CC=golang-dev
http://codereview.appspot.com/6543049

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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